diff --git a/.gitattributes b/.gitattributes index ff23dd9ce..e02e417f4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,15 +1,19 @@ -# Documentation +# Linguist metadata +# -> Documentation *.md linguist-documentation docs/* linguist-documentation - -# Licensing information +# -> Licensing information COPYING linguist-documentation LICENSE linguist-documentation - -# Javadoc +# -> HTML, CSS, etc. *.html linguist-documentation *.css linguist-documentation - -# Gradle configuration +# -> Configuration *.properties linguist-configuration *.gradle linguist-configuration + +# Line endings +/gradlew text eol=lf +*.bat text eol=crlf +*.cmd text oel=crlf +*.jar binary diff --git a/.gitignore b/.gitignore index 71277a193..319ca0a72 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -### Gradle ### +# Gradle .gradle build/ run/ @@ -6,7 +6,7 @@ run/ !**/src/main/**/build/ !**/src/test/**/build/ -### IntelliJ IDEA ### +# IntelliJ IDEA .idea/modules.xml .idea/jarRepositories.xml .idea/compiler.xml @@ -19,7 +19,7 @@ out/ !**/src/main/**/out/ !**/src/test/**/out/ -### Eclipse ### +# Eclipse .apt_generated .classpath .factorypath @@ -31,17 +31,17 @@ bin/ !**/src/main/**/bin/ !**/src/test/**/bin/ -### NetBeans ### +# NetBeans /nbproject/private/ /nbbuild/ /nbdist/ /.nb-gradle/ -### VS Code ### +# Visual Studio Code .vscode/ -### Mac OS ### +# macOS .DS_Store -### Java ### +# Java hs_err_pid*.log diff --git a/.idea/copyright/sos_engine.xml b/.idea/copyright/sos_engine.xml index d43f657c6..9faa3e217 100644 --- a/.idea/copyright/sos_engine.xml +++ b/.idea/copyright/sos_engine.xml @@ -1,7 +1,7 @@ - + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 2f4f87092..000000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - - - - true - true - false - false - - - - - - - - true - true - false - false - - - - - - - - true - true - false - false - - - - - - - - true - true - false - false - - - - - - - - true - true - false - false - - - - - - - - true - true - false - false - - - - - - - - true - true - false - false - - - - - - - - true - true - false - false - - - - - - - - - - - - - - diff --git a/README.md b/README.md index 0f1668035..31e7e659f 100644 --- a/README.md +++ b/README.md @@ -1,91 +1,11 @@ -# StarOpenSource Engine -The StarOpenSource Engine (or sos!engine for short) is a modular, extensible and easy to use Java game and application engine. +
+ +StarOpenSource Engine + -## WARNING -The StarOpenSource Engine is under heavy development and is extremely unstable. Code will break often, prepare for potential major refactors when trying the engine out. +

Repository | Documentation | Documentation (development)

+
-## Index -- [About](#about) - - [... the engine](#-the-engine) - - [... the repository](#-the-repository) - - [Priorities](#priorities) -- [Documentation](#documentation) -- [Contributing](#contributing) - - [Requirements](#requirements) - - [What IDE to use?](#what-ide-to-use) - - [Code style](#code-style) - - [Pull request guidelines](#pull-request-guidelines) - - [Making your first contribution](#making-your-first-contribution) - - [Gradle properties](#gradle-properties) - -## About -### ... the engine -The StarOpenSource Engine is a modular and extensible framework for building applications and games written in [one of the multiple JVM programming languages](https://en.wikipedia.org/wiki/List_of_JVM_languages). -The engine consists of various subsystems, each separate and responsible for only a few closely-related tasks. - \ -Not only that. The engine also features various useful classes, interfaces and methods making development fun and simpler, while being lightweight. -### ... the repository -The sos!engine repository is a monorepo, consisting of [the core engine](https://git.staropensource.de/StarOpenSource/Engine/src/branch/develop/base), multiple official subsystems and [their documentation](https://git.staropensource.de/StarOpenSource/Engine/src/branch/develop/docs). -### Priorities -These are in no particular order. - -- configurable -- [do one thing and do it well](https://en.wikipedia.org/wiki/Unix_philosophy) (subsystems concept) -- fast -- few runtime dependencies (note: we will cut down on some of them during development) -- modular & extensible -- small & lightweight - -## Documentation -You can view the engine documentation at [engine.staropensource.de](https://engine.staropensource.de). It provides information, guides and tutorials about the core engine and subsystems. -If you want the API reference, you can [visit the Javadoc](https://jd.engine.staropensource.de) for the engine and it's subsystems. - -## Contributing -### Requirements -You need the following things to be able to contribute code to the StarOpenSource Engine: -- knowledge of Java -- knowledge about the internals of engine -### What IDE to use? -We recommend and are using [IntelliJ IDEA Community Edition](https://github.com/JetBrains/intellij-community) for development because it is flexible, extendable, customizable, provides good completions and error detection. It's also open source. -### Code style -We recommend looking at existing classes and code for a good understanding on how we'd like code to be written. -Here's a quick rundown on the most important things: -- Document EVERYTHING. Every single class, field and method, even if private. -- Make comments about your code, unless it's extremely simple and easy to understand. -- Make sure to add and update `@since` in javadoc comments (update if the javadoc changes a good amount). -- Keep stuff simple, no need to elaborate what a logger is. Though remember to not make it *too* simple. -- Make sure every field and method has a newline to separate it. -- Files must end with a newline or cats might get angry. -- Use your brain. -### Pull request guidelines -Before creating a pull request, make sure you've: -- created tests for the functionality you've added, changed or removed (if applicable), -- tested your changes, -- made sure that everything works, -- is compatible with other code in the monorepo, and -- is compatible with other applications. If not, tell us in your pull request description. -### Making your first contribution -TODO -### Gradle properties -Gradle's behaviour can be changed by changing gradle project properties. -To change them, simply append `-P` or `-P=`, like this: `./gradlew -Pjobs=4 test`. -#### Parallelism -Use the `jobs` property to control how many jobs will get executed simultaneously. -On Linux, specify `-Pjobs=$(nproc)`. Defaults to `8`. -#### Rendering -You can use the `renderingPlatform` property to control which rendering platform to initialize for. -#### JVM Home -You can use the `graalHome` property to specify the `$JAVA_HOME` of your local GraalVM installation. -Only used in the `nativeImage` task. Useful if you aren't using GraalVM as your primary JDK. -#### Testing -You can use the following properties to modify the behaviour of the `test`-task: -- `test.control.mode` (default *empty*) - - `force-enable`: Disables all test classes except the ones specified - - `force-disable`: Enables all test classes except the ones specified - - *everything else*: Enables all test classes -- `test.control.classes` (default *empty*): A comma-separated, case-sensitive list of test classes - which (depending on `test.control.mode`'s value) enable or disable the specified classes. - Example: `-Ptest.control.mode=MiscellaneousTest,DependencyResolverTest,EngineConfigurationTest` -- `test.control.warning` (default `false`): If `true`, will emit a warning before a restricted test method exits -- `test.loggerLevel` (default `silent_warning`): Will set `UnitLogger`'s logger level. - Works like `-Dsosengine.base.loggerLevel`. See `UnitLogger#loggerLevel` for more information +# TODO +We haven't yet been able to finish the README yet, sorry. +You can however still look at [the old README](https://git.staropensource.de/StarOpenSource/Engine/src/commit/1e978e314687109fefa4a0966d772bb0facac338/README.md). diff --git a/ansi/build.gradle b/ansi/build.gradle deleted file mode 100644 index 75b7dd26e..000000000 --- a/ansi/build.gradle +++ /dev/null @@ -1,112 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -// Plugins -plugins { - id("java") - id("io.freefair.lombok") version("${pluginLombok}") - id("maven-publish") -} - -// Dependencies -dependencies { - // Lombok - compileOnly("org.projectlombok:lombok:${dependencyLombok}") - annotationProcessor("org.projectlombok:lombok:${dependencyLombok}") - - // JetBrains Annotations - compileOnly("org.jetbrains:annotations:${dependencyJetbrainsAnnotations}") - - // Jansi - implementation("org.fusesource.jansi:jansi:${dependencyJansi}") - - // Project - implementation(project(":base")) -} - -// Javadoc configuration -javadoc { - outputs.upToDateWhen { false } // Force task execution - dependsOn(delombok) // Make sure the source is delomboked first - - javadoc { - setClasspath(files(project.sourceSets.main.compileClasspath)) // Include dependencies - - options { - if (new File(projectDir, "src/main/javadoc/theme.css").exists()) - stylesheetFile = new File(projectDir, "src/main/javadoc/theme.css") // Theming is cool :3 - setMemberLevel(JavadocMemberLevel.PUBLIC) // Only display public stuff - setOverview("src/main/javadoc/overview.html") // We want a custom overview page to greet the visitor - setLocale("en_US") // 你好 - addStringOption("Xwerror", "-quiet") // Fail build on warning - - setJFlags([ - "-Duser.language=en_US" // See above - ]) - } - } -} - -// Include javadoc and source jar during publishing -java { - withJavadocJar() - withSourcesJar() -} - -// Build publishing configuration -// Note: You can safely ignore any errors or warnings thrown by your IDE here -publishing { - repositories { - maven { - name = "staropensource" - url = uri("https://mvn.staropensource.de/engine") - credentials(org.gradle.api.credentials.PasswordCredentials) - authentication { - //noinspection GroovyAssignabilityCheck - basic (BasicAuthentication) - } - } - } - publications { - //noinspection GroovyAssignabilityCheck - maven (MavenPublication) { - groupId = group - artifactId = project.getName() - version = version - //noinspection GroovyAssignabilityCheck - from components.java - } - } -} - -// Fix delombok task -delombok.doFirst { - File target = file("${project.projectDir}/src/main/module-info.java") - File source = file("${project.projectDir}/src/main/java/module-info.java") - - target.delete() - source.renameTo(target) -} -delombok.doLast { - File target = file("${project.projectDir}/src/main/java/module-info.java") - File source = file("${project.projectDir}/src/main/module-info.java") - - target.delete() - source.renameTo(target) -} diff --git a/ansi/gradle b/ansi/gradle deleted file mode 120000 index 3337596a2..000000000 --- a/ansi/gradle +++ /dev/null @@ -1 +0,0 @@ -../gradle \ No newline at end of file diff --git a/ansi/gradlew b/ansi/gradlew deleted file mode 120000 index 502f5a2d3..000000000 --- a/ansi/gradlew +++ /dev/null @@ -1 +0,0 @@ -../gradlew \ No newline at end of file diff --git a/ansi/gradlew.bat b/ansi/gradlew.bat deleted file mode 120000 index 284013288..000000000 --- a/ansi/gradlew.bat +++ /dev/null @@ -1 +0,0 @@ -../gradlew.bat \ No newline at end of file diff --git a/ansi/src/main/java/de/staropensource/engine/ansi/AnsiLoggingAdapter.java b/ansi/src/main/java/de/staropensource/engine/ansi/AnsiLoggingAdapter.java deleted file mode 100644 index 8ac94b3fd..000000000 --- a/ansi/src/main/java/de/staropensource/engine/ansi/AnsiLoggingAdapter.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.ansi; - -import de.staropensource.engine.base.EngineConfiguration; -import de.staropensource.engine.base.implementable.LoggingAdapter; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.logging.LogLevel; -import org.fusesource.jansi.Ansi; -import org.fusesource.jansi.AnsiConsole; -import org.jetbrains.annotations.NotNull; - -/** - * Prints colored log output using the Jansi library. - * - * @see Logger - * @see LoggingAdapter - * @since v1-alpha2 - */ -public class AnsiLoggingAdapter implements LoggingAdapter { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha2 - */ - public AnsiLoggingAdapter() {} - - /** {@inheritDoc} */ - @Override - @SuppressWarnings({ "resource" }) // Using try-with-resources will cause issues here - public void print(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message, @NotNull String format) { - // Convert to Ansi - Ansi output = new AnsiShortcodeParser(format, true).getAnsi(); - - // Print message - if (level == LogLevel.ERROR || level == LogLevel.CRASH) - if (EngineConfiguration.getInstance().isLogForceStandardOutput()) - AnsiConsole.out().println(output); - else - AnsiConsole.err().println(output); - else - AnsiConsole.out().println(output); - } -} diff --git a/ansi/src/main/java/de/staropensource/engine/ansi/AnsiShortcodeParser.java b/ansi/src/main/java/de/staropensource/engine/ansi/AnsiShortcodeParser.java deleted file mode 100644 index 233cf257f..000000000 --- a/ansi/src/main/java/de/staropensource/engine/ansi/AnsiShortcodeParser.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.ansi; - -import de.staropensource.engine.base.implementable.ShortcodeParser; -import de.staropensource.engine.base.exception.ParserException; -import org.fusesource.jansi.Ansi; -import org.jetbrains.annotations.NotNull; - -import java.util.HashSet; -import java.util.Set; - -/** - * Implementation of the {@link ShortcodeParser} class - * with ANSI support using the Jansi library. - * - * @see ShortcodeParser - * @since v1-alpha8 - */ -public final class AnsiShortcodeParser extends ShortcodeParser { - /** - * Creates and initializes an instance of this class. - * - * @param string string to convert - * @param ignoreInvalidEscapes will ignore invalid escapes and print treat them like regular text - * @throws ParserException when parsing failed - * @since v1-alpha2 - */ - public AnsiShortcodeParser(@NotNull String string, boolean ignoreInvalidEscapes) throws ParserException { - super(string, ignoreInvalidEscapes); - } - - /** - * Returns the parsed string as an {@link Ansi} sequence. - * - * @return {@link Ansi} sequence - * @since v1-alpha2 - */ - public @NotNull Ansi getAnsi() { - Ansi ansi = Ansi.ansi(); - Set<@NotNull String> status = new HashSet<>(); - - for (String component : components) - if (component.equals("RESET")) { - ansi.a(Ansi.Attribute.RESET); - status.clear(); - } else if (component.startsWith("TEXT:")) - ansi.a(component.substring(5)); - else if (component.startsWith("COLOR:")) { - if (component.startsWith("COLOR:FOREGROUND:")) - ansi.fg(Ansi.Color.valueOf(component.substring(17))); - else if (component.startsWith("COLOR:BACKGROUND:")) - ansi.bg(Ansi.Color.valueOf(component.substring(17))); - } else if (component.startsWith("ATTRIBUTE:")) - if (component.startsWith("ATTRIBUTE:BLINK")) { - if (status.contains("ATTRIBUTE:BLINK")) - continue; - - ansi.a(Ansi.Attribute.BLINK_SLOW); - status.add("ATTRIBUTE:BLINK"); - } else if (component.startsWith("ATTRIBUTE:BOLD")) { - if (status.contains("ATTRIBUTE:BOLD")) - continue; - - ansi.a(Ansi.Attribute.INTENSITY_BOLD); - status.add("ATTRIBUTE:BOLD"); - } else if (component.startsWith("ATTRIBUTE:ITALIC")) { - if (status.contains("ATTRIBUTE:ITALIC")) - continue; - - ansi.a(Ansi.Attribute.ITALIC); - status.add("ATTRIBUTE:ITALIC"); - } else if (component.startsWith("ATTRIBUTE:STRIKETHROUGH")) { - if (status.contains("ATTRIBUTE:STRIKETHROUGH")) - continue; - - ansi.a(Ansi.Attribute.STRIKETHROUGH_ON); - status.add("ATTRIBUTE:STRIKETHROUGH"); - } else if (component.startsWith("ATTRIBUTE:UNDERLINE")) { - if (status.contains("ATTRIBUTE:UNDERLINE")) - continue; - - ansi.a(Ansi.Attribute.UNDERLINE); - status.add("ATTRIBUTE:UNDERLINE"); - } - - - return ansi; - } -} diff --git a/ansi/src/main/java/de/staropensource/engine/ansi/AnsiSubsystem.java b/ansi/src/main/java/de/staropensource/engine/ansi/AnsiSubsystem.java deleted file mode 100644 index a70180014..000000000 --- a/ansi/src/main/java/de/staropensource/engine/ansi/AnsiSubsystem.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.ansi; - -import de.staropensource.engine.base.annotation.EngineSubsystem; -import de.staropensource.engine.base.implementable.SubsystemClass; -import de.staropensource.engine.base.implementation.logging.PlainLoggingAdapter; -import de.staropensource.engine.base.utility.information.EngineInformation; -import de.staropensource.engine.base.implementation.versioning.StarOpenSourceVersioningSystem; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.DependencyVector; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; - -/** - * Main class of the ANSI Compatibility subsystem. - * - * @since v1-alpha2 - */ -@EngineSubsystem -@SuppressWarnings({ "JavadocDeclaration" }) -public final class AnsiSubsystem extends SubsystemClass { - /** - * Contains the class instance. - * - * @since v1-alpha2 - * -- GETTER -- - * Returns the class instance. - * - * @return class instance unless the subsystem is uninitialized - * @since v1-alpha2 - */ - @Getter - private static AnsiSubsystem instance = null; - - /** - * Initializes this subsystem. - * - * @since v1-alpha2 - */ - public AnsiSubsystem() { - // Check if subsystem has already initialized - if (instance == null) - instance = this; - else - Logger.crash("Only one instance of this class is allowed, use getInstance() instead of creating a new instance"); - } - - /** {@inheritDoc} */ - @Override - public @NotNull String getName() { - return "ansi"; - } - - /** {@inheritDoc} */ - @Override - public void initializeSubsystem() { - if (Logger.getLoggingAdapter().getClass().getName().equals(PlainLoggingAdapter.class.getName())) - Logger.setLoggingAdapter(new AnsiLoggingAdapter()); - } - - /** {@inheritDoc} */ - @Override - public @NotNull DependencyVector getDependencyVector() { - return new DependencyVector.Builder() - .setIdentifier("ansi") - .setVersioningSystem(StarOpenSourceVersioningSystem.class) - .setVersion(EngineInformation.getVersioningString()) - .build(); - } -} diff --git a/ansi/src/main/java/module-info.java b/ansi/src/main/java/module-info.java deleted file mode 100644 index 9ae351dda..000000000 --- a/ansi/src/main/java/module-info.java +++ /dev/null @@ -1,23 +0,0 @@ -/** - * The ANSI subsystem, allowing the engine to - * use ANSI escape codes using the Jansi library. - * - * @since v1-alpha2 - */ -module sosengine.ansi { - // Dependencies - // -> Java - requires transitive java.management; - // -> Engine - requires transitive sosengine.base; - // -> Libraries - requires transitive static lombok; - requires transitive org.jetbrains.annotations; - requires org.fusesource.jansi; - - // API access - exports de.staropensource.engine.ansi; - - // Reflection access - opens de.staropensource.engine.ansi; -} diff --git a/ansi/src/main/javadoc/overview.html b/ansi/src/main/javadoc/overview.html deleted file mode 100644 index a4a6a76c9..000000000 --- a/ansi/src/main/javadoc/overview.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -

Welcome to the sos!engine API documentation!
- You are currently in the documentation for the ansi subsystem, allowing ANSI escape sequences to be used using Jansi.

- diff --git a/ansi/src/main/javadoc/theme.css b/ansi/src/main/javadoc/theme.css deleted file mode 120000 index 681484a8e..000000000 --- a/ansi/src/main/javadoc/theme.css +++ /dev/null @@ -1 +0,0 @@ -../../../../src/main/javadoc/theme.css \ No newline at end of file diff --git a/base/.gitignore b/base/.gitignore deleted file mode 100644 index 33fe2c907..000000000 --- a/base/.gitignore +++ /dev/null @@ -1 +0,0 @@ -src/main/resources/git.properties diff --git a/base/README.md b/base/README.md deleted file mode 100644 index bee8c927c..000000000 --- a/base/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# The `base` subsystem -This is not just a subsystem, this is the core engine. It contains data types, logging infrastructure, an event system, a crash reporter and much more stuff required for basic applications. diff --git a/base/build.gradle b/base/build.gradle deleted file mode 100644 index bbb1dcb84..000000000 --- a/base/build.gradle +++ /dev/null @@ -1,183 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import java.nio.file.Files -// Plugins -plugins { - id("java") - id("io.freefair.lombok") version("${pluginLombok}") - id("com.gorylenko.gradle-git-properties") version("${pluginGitProperties}") - id("maven-publish") -} - -// Dependencies -dependencies { - // -> Runtime - // Lombok - compileOnly("org.projectlombok:lombok:${dependencyLombok}") - annotationProcessor("org.projectlombok:lombok:${dependencyLombok}") - - // JetBrains Annotations - compileOnly("org.jetbrains:annotations:${dependencyJetbrainsAnnotations}") - - // Reflections - implementation("org.reflections:reflections:${dependencyReflections}") - - // -> Testing - // Jetbrains Annotations - testCompileOnly("org.jetbrains:annotations:${dependencyJetbrainsAnnotations}") - - // JUnit - testImplementation(platform("org.junit:junit-bom:${dependencyJunit}")) - testImplementation("org.junit.jupiter:junit-jupiter") - testRuntimeOnly("org.junit.platform:junit-platform-launcher") - - // Project - testImplementation(project(":testing")) -} - -// Javadoc configuration -javadoc { - outputs.upToDateWhen { false } // Force task execution - dependsOn(delombok) // Make sure the source is delomboked first - - javadoc { - setClasspath(files(project.sourceSets.main.compileClasspath)) // Include dependencies - - options { - if (new File(projectDir, "src/main/javadoc/theme.css").exists()) - stylesheetFile = new File(projectDir, "src/main/javadoc/theme.css") // Theming is cool :3 - setMemberLevel(JavadocMemberLevel.PUBLIC) // Only display public stuff - setOverview("src/main/javadoc/overview.html") // We want a custom overview page to greet the visitor - setLocale("en_US") // 你好 - addStringOption("Xwerror", "-quiet") // Fail build on warning - - setJFlags([ - "-Duser.language=en_US" // See above - ]) - } - } -} - -// Unit testing configuration -test { - useJUnitPlatform() - - // Pass test configuration to test VMs - Map testConfiguration = new HashMap<>(); - for (String property : project.properties.keySet()) - if (property.startsWith("test.")) - testConfiguration.put(property, project.properties.get(property).toString()) - systemProperties(testConfiguration) - - setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) - setForkEvery(1) - setFailFast(true) - - testLogging { - events("passed", "skipped", "failed") - } -} - -// Include javadoc and source jar during publishing -java { - withJavadocJar() - withSourcesJar() -} - -// Build publishing configuration -// Note: You can safely ignore any errors or warnings thrown by your IDE here -publishing { - repositories { - maven { - name = "staropensource" - url = uri("https://mvn.staropensource.de/engine") - credentials(org.gradle.api.credentials.PasswordCredentials) - authentication { - //noinspection GroovyAssignabilityCheck - basic (BasicAuthentication) - } - } - } - publications { - //noinspection GroovyAssignabilityCheck - maven (MavenPublication) { - groupId = group - artifactId = project.getName() - version = version - //noinspection GroovyAssignabilityCheck - from components.java - } - } -} - -// Copy gradle.properties file -// for inclusion in final build -tasks.register("copyGradleProperties") { - doFirst { - File target = file("${project.projectDir}/src/main/resources/sosengine-gradle.properties") - File source = file(project(":").projectDir.getPath() + "/gradle.properties") - target.delete() - Files.copy(source.toPath(), target.toPath()) - } - - outputs.upToDateWhen({ false }) // Force task execution -} -processResources.dependsOn(copyGradleProperties) - -// Git properties configuration -// Allows us to embed git commit information in the engine build -gitProperties { - dotGitDirectory = file("${rootProject.rootDir}/.git") - failOnNoGitDirectory = false // Allow continuing if .git directory is missing for the few who use tarballs - extProperty = "gitProps" - - dateFormat = "yyyy-MM-dd'T'HH:mmZ" - dateFormatTimeZone = "UTC" -} - -tasks.register("writeGitProperties") { // This task's only purpose is to copy the git.properties from our git properties plugin to the resources directory so it's included in the final build - doLast { - File target = file("${project.projectDir}/src/main/resources/sosengine-git.properties") - File source = file("${project.projectDir}/build/resources/main/git.properties") - - target.delete() - source.renameTo(target) - } - - outputs.upToDateWhen({ false }) // Force task execution -} -generateGitProperties.outputs.upToDateWhen({ false }) // Force task execution -processResources.dependsOn(writeGitProperties) // Ensure git.properties file is present - -// Fix delombok task -delombok.doFirst { - File target = file("${project.projectDir}/src/main/module-info.java") - File source = file("${project.projectDir}/src/main/java/module-info.java") - - target.delete() - source.renameTo(target) -} -delombok.doLast { - File target = file("${project.projectDir}/src/main/java/module-info.java") - File source = file("${project.projectDir}/src/main/module-info.java") - - target.delete() - source.renameTo(target) -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/package-info.java b/base/build.gradle.kts similarity index 78% rename from base/src/main/java/de/staropensource/engine/base/implementation/versioning/package-info.java rename to base/build.gradle.kts index f421a5644..8ed0fbb48 100644 --- a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/package-info.java +++ b/base/build.gradle.kts @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,10 +18,11 @@ * along with this program. If not, see . */ -/** - * Built-in versioning systems which - * can be used to represent versions of some work. - * - * @since v1-alpha1 - */ -package de.staropensource.engine.base.implementation.versioning; +// Dependencies +dependencies { + // Kotlin support + kotlin(property("dependencyKotlinStdIdentifier") as String) + + // sos!engine + implementation(project(":logging")) +} diff --git a/base/gradle b/base/gradle deleted file mode 120000 index 3337596a2..000000000 --- a/base/gradle +++ /dev/null @@ -1 +0,0 @@ -../gradle \ No newline at end of file diff --git a/base/gradlew b/base/gradlew deleted file mode 120000 index 502f5a2d3..000000000 --- a/base/gradlew +++ /dev/null @@ -1 +0,0 @@ -../gradlew \ No newline at end of file diff --git a/base/gradlew.bat b/base/gradlew.bat deleted file mode 120000 index 284013288..000000000 --- a/base/gradlew.bat +++ /dev/null @@ -1 +0,0 @@ -../gradlew.bat \ No newline at end of file diff --git a/base/src/main/java/de/staropensource/engine/base/Engine.java b/base/src/main/java/de/staropensource/engine/base/Engine.java deleted file mode 100644 index bc4d989f3..000000000 --- a/base/src/main/java/de/staropensource/engine/base/Engine.java +++ /dev/null @@ -1,614 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base; - -import de.staropensource.engine.base.annotation.EngineSubsystem; -import de.staropensource.engine.base.event.*; -import de.staropensource.engine.base.exception.IllegalAccessException; -import de.staropensource.engine.base.exception.dependency.UnmetDependenciesException; -import de.staropensource.engine.base.implementable.ShutdownHandler; -import de.staropensource.engine.base.implementable.SubsystemClass; -import de.staropensource.engine.base.implementable.helper.EventHelper; -import de.staropensource.engine.base.implementation.versioning.StarOpenSourceVersioningSystem; -import de.staropensource.engine.base.event.InternalEngineShutdownEvent; -import de.staropensource.engine.base.internal.type.DependencySubsystemVector; -import de.staropensource.engine.base.logging.PrintStreamService; -import de.staropensource.engine.base.logging.*; -import de.staropensource.engine.base.logging.backend.async.LoggingQueue; -import de.staropensource.engine.base.logging.backend.async.LoggingThread; -import de.staropensource.engine.base.type.DependencyVector; -import de.staropensource.engine.base.type.EngineState; -import de.staropensource.engine.base.utility.DependencyResolver; -import de.staropensource.engine.base.utility.FileAccess; -import de.staropensource.engine.base.utility.misc.Miscellaneous; -import de.staropensource.engine.base.utility.PlaceholderEngine; -import de.staropensource.engine.base.utility.information.EngineInformation; -import de.staropensource.engine.base.utility.information.JvmInformation; -import lombok.AccessLevel; -import lombok.Getter; -import lombok.Setter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Range; -import org.reflections.Reflections; -import org.reflections.scanners.Scanners; -import org.reflections.util.ClasspathHelper; -import org.reflections.util.ConfigurationBuilder; - -import java.util.*; - -/** - * Main class of the sos!engine. - * - * @see EngineConfiguration - * @since v1-alpha0 - */ -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Engine extends SubsystemClass { - /** - * Contains the class instance. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the class instance. - * - * @return class instance unless {@link Engine} is uninitialized - * @since v1-alpha0 - */ - @Getter - private static Engine instance = null; - - /** - * Contains the thread group of the engine. - * - * @since v1-alpha2 - * -- GETTER -- - * Returns the thread group of the engine. - * - * @return engine thread group - * @since v1-alpha2 - */ - @Getter - private static final ThreadGroup threadGroup = new ThreadGroup("sos!engine"); - - /** - * Contains the engine state. - * - * @since v1-alpha2 - * -- GETTER -- - * Returns the engine state. - * - * @return shutdown state - * @since v1-alpha2 - */ - @Getter - private @NotNull EngineState state; - - /** - * Contains a list of all registered subsystems. - * The list is sorted after initialization order. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns a list of all registered subsystems. - * The list is sorted after initialization order. - * - * @return subsystem list - * @since v1-alpha1 - */ - @Getter - private @NotNull List<@NotNull DependencySubsystemVector> subsystems = Collections.emptyList(); - - /** - * Contains the engine's shutdown handler. - * The shutdown handler is responsible for - * shutting down the JVM safely. - * - * @see ShutdownHandler - * @since v1-alpha2 - * -- GETTER -- - * Returns the engine's shutdown handler. - * The shutdown handler is responsible for - * shutting down the JVM safely. - * - * @return shutdown handler - * @see ShutdownHandler - * @since v1-alpha2 - * -- SETTER -- - * Sets the engine's shutdown handler. - * The shutdown handler is responsible for - * shutting down the JVM safely. - * - * @param shutdownHandler new shutdown handler - * @see ShutdownHandler - * @since v1-alpha2 - */ - @Getter(value = AccessLevel.MODULE) - @Setter(value = AccessLevel.MODULE) - private @NotNull ShutdownHandler shutdownHandler = new Engine.JvmShutdownHandler(); - - /** - * Contains the JVM shutdown hook thread, - * which ensures that the engine is fully shut - * down before the JVM exits. - * - * @see EngineInternals#installSafetyShutdownHook(boolean) - * @since v1-alpha4 - */ - @Getter(AccessLevel.MODULE) - private final @NotNull Thread safetyShutdownHook = Thread.ofPlatform() - .name("Engine shutdown thread") - .group(getThreadGroup()) - .unstarted(() -> { - // Check if already shutting down - switch (state) { - case UNKNOWN, SHUTDOWN, CRASHED -> { - return; - } - } - - // Print warning about shutdown - Logger.warn("Trying to shut down engine using shutdown hook.\nThis approach to shutting down the engine and JVM is NOT RECOMMENDED, please use Engine#shutdown() instead."); - - // Shutdown - Engine.getInstance().shutdown(); - - // Print last message - Logger.warn("Engine successfully shut down using shutdown hook. PLEASE USE Engine#shutdown() INSTEAD OF System#exit() or Runtime#exit()!"); - }); - - /** - * Initializes the StarOpenSource Engine. - * - * @throws RuntimeException for all exceptions thrown by this constructor - * @since v1-alpha8 - */ - private Engine() throws RuntimeException { - try { - instance = this; - state = EngineState.EARLY_STARTUP; - - // For measuring the initialization time - long initTimeEarly = System.currentTimeMillis(); - long initTimeLate = initTimeEarly; - - // Check for incompatible JVM implementations - checkJvmIncompatibilities(); - - // Display that the engine is initializing - Logger.verb("Initializing engine"); - - // Start the logging thread - Logger.diag("Starting logging infrastructure"); - LoggingThread.startThread(false); - PrintStreamService.initializeStreams(); - - // Initialize EngineInternals - Logger.diag("Initializing EngineInternals class"); - new EngineInternals(); - - // Load engine configuration - Logger.diag("Loading engine configuration"); - new EngineConfiguration(); - EngineConfiguration.getInstance().loadConfiguration(); - - // Load engine build information - Logger.diag("Loading engine build information"); - EngineInformation.update(); - - // Check for reflective classpath scanning compatibility - checkReflectiveClasspathScanningCompatibility(); - - // Check for Java version incompatibilities - checkJavaVersion(); - - // Initialize PlaceholderEngine - Logger.diag("Initializing PlaceholderEngine"); - PlaceholderEngine.initialize(); - - // Initialize static FileAccess instances - Logger.diag("Initializing static FileAccess instances"); - FileAccess.initializeInstances(); - - // Install the safety shutdown hook - Logger.diag("Installing safety shutdown hook"); - EngineInternals.getInstance().installSafetyShutdownHook(true); - - // Cache events - Logger.diag("Caching event listeners"); - cacheEvents(); - - // Complete early initialization stage - Logger.verb("Completing early initialization stage"); - state = EngineState.STARTUP; - initTimeEarly = System.currentTimeMillis() - initTimeEarly; - - // Perform automatic subsystem initialization - if (EngineConfiguration.getInstance().isInitialPerformSubsystemInitialization()) { - // Collect all subsystems - Logger.diag("Collecting subsystems"); - collectSubsystems(); - - // Initialize subsystems - try { - initializeSubsystems(); - } catch (Exception exception) { - Logger.error("Subsystem dependency resolution failed"); - } - } - - // Complete late initialization stage - Logger.verb("Completing late initialization stage"); - state = EngineState.RUNNING; - initTimeLate = System.currentTimeMillis() - initTimeLate; - - // Print welcome message - Logger.info( - """ - Welcome to the StarOpenSource Engine "%engine_version_codename%" %engine_version%! - Running commit %engine_git_commit_id_long% (dirty %engine_git_dirty%). - Initialization took %init_time_total%ms (early %init_time_early%ms, late %init_time_late%ms). - - Copyright (c) 2024 The StarOpenSource Engine Authors - Licensed under the GNU Affero General Public License v3""" - .replace("%init_time_total%", String.valueOf(initTimeEarly + initTimeLate)) - .replace("%init_time_early%", String.valueOf(initTimeEarly)) - .replace("%init_time_late%", String.valueOf(initTimeLate)) - ); - } catch (Exception exception) { - throw new RuntimeException(exception); - } - } - - /** - * Initializes the StarOpenSource - * Engine, if it isn't already. - * - * @throws IllegalStateException when running in an incompatible environment - * @throws RuntimeException on engine initialization failure - * @since v1-alpha6 - */ - public static void initialize() throws RuntimeException { - try { - if (instance == null) - new Engine(); - } catch (RuntimeException exception) { - Logger.error("Engine initialization failed\n" + Miscellaneous.stacktraceAsStringRecursive(exception.getCause(), true, true)); - Logger.flush(); - - throw new RuntimeException("Engine initialization failed", exception.getCause()); - } - } - - /** - * Checks if the running JVM implementation is not supported by the engine. - * - * @since v1-alpha8 - */ - private void checkJvmIncompatibilities() { - if (System.getProperties().getProperty("sosengine.base.allowUnsupportedJVMInitialization", "false").equals("true")) { - Logger.warn("Skipping JVM implementation incompatibilities check"); - return; - } - - // Substrate VM (GraalVM Community) - if (JvmInformation.getImplementationName().equals("Substrate VM") && JvmInformation.getImplementationVendor().equals("GraalVM Community")) { - Logger.error("##############################################################################################"); - Logger.error("## Running in Substrate VM, which is the name of the JVM used by GraalVM native-image. ##"); - Logger.error("## The StarOpenSource Engine does not support native-image as using reflection in a certain ##"); - Logger.error("## way seems to cause the Substrate JVM to crash. Workarounds have failed. ##"); - Logger.error("## This has already been noted in issue #3, which you can view here: ##"); - Logger.error("## https://git.staropensource.de/StarOpenSource/Engine/issues/3 ##"); - Logger.error("## ##"); - Logger.error("## While this is sad, we unfortunately can't do anything against it unless we introduce ##"); - Logger.error("## annoying and stupid changes into the engine, which we don't want to do. ##"); - Logger.error("## ##"); - Logger.error("## We're truly sorry for this inconvenience. The sos!engine will now terminate. ##"); - Logger.error("##############################################################################################"); - Runtime.getRuntime().exit(255); - } - } - - /** - * Checks if reflective classpath scanning is supported. - * - * @since v1-alpha8 - */ - private void checkReflectiveClasspathScanningCompatibility() { - // Check if reflective classpath scanning is supported - if (System.getProperties().getProperty("sosengine.base.considerEnvironmentUnfriendlyToClasspathScanning", "false").equals("true")) { - Logger.warn("Running in an classpath scanning-unfriendly environment, disabling classpath scanning support."); - Logger.warn("If shit doesn't work and is expected to be discovered by annotations, you'll need to"); - Logger.warn("either register it first or have to update some engine configuration setting."); - Logger.warn("Please consult sos!engine's documentation for more information about this issue."); - EngineInternals.getInstance().overrideReflectiveClasspathScanning(false); - } - } - - /** - * Checks and warns if the Java version of the - * running JVM is higher than the engine supports. - * - * @since v1-alpha8 - */ - private void checkJavaVersion() { - if (JvmInformation.getJavaVersion() > EngineInformation.getJavaSource()) - Logger.warn("The StarOpenSource Engine is running on an untested Java version.\nThings may not work as expected or features which can improve performance, stability, compatibility or ease of use may be missing.\nIf you encounter issues, try running a JVM implementing Java " + EngineInformation.getJavaSource()); - } - - /** - * Caches all base engine events. - * - * @since v1-alpha0 - */ - private void cacheEvents() { - EventHelper.cacheEvent(EngineCrashEvent.class); - EventHelper.cacheEvent(EngineShutdownEvent.class); - EventHelper.cacheEvent(EngineSoftCrashEvent.class); - EventHelper.cacheEvent(InternalEngineShutdownEvent.class); - EventHelper.cacheEvent(LogEvent.class); - } - - /** - * Collects all subsystems by their {@link EngineSubsystem} annotation. - * - * @since v1-alpha1 - */ - private void collectSubsystems() { - ArrayList<@NotNull DependencySubsystemVector> subsystemsMutable = new ArrayList<>(); - Object initializedClassRaw; - SubsystemClass initializedClass; - - // Check and initialize all classes, get dependency vector and check version, then add to 'subsystemsMutable' - for (Class clazz : getRawSubsystemClasses()) - try { - // Create new instance - initializedClassRaw = clazz.getDeclaredConstructor().newInstance(); - initializedClass = null; - - // Check if class implements SubsystemMainClass - if (initializedClassRaw instanceof SubsystemClass) - initializedClass = (SubsystemClass) initializedClassRaw; - else - Logger.crash("Failed to initialize subsystem " + clazz.getName() + ": Does not implement " + SubsystemClass.class.getName()); - - //noinspection DataFlowIssue // the crash call will prevent a NullPointerException - subsystemsMutable.add(new DependencySubsystemVector(initializedClass.getDependencyVector(), initializedClass)); - } catch (Exception exception) { - if (exception.getClass() == IllegalStateException.class && exception.getMessage().startsWith("The version string is invalid: ")) - Logger.crash("Failed to initialize subsystem " + clazz.getName() + ": Invalid version string: " + exception.getMessage().replace("The version string is invalid: ", "")); - Logger.crash("Failed to initialize subsystem " + clazz.getName() + ": Method invocation error", exception); - } - - // Update 'subsystems' - subsystems = Collections.unmodifiableList(subsystemsMutable); - } - - /** - * Returns a list of classes which are potentially - * eligible for subsystem initialization. - * - * @return potential subsystem classes - * @since v1-alpha5 - */ - private Set<@NotNull Class> getRawSubsystemClasses() { - Set<@NotNull Class> classes = new HashSet<>(); - - if (EngineInternals.getInstance().getReflectiveClasspathScanning()) { - // Scan entire classpath using the Reflections library - Reflections reflections = new Reflections( - new ConfigurationBuilder() - .setUrls(ClasspathHelper.forJavaClassPath()) - .setScanners(Scanners.TypesAnnotated) - ); - - // Get annotated methods - classes = reflections.getTypesAnnotatedWith(EngineSubsystem.class); - } else - for (String path : EngineConfiguration.getInstance().getInitialIncludeSubsystemClasses()) - try { - Logger.diag("Resolving class " + path); - classes.add(Class.forName(path)); - } catch (ClassNotFoundException exception) { - Logger.error("Failed loading subsystem class " + path + ": Class not found"); - } - - return classes; - } - - /** - * Initializes all subsystems. - * - * @throws Exception exceptions thrown by the {@link DependencyResolver} - * @since v1-alpha1 - */ - private void initializeSubsystems() throws Exception { - DependencyResolver resolver = new DependencyResolver(); - LinkedList order = new LinkedList<>(); - - // Add vectors - resolver.addVector(getDependencyVector()); - resolver.addVectors(subsystems); - - // Resolve dependencies and get order - Logger.diag("Resolving subsystem dependencies"); - try { - for (DependencyVector vector : resolver.resolve().getOrder()) // smol workaround - order.add((DependencySubsystemVector) vector); - } catch (Throwable throwable) { - if (throwable instanceof UnmetDependenciesException exception) { - List<@NotNull String> unmetDependencies = exception.getUnmetDependencies(); - StringBuilder list = new StringBuilder(); - - for (String error : unmetDependencies) - list - .append("\n") - .append("- ") - .append(error); - - Logger.crash("Found unresolved dependencies:" + list, throwable); - return; - } - Logger.crash("An error occurred trying to resolve subsystem dependencies: " + throwable.getClass().getName() + (throwable.getMessage() == null ? "" : ": " + throwable.getMessage())); - throw throwable; - } - - // Initialize subsystems - Logger.diag("Initializing engine subsystems"); - long initTime; - for (DependencySubsystemVector vector : subsystems) { - Logger.diag("Initializing subsystem '" + vector.getSubsystemClass().getName() + "' (" + vector.getSubsystemClass().getClass().getName() + ")"); - try { - initTime = Miscellaneous.measureExecutionTime(() -> vector.getSubsystemClass().initializeSubsystem()); - } catch (Throwable throwable) { - Logger.crash("An error occurred trying to initialize subsystem " + vector.getSubsystemClass().getName() + " (" + vector.getSubsystemClass().getClass().getName() + "): " + throwable.getClass().getName() + (throwable.getMessage() == null ? "" : ": " + throwable.getMessage())); - throw throwable; - } - Logger.diag("Initialized subsystem '" + vector.getSubsystemClass().getName() + "' (" + vector.getSubsystemClass().getClass().getName() + ") in " + initTime + "ms"); - } - - // Update 'subsystems' - subsystems = Collections.unmodifiableList(order); - } - - /** - * Shuts the engine down. - * - * @param exitCode code to exit with, from 0-255 - * @since v1-alpha0 - */ - public synchronized void shutdown(@Range(from = 0, to = 255) int exitCode) { - if (state == EngineState.UNKNOWN || state == EngineState.SHUTDOWN) - return; - - Logger.info("Shutting engine down"); - if (state != EngineState.CRASHED) - state = EngineState.SHUTDOWN; - - // Make engine single-threaded - Properties properties = new Properties(); - properties.setProperty("sosengine.base.optimizeLogging", "false"); - properties.setProperty("sosengine.base.optimizeEvents", "false"); - EngineConfiguration.getInstance().loadConfiguration(properties); - - // Flush log messages - LoggingQueue.flush(); - - // Disable safety shutdown hook - try { - Runtime.getRuntime().removeShutdownHook(safetyShutdownHook); - } catch (Exception ignored) {} - - // Send events - Logger.verb("Notifying classes about shutdown"); - new EngineShutdownEvent().callEvent(); - - Logger.verb("Notifying subsystems about shutdown"); - new InternalEngineShutdownEvent().callEvent(); - - // Delete scheduled files - FileAccess.deleteScheduled(); - - // Invoke shutdown handler - Logger.verb("Invoking shutdown handler (code " + exitCode + ")"); - shutdownHandler.shutdown((short) exitCode); - } - - /** - * Shuts the engine down. - * - * @since v1-alpha0 - */ - public void shutdown() { - if (instance != null) - instance.shutdown(0); - } - - /** {@inheritDoc} */ - @Override - public @NotNull String getName() { - return "base"; - } - - /** - * This method does nothing. - * - * @since v1-alpha1 - */ - @Override - public void initializeSubsystem() {} - - /** {@inheritDoc} */ - @Override - public @NotNull DependencyVector getDependencyVector() { - return new DependencyVector.Builder() - .setIdentifier("engine") - .setVersioningSystem(StarOpenSourceVersioningSystem.class) - .setVersion(EngineInformation.getVersioningString()) - .build(); - } - - /** - * Sets the engine state. - * - * @param state new state - * @throws IllegalAccessException if the caller class is unauthorized - * @since v1-alpha2 - */ - public void setState(@NotNull EngineState state) throws IllegalAccessException { - if (!Thread.currentThread().getStackTrace()[2].getClassName().startsWith("de.staropensource.engine.base.")) - throw new IllegalAccessException("Only classes inside the \"de.staropensource.engine.base\" package are allowed to call this method."); - - this.state = state; - } - - /** - * The default shutdown handler, which causes the JVM to exit. - * - * @see ShutdownHandler - * @see System#exit(int) - * @since v1-alpha2 - */ - public static final class JvmShutdownHandler implements ShutdownHandler { - /** - * Constructs this class. - * - * @since v1-alpha2 - */ - public JvmShutdownHandler() {} - - /** {@inheritDoc} */ - @Override - public void shutdown(short exitCode) { - // Check if already shutting down - try { - Thread thread = Thread.ofVirtual().unstarted(() -> {}); - - Runtime.getRuntime().addShutdownHook(thread); - Runtime.getRuntime().removeShutdownHook(thread); - } catch (IllegalStateException exception) { - Logger.warn("Terminating JVM: Already shutting down, skipping"); - return; - } - - Logger.warn("Terminating JVM"); - Runtime.getRuntime().exit(exitCode); - } - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/EngineConfiguration.java b/base/src/main/java/de/staropensource/engine/base/EngineConfiguration.java deleted file mode 100644 index f367258c8..000000000 --- a/base/src/main/java/de/staropensource/engine/base/EngineConfiguration.java +++ /dev/null @@ -1,526 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base; - -import de.staropensource.engine.base.annotation.EngineSubsystem; -import de.staropensource.engine.base.event.LogEvent; -import de.staropensource.engine.base.implementable.Configuration; -import de.staropensource.engine.base.implementable.ShortcodeParser; -import de.staropensource.engine.base.implementable.SubsystemClass; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.logging.backend.async.LoggingThread; -import de.staropensource.engine.base.type.EngineState; -import de.staropensource.engine.base.type.logging.LogLevel; -import de.staropensource.engine.base.type.vector.Vec2f; -import de.staropensource.engine.base.type.vector.Vec2i; -import de.staropensource.engine.base.utility.PropertiesReader; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.util.*; - -/** - * Provides the base engine configuration. - *

- * This class does not only provide engine settings but is also - * responsible for loading them into memory from {@link Properties} objects. - *

- * Now you might ask why we didn't go with the string-based approach. - * The answer is simple: It's a maintenance burden. - * Having various settings strings scattered across many classes will cause - * trouble at some point, which will cause some strings to be undocumented - * or have an inconsistent naming scheme. Containing settings as variables in - * one centralized place mitigates this. - * - * @since v1-alpha0 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class EngineConfiguration extends Configuration { - /** - * Contains the class instance. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the class instance. - * - * @return class instance unless {@link Engine} is uninitialized - * @since v1-alpha0 - */ - @Getter - private static EngineConfiguration instance; - - /** - * Contains the configuration prefix. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the configuration prefix. - * - * @return property group - * @since v1-alpha0 - */ - private final @NotNull String group = "sosengine.base."; - - - /** - * Contains if debugging options should be allowed. - * All debugging options will be forcefully set to - * {@code false} if this option is set to {@code false}. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns if debugging options should be allowed. - * All debugging options will be forcefully set to - * {@code false} if this option is set to {@code false}. - * - * @return debugging enabled? - * @since v1-alpha0 - */ - private boolean debug; - - /** - * Contains whether or not to log - * events being emitted. - *

- * This will cause all events to - * be logged, with the exception - * of the {@link LogEvent}. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns whether or not to log - * events being emitted. - *

- * This will cause all events to - * be logged, with the exception - * of the {@link LogEvent}. - * - * @return detailed event logging enabled? - * @since v1-alpha0 - */ - private boolean debugEvents; - - - /** - * Contains whether or not to automatically discover - * and initialize any class extending {@link SubsystemClass} - * whilst being annotated with {@link EngineSubsystem}. - *

- * This mechanism may fail in certain situations, where - * manual subsystem initialization may be desired. Make - * sure to disable this setting before engine startup - * and then initialize all subsystems manually. - * - * @see Engine - * @since v1-alpha5 - * -- GETTER -- - * Returns whether or not to automatically discover - * and initialize any class extending {@link SubsystemClass} - * whilst being annotated with {@link EngineSubsystem}. - *

- * This mechanism may fail in certain situations, where - * manual subsystem initialization may be desired. Make - * sure to disable this setting before engine startup - * and then initialize all subsystems manually. - * - * @return automatically discover and initialize subsystems? - * @since v1-alpha5 - */ - private boolean initialPerformSubsystemInitialization; - - /** - * Contains a set of class names to try to load - * and initialize as subsystems. Will only take effect - * if {@link #initialPerformSubsystemInitialization} is - * turned off. - * - * @since v1-alpha5 - * -- GETTER -- - * Returns a set of class names to try to load - * and initialize as subsystems. Will only take effect - * if {@link #getInitialIncludeSubsystemClasses()} is - * turned off. - * - * @return set of class names to try and initialize as subsystems - * @since v1-alpha5 - */ - private Set<@NotNull String> initialIncludeSubsystemClasses; - - - /** - * Contains whether or not to complain about invalid - * shortcodes. - *

- * Requires the active log level to be set at least - * to {@link LogLevel#SILENT_WARNING} to have effect. - * - * @see #logLevel - * @since v1-alpha0 - * -- GETTER -- - * Returns whether or not to complain about invalid - * shortcodes. - *

- * Requires the active log level to be set at least - * to {@link LogLevel#SILENT_WARNING} to have effect. - * - * @return complain about invalid shortcodes? - * @see #getLogLevel() - * @since v1-alpha0 - */ - private boolean errorShortcodeParser; - - - /** - * Contains if to log asynchronously. - *

- * If enabled, will cause a logging thread - * to spawn. All log messages will be queued - * and printed after a set delay - * ({@link #logPollingSpeed}). - * Highly recommended to keep enabled, or - * the performance of your application will - * very likely suffer. - * - * @see #logPollingSpeed - * @since v1-alpha0 - * -- GETTER -- - * Returns if to log asynchronously. - *

- * If enabled, will cause a logging thread - * to spawn. All log messages will be queued - * and printed after a set delay - * ({@link #getLogPollingSpeed()}). - * Highly recommended to keep enabled, or - * the performance of your application will - * very likely suffer. - * - * @return log asynchronously? - * @see #getLogPollingSpeed() - * @since v1-alpha0 - */ - private boolean optimizeLogging; - - /** - * Contains whether or not to emit events - * asynchronously. - *

- * This will cause a - * VirtualThread - * to spawn every time an event is emitted. - * - * @since v1-alpha0 - * -- GETTER -- - * Contains whether or not to emit events - * asynchronously. - *

- * This will cause a - * VirtualThread - * to spawn every time an event is emitted. - * - * @return emit events asynchronously? - * @since v1-alpha0 - */ - private boolean optimizeEvents; - - - /** - * Contains the minimum allowed log level. - *

- * The priority list is as follows (from high to low priority): - *

    - *
  • {@link LogLevel#CRASH}
  • - *
  • {@link LogLevel#ERROR}
  • - *
  • {@link LogLevel#WARNING}
  • - *
  • {@link LogLevel#INFORMATIONAL}
  • - *
  • {@link LogLevel#SILENT_WARNING}
  • - *
  • {@link LogLevel#VERBOSE}
  • - *
  • {@link LogLevel#DIAGNOSTIC}
  • - *
- * - * @since v1-alpha0 - * -- GETTER -- - * Returns the minimum allowed log level. - *

- * The priority list is as follows (from high to low priority): - *

    - *
  • {@link LogLevel#CRASH}
  • - *
  • {@link LogLevel#ERROR}
  • - *
  • {@link LogLevel#WARNING}
  • - *
  • {@link LogLevel#INFORMATIONAL}
  • - *
  • {@link LogLevel#SILENT_WARNING}
  • - *
  • {@link LogLevel#VERBOSE}
  • - *
  • {@link LogLevel#DIAGNOSTIC}
  • - *
- * - * @return minimum allowed log level - * @since v1-alpha0 - */ - private LogLevel logLevel; - - /** - * Contains a comma-separated list of optional - * features to add to the final log output. - *

- * Available features (in order of appearance): - *

    - *
  • formatting
  • - *
  • runtime
  • - *
  • date
  • - *
  • time
  • - *
  • shortIssuerClass
  • - *
  • moduleName
  • - *
  • moduleVersion (requires moduleName)
  • - *
  • methodName
  • - *
  • lineNumber
  • - *
- * - * @since v1-alpha8 - * -- GETTER -- - * Returns a comma-separated list of optional - * features to add to the final log output. - *

- * Available features (in order of appearance): - *

    - *
  • formatting
  • - *
  • runtime
  • - *
  • date
  • - *
  • time
  • - *
  • shortIssuerClass
  • - *
  • moduleName
  • - *
  • moduleVersion (requires moduleName)
  • - *
  • methodName
  • - *
  • lineNumber
  • - *
  • level
  • - *
  • origin
  • - *
- * - * @return optional features to enable - * @since v1-alpha8 - */ - private Set<@NotNull String> logFeatures; - - /** - * Contains how fast the logging thread will - * poll for queued messages in milliseconds. - * This also causes messages to be buffered. - *

- * Only applies if {@code optimizeLogging} is turned on. - * Values below {@code 1} will poll for queued messages - * as fast as it can. This however has pretty much no - * benefit. Leave it at {@code 5}, it works quite well. - * - * @see #optimizeLogging - * @since v1-alpha4 - * -- GETTER -- - * Contains how fast the logging thread will - * poll for queued messages, in milliseconds. - * This also causes messages to be buffered. - *

- * Only applies if {@code optimizeLogging} is turned on. - * Values below {@code 1} will poll for queued messages - * as fast as it can. This however has pretty much no - * benefit. Leave it at {@code 5}, it works quite well. - * - * @return logging thread polling speed in milliseconds - * @see #isOptimizeLogging() - * @since v1-alpha4 - */ - private int logPollingSpeed; - - /** - * Contains whether or not to forcefully write - * to the standard output instead of the - * standard error stream. - *

- * This only applies to the {@link LogLevel#ERROR} and - * {@link LogLevel#CRASH} log levels, as these use - * the standard error stream by default. - * - * @see man page about standard streams - * @since v1-alpha0 - * -- GETTER -- - * Contains whether or not to forcefully write - * to the standard output instead of the - * standard error stream. - *

- * This only applies to the {@link LogLevel#ERROR} and - * {@link LogLevel#CRASH} log levels, as these use - * the standard error stream by default. - * - * @return force use stdout? - * @see man page about standard streams - * @since v1-alpha0 - */ - private boolean logForceStandardOutput; - - - /** - * Contains if to truncate the full path - * of a class when invoking using their - * {@link #toString()} method. - *

- * Here's an example: Lets say that you have a - * {@link Vec2f} instance and want to convert - * it to a String. You can do that by using - * {@link Vec2f}'s {@link Vec2f#toString()} - * method. With this flag disabled it will - * return - * {@code de.staropensource.engine.base.types.vectors.}{@link Vec2i}{@code (x=64 y=64)}. - * With this flag enabled however the method will return - * {@link Vec2i}{@code (x=64 y=64)}, - * which is much smaller. - * - * @since v1-alpha2 - * -- GETTER -- - * Returns if to truncate the full path - * of a class when invoking using their - * {@link #toString()} method. - *

- * Here's an example: Lets say that you have a - * {@link Vec2f} instance and want to convert - * it to a String. You can do that by using - * {@link Vec2f}'s {@link Vec2f#toString()} - * method. With this flag disabled it will - * return - * {@code de.staropensource.engine.base.types.vectors.}{@link Vec2i}{@code (x=64 y=64)}. - * With this flag enabled however the method will return - * {@link Vec2i}{@code (x=64 y=64)}, - * which is much smaller. - * - * @return truncate class paths? - * @since v1-alpha2 - */ - private boolean hideFullTypePath; - - /** - * Constructs this class. - * - * @see Engine - * @since v1-alpha6 - */ - EngineConfiguration() { - super(); - - instance = this; - - // Load default configuration - loadDefaultConfiguration(); - } - - /** {@inheritDoc} */ - @Override - protected void matchProperty(@NotNull PropertiesReader parser, @NotNull String property) { - try { - switch (property) { - case "debug" -> debug = parser.getBoolean(group + property); - case "debugEvents" -> debugEvents = parser.getBoolean(group + property); - - case "initialPerformSubsystemInitialization" -> initialPerformSubsystemInitialization = parser.getBoolean(group + property); - case "initialIncludeSubsystemClasses" -> { - initialIncludeSubsystemClasses = new HashSet<>(); - initialIncludeSubsystemClasses.addAll(Arrays.stream(parser.getString(group + property).split(",")).toList()); - } - - case "errorShortcodeParser" -> errorShortcodeParser = parser.getBoolean(group + property); - - case "optimizeLogging" -> { - optimizeLogging = parser.getBoolean(group + property); - - // Start logging thread automatically - if (optimizeLogging && Engine.getInstance().getState() == EngineState.RUNNING) { - LoggingThread.startThread(false); - } - } - case "optimizeEvents" -> optimizeEvents = parser.getBoolean(group + property); - - case "logLevel" -> { - try { - logLevel = LogLevel.valueOf(parser.getString(group + property).toUpperCase()); - } catch (IllegalArgumentException ignored) { - Logger.error("The log level '" + parser.getString(group + property) + "' is not valid"); - } - } - case "logFeatures" -> logFeatures = Set.copyOf(Arrays.stream(parser.getString(group + property).split(",")).toList()); - case "logPollingSpeed" -> logPollingSpeed = parser.getInteger(group + property, true); - case "logForceStandardOutput" -> logForceStandardOutput = parser.getBoolean(group + property); - - case "hideFullTypePath" -> hideFullTypePath = parser.getBoolean(group + property); - } - } catch (NullPointerException ignored) {} - } - - /** {@inheritDoc} */ - @Override - protected void processSettings(@NotNull PropertiesReader parser) { - // Disable all debugging switches if 'debug' is disabled - if (!debug) { - debugEvents = false; - } - } - - /** {@inheritDoc} */ - @Override - public void loadDefaultConfiguration() { - debug = false; - debugEvents = false; - - initialPerformSubsystemInitialization = true; - initialIncludeSubsystemClasses = new HashSet<>(); - - errorShortcodeParser = true; - - optimizeLogging = true; - optimizeEvents = true; - - logLevel = LogLevel.INFORMATIONAL; - logFeatures = Set.of("formatting", "time", "methodName", "lineNumber", "level", "origin"); - logPollingSpeed = 5; - logForceStandardOutput = false; - - hideFullTypePath = false; - } - - /** {@inheritDoc} */ - @Override - public @Nullable Object getSetting(@NotNull String setting) { - return switch (setting) { - case "debug" -> debug; - case "debugEvents" -> debugEvents; - - case "initialPerformSubsystemInitialization" -> initialPerformSubsystemInitialization; - case "initialIncludeSubsystemClasses" -> initialIncludeSubsystemClasses; - - case "errorShortcodeParser" -> errorShortcodeParser; - - case "optimizeLogging" -> optimizeLogging; - case "optimizeEvents" -> optimizeEvents; - - case "logLevel" -> logLevel; - case "logFeatures" -> logFeatures; - case "logPollingSpeed" -> logPollingSpeed; - case "logForceStandardOutput" -> logForceStandardOutput; - - case "hideFullTypePath" -> hideFullTypePath; - default -> null; - }; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/EngineInternals.java b/base/src/main/java/de/staropensource/engine/base/EngineInternals.java deleted file mode 100644 index 740833ea6..000000000 --- a/base/src/main/java/de/staropensource/engine/base/EngineInternals.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base; - -import de.staropensource.engine.base.exception.IllegalAccessException; -import de.staropensource.engine.base.implementable.Event; -import de.staropensource.engine.base.implementable.EventListenerCode; -import de.staropensource.engine.base.implementable.ShutdownHandler; -import de.staropensource.engine.base.implementable.helper.EventHelper; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.InternalAccessArea; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -/** - * Class which allows access to the internals - * and changing the behaviour of the engine. - * - * @since v1-alpha4 - */ -@SuppressWarnings({ "JavadocDeclaration" }) -public final class EngineInternals { - /** - * Contains the class instance. - * - * @since v1-alpha4 - * -- GETTER -- - * Returns the class instance. - * - * @return class instance unless the engine is uninitialized - * @since v1-alpha4 - */ - @Getter - private static EngineInternals instance; - - /** - * Contains all disabled internal access areas. - * - * @since v1-alpha4 - * -- GETTER -- - * Returns all disabled internal access areas. - * - * @return restricted areas - * @since v1-alpha4 - */ - @Getter - private final @NotNull List<@NotNull InternalAccessArea> restrictedAreas = new ArrayList<>(); - - /** - * Contains whether the engine should reflectively - * search the classpath for events or other annotations. - *

- * If disabled, code will either have to manually call - * registration methods or certain classes have to - * be created in a certain package, depending on the - * use case and application. - * - * @see EventHelper#registerEvent(Class, EventListenerCode) - * @see EventHelper#registerEvent(Class, EventListenerCode, Event.Priority) - * @since v1-alpha5 - */ - private boolean reflectiveClasspathScanning = true; - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha6 - */ - EngineInternals() { - // Only allow one instance - if (instance == null && Engine.getInstance() != null) - instance = this; - else - Logger.crash("Only one instance of this class is allowed, use getInstance() instead of creating a new instance"); - } - - /** - * Determines whether access to the specified area is allowed. - * - * @param area internal access area to check - * @throws IllegalAccessException when restricted - * @since v1-alpha4 - */ - private void isRestricted(@NotNull InternalAccessArea area) throws IllegalAccessException { - if (restrictedAreas.contains(area)) - throw new IllegalAccessException("The internal access area " + area.name() + " has been restricted"); - } - - /** - * Restricts access to certain areas of this class. - * - * @param area area to restrict - * @since v1-alpha4 - */ - public void restrictAccess(@NotNull InternalAccessArea area) { - switch (area) { - case ALL -> { - List<@NotNull InternalAccessArea> areas = new ArrayList<>(List.of(InternalAccessArea.values())); - areas.remove(InternalAccessArea.ALL); - areas.remove(InternalAccessArea.ALL_READ); - areas.remove(InternalAccessArea.ALL_WRITE); - areas.remove(InternalAccessArea.ALL_READ_ESSENTIAL); - restrictedAreas.addAll(areas); - } - case ALL_WRITE -> restrictedAreas.addAll(Arrays.stream(InternalAccessArea.valuesWriteOnly()).toList()); - case ALL_READ -> restrictedAreas.addAll(Arrays.stream(InternalAccessArea.valuesReadOnly()).toList()); - case ALL_READ_ESSENTIAL -> restrictedAreas.addAll(Arrays.stream(InternalAccessArea.valuesEssentialReadOnly()).toList()); - default -> restrictedAreas.add(area); - } - } - - /** - * Installs or uninstalls the JVM shutdown - * hook, which prevents the JVM from exiting - * before the engine has fully shut down. - * Highly recommended to keep enabled. - * - * @param status {@code true} to install, {@code false} otherwise - * @throws IllegalAccessException when restricted ({@link InternalAccessArea#SAFETY_SHUTDOWN_HOOK_UPDATE}) - * @since v1-alpha4 - */ - public void installSafetyShutdownHook(boolean status) throws IllegalAccessException { - isRestricted(InternalAccessArea.SAFETY_SHUTDOWN_HOOK_UPDATE); - - try { - if (status) - Runtime.getRuntime().addShutdownHook(Engine.getInstance().getSafetyShutdownHook()); - else - Runtime.getRuntime().removeShutdownHook(Engine.getInstance().getSafetyShutdownHook()); - } catch (IllegalArgumentException | IllegalStateException ignored) {} - } - - /** - * Gets the engine's shutdown handler. - * The shutdown handler is responsible for - * shutting down the JVM safely. - * - * @return shutdown handler - * @throws IllegalAccessException when restricted ({@link InternalAccessArea#SHUTDOWN_HANDLER_GET}) - * @since v1-alpha4 - */ - public @NotNull ShutdownHandler getShutdownHandler() throws IllegalAccessException { - isRestricted(InternalAccessArea.SHUTDOWN_HANDLER_GET); - return Engine.getInstance().getShutdownHandler(); - } - - /** - * Sets the engine's shutdown handler. - * The shutdown handler is responsible for - * shutting down the JVM safely. - * - * @param shutdownHandler new shutdown handler - * @throws IllegalAccessException when restricted ({@link InternalAccessArea#SHUTDOWN_HANDLER_UPDATE}) - * @since v1-alpha4 - */ - public void setShutdownHandler(@NotNull ShutdownHandler shutdownHandler) throws IllegalAccessException { - isRestricted(InternalAccessArea.SHUTDOWN_HANDLER_UPDATE); - Engine.getInstance().setShutdownHandler(shutdownHandler); - } - - /** - * Returns whether the engine should reflectively - * search the classpath for events or other annotations. - *

- * If disabled, code will either have to manually call - * registration methods or certain classes have to - * be created in a certain package, depending on the - * use case and application. - * - * @return reflective classpath scanning flag state - * @throws IllegalAccessException when restricted ({@link InternalAccessArea#REFLECTIVE_CLASSPATH_SCANNING_GET}) - * @see EventHelper#registerEvent(Class, EventListenerCode) - * @see EventHelper#registerEvent(Class, EventListenerCode, Event.Priority) - * @since v1-alpha5 - */ - public boolean getReflectiveClasspathScanning() throws IllegalAccessException { - isRestricted(InternalAccessArea.REFLECTIVE_CLASSPATH_SCANNING_GET); - return reflectiveClasspathScanning; - } - - /** - * Overrides whether the engine should reflectively - * search the classpath for events or other annotations. - *

- * If disabled, code will either have to manually call - * registration methods or certain classes have to - * be created in a certain package, depending on the - * use case and application. - *

- * Enabling reflective classpath scanning in an unsupported - * environment may cause minor to extreme side effects, - * including but not limited to bugs, exceptions, engine - * or even whole JVM crashes. You have been warned! - * - * @param reflectiveClasspathScanning new reflective classpath scanning - * @throws IllegalAccessException when restricted ({@link InternalAccessArea#REFLECTIVE_CLASSPATH_SCANNING_OVERRIDE}) - * @see EventHelper#registerEvent(Class, EventListenerCode) - * @see EventHelper#registerEvent(Class, EventListenerCode, Event.Priority) - * @since v1-alpha5 - */ - public void overrideReflectiveClasspathScanning(boolean reflectiveClasspathScanning) throws IllegalAccessException { - isRestricted(InternalAccessArea.REFLECTIVE_CLASSPATH_SCANNING_OVERRIDE); - this.reflectiveClasspathScanning = reflectiveClasspathScanning; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/annotation/EngineSubsystem.java b/base/src/main/java/de/staropensource/engine/base/annotation/EngineSubsystem.java deleted file mode 100644 index 6bbb71d45..000000000 --- a/base/src/main/java/de/staropensource/engine/base/annotation/EngineSubsystem.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.annotation; - -import de.staropensource.engine.base.implementable.SubsystemClass; - -import java.lang.annotation.*; - -/** - * Marks a class as a subsystem main class. - * Make sure your subsystem implements {@link SubsystemClass}. - * - * @see SubsystemClass - * @since v1-alpha1 - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -@Documented -public @interface EngineSubsystem {} diff --git a/base/src/main/java/de/staropensource/engine/base/annotation/EventListener.java b/base/src/main/java/de/staropensource/engine/base/annotation/EventListener.java deleted file mode 100644 index f835a9693..000000000 --- a/base/src/main/java/de/staropensource/engine/base/annotation/EventListener.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.annotation; - -import de.staropensource.engine.base.implementable.Event; -import org.jetbrains.annotations.NotNull; - -import java.lang.annotation.*; - -/** - * Marks a method as an event listener, allowing it - * to respond to an events when it is emitted. - * - * @since v1-alpha0 - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.METHOD) -@Documented -public @interface EventListener { - /** - * Specifies the event to listen for. - * - * @return event to listen on - * @see Event - * @since v1-alpha0 - */ - @NotNull Class event(); - - /** - * Specifies the priority of the event. - * - * @return event priority - * @see Event.Priority - * @since v1-alpha0 - */ - @NotNull Event.Priority priority() default Event.Priority.DEFAULT; -} diff --git a/base/src/main/java/de/staropensource/engine/base/event/EngineCrashEvent.java b/base/src/main/java/de/staropensource/engine/base/event/EngineCrashEvent.java deleted file mode 100644 index ea9a36524..000000000 --- a/base/src/main/java/de/staropensource/engine/base/event/EngineCrashEvent.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.event; - -import de.staropensource.engine.base.implementable.Event; -import de.staropensource.engine.base.implementable.helper.EventHelper; - -/** - * Called in the event of an engine crash. - * - * @since v1-alpha0 - */ -public final class EngineCrashEvent implements Event { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineCrashEvent() {} - - /** {@inheritDoc} */ - @Override - public void callEvent() { - EventHelper.invokeAnnotatedMethods(getClass()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/event/EngineShutdownEvent.java b/base/src/main/java/de/staropensource/engine/base/event/EngineShutdownEvent.java deleted file mode 100644 index 1f1910a93..000000000 --- a/base/src/main/java/de/staropensource/engine/base/event/EngineShutdownEvent.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.event; - -import de.staropensource.engine.base.implementable.Event; -import de.staropensource.engine.base.implementable.helper.EventHelper; - -/** - * Called when the engine is about to shutdown. - * - * @since v1-alpha0 - */ -public final class EngineShutdownEvent implements Event { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineShutdownEvent() {} - - /** {@inheritDoc} */ - @Override - public void callEvent() { - EventHelper.invokeAnnotatedMethods(getClass()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/event/EngineSoftCrashEvent.java b/base/src/main/java/de/staropensource/engine/base/event/EngineSoftCrashEvent.java deleted file mode 100644 index 743cc7715..000000000 --- a/base/src/main/java/de/staropensource/engine/base/event/EngineSoftCrashEvent.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.event; - -import de.staropensource.engine.base.implementable.Event; -import de.staropensource.engine.base.implementable.helper.EventHelper; -import de.staropensource.engine.base.logging.Logger; - -/** - * Called in the event of a soft engine crash - * ie. when a crash report is thrown but marked - * as handled. - * - * @see Logger#crash(Class, String, String, String, Throwable, boolean) - * @since v1-alpha0 - */ -public final class EngineSoftCrashEvent implements Event { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineSoftCrashEvent() {} - - /** {@inheritDoc} */ - @Override - public void callEvent() { - EventHelper.invokeAnnotatedMethods(getClass()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/event/InternalEngineShutdownEvent.java b/base/src/main/java/de/staropensource/engine/base/event/InternalEngineShutdownEvent.java deleted file mode 100644 index 7daf15e02..000000000 --- a/base/src/main/java/de/staropensource/engine/base/event/InternalEngineShutdownEvent.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.event; - -import de.staropensource.engine.base.implementable.Event; -import de.staropensource.engine.base.implementable.helper.EventHelper; - -/** - * Called when the engine is about to shutdown, after {@link de.staropensource.engine.base.event.EngineShutdownEvent}. - *

- * Meant for subsystems to perform cleanup and shutdown routines, not for applications. - * - * @since v1-alpha0 - */ -public final class InternalEngineShutdownEvent implements Event { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public InternalEngineShutdownEvent() {} - - /** {@inheritDoc} */ - @Override - public void callEvent() { - EventHelper.invokeAnnotatedMethods(getClass()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/event/LogEvent.java b/base/src/main/java/de/staropensource/engine/base/event/LogEvent.java deleted file mode 100644 index 6de307fb5..000000000 --- a/base/src/main/java/de/staropensource/engine/base/event/LogEvent.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.event; - -import de.staropensource.engine.base.implementable.Event; -import de.staropensource.engine.base.implementable.helper.EventHelper; -import de.staropensource.engine.base.type.logging.LogLevel; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -/** - * Called before a new log message is printed. - * - * @since v1-alpha0 - */ -public final class LogEvent implements Event { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public LogEvent() {} - - /** - * {@inheritDoc} - * - * @deprecated use the {@code callEvent} method with arguments - * @see #callEvent(LogLevel, Class, String, String, String) - */ - @Deprecated - @Override - public void callEvent() {} - - /** - * Emits the event and calls all event listeners. - * - * @param level level - * @param issuerClass issuer class - * @param issuerOrigin issuer origin - * @param issuerMetadata issuer metadata - * @param message message - * @since v1-alpha0 - */ - public void callEvent(@NotNull LogLevel level, @NotNull Class issuerClass, @NotNull String issuerOrigin, @Nullable String issuerMetadata, @NotNull String message) { - EventHelper.invokeAnnotatedMethods(getClass(), level, issuerClass, issuerOrigin, issuerMetadata, message); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/ParserException.java b/base/src/main/java/de/staropensource/engine/base/exception/ParserException.java deleted file mode 100644 index 9b39d1d55..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/ParserException.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception; - -import org.jetbrains.annotations.NotNull; - -/** - * Thrown when something fails to parse. - * - * @since v1-alpha2 - */ -public class ParserException extends RuntimeException { - /** - * Creates and initializes an instance of this exception. - * - * @param message parsing error - * @since v1-alpha2 - */ - public ParserException(@NotNull String message) { - super(message); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/TristateConversionException.java b/base/src/main/java/de/staropensource/engine/base/exception/TristateConversionException.java deleted file mode 100644 index 858b9353f..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/TristateConversionException.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception; - -import de.staropensource.engine.base.type.Tristate; - -/** - * Thrown when converting a {@link Tristate} into a {@link Boolean} fails. - *

- * This exception inherits {@link RuntimeException} on purpose, - * as sometimes you may sure/have already validated that the - * {@link Tristate} is not {@link Tristate#UNSET}. - * - * @since v1-alpha2 - */ -public class TristateConversionException extends RuntimeException { - /** - * Creates and initializes an instance of this exception. - * - * @since v1-alpha2 - */ - public TristateConversionException() { - super("Tristate.UNSET cannot be converted into a boolean"); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/UnexpectedCheckEndException.java b/base/src/main/java/de/staropensource/engine/base/exception/UnexpectedCheckEndException.java deleted file mode 100644 index 072130da9..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/UnexpectedCheckEndException.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception; - -import org.jetbrains.annotations.NotNull; - -/** - * Thrown when a sequence of if checks or switch cases fail unexpectedly. - * - * @since v1-alpha2 - */ -public class UnexpectedCheckEndException extends RuntimeException { - /** - * Creates and initializes an instance of this exception. - * - * @param checkOccurrence the sequence of checks that failed - * @since v1-alpha2 - */ - public UnexpectedCheckEndException(@NotNull String checkOccurrence) { - super("A sequence of if checks or switch cases failed unexpectedly while " + checkOccurrence); - } - - /** - * Creates and initializes an instance of this exception. - * - * @since v1-alpha2 - */ - public UnexpectedCheckEndException() { - super("A sequence of if checks or switch cases failed unexpectedly"); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/dependency/DependencyCycleException.java b/base/src/main/java/de/staropensource/engine/base/exception/dependency/DependencyCycleException.java deleted file mode 100644 index 10a7fb160..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/dependency/DependencyCycleException.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception.dependency; - -import de.staropensource.engine.base.utility.DependencyResolver; -import org.jetbrains.annotations.NotNull; - -/** - * Thrown when the {@link DependencyResolver} detects a dependency cycle. - * - * @since v1-alpha1 - */ -public class DependencyCycleException extends RuntimeException { - /** - * Creates and initializes an instance of this exception. - * - * @param path cycle path - * @since v1-alpha1 - */ - public DependencyCycleException(@NotNull String path) { - super("Dependency cycle detected: " + path); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/dependency/UnmetDependenciesException.java b/base/src/main/java/de/staropensource/engine/base/exception/dependency/UnmetDependenciesException.java deleted file mode 100644 index d76654e61..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/dependency/UnmetDependenciesException.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception.dependency; - -import de.staropensource.engine.base.type.DependencyVector; -import de.staropensource.engine.base.utility.DependencyResolver; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; - -import java.util.List; - -/** - * Thrown when the {@link DependencyResolver} cannot resolve one - * or more {@link DependencyVector}s due to unmet dependencies. - * - * @since v1-alpha1 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public class UnmetDependenciesException extends Exception { - /** - * Contains the unmet dependencies list supplied to the constructor. - * - * @since v1-alpha4 - * -- GETTER -- - * Returns the unmet dependencies list supplied to the constructor. - * - * @return unmet dependencies list - * @since v1-alpha4 - */ - private final @NotNull List<@NotNull String> unmetDependencies; - - /** - * Creates and initializes an instance of this event. - * - * @param unmetDependencies map of all unmet dependencies - * @see #unmetDependencies - * @since v1-alpha4 - */ - public UnmetDependenciesException(@NotNull List<@NotNull String> unmetDependencies) { - this.unmetDependencies = unmetDependencies; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/reflection/IncompatibleTypeException.java b/base/src/main/java/de/staropensource/engine/base/exception/reflection/IncompatibleTypeException.java deleted file mode 100644 index 345b4ab25..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/reflection/IncompatibleTypeException.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception.reflection; - -import de.staropensource.engine.base.type.reflection.ClassType; -import de.staropensource.engine.base.utility.misc.ListFormatter; -import org.jetbrains.annotations.NotNull; - -/** - * Thrown when the invoked method does not apply to the type of the class. - * - * @since v1-alpha2 - */ -public class IncompatibleTypeException extends RuntimeException { - /** - * Creates and initializes an instance of this exception. - * - * @param methodName name of the method that failed - * @param requiredClassType class type received by the method - * @param compatibleTypes class types the method is compatible with - */ - public IncompatibleTypeException(@NotNull String methodName, @NotNull ClassType requiredClassType, @NotNull ClassType @NotNull [] compatibleTypes) { - super("The method ReflectionClass#" + methodName + " only applies to type(s) " + ListFormatter.formatArray(compatibleTypes) + ", not " + requiredClassType.name()); - } - - /** - * Creates and initializes an instance of this exception. - * - * @param methodName name of the method that failed - * @param requiredClassType class type received by the method - * @param compatibleType class type the method is compatible with - */ - public IncompatibleTypeException(@NotNull String methodName, @NotNull ClassType requiredClassType, @NotNull ClassType compatibleType) { - super("The method ReflectionClass#" + methodName + " only applies to type(s) " + ListFormatter.formatArray(new ClassType[]{ compatibleType }) + ", not " + requiredClassType.name()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/reflection/InstanceMethodFromStaticContextException.java b/base/src/main/java/de/staropensource/engine/base/exception/reflection/InstanceMethodFromStaticContextException.java deleted file mode 100644 index 791af7680..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/reflection/InstanceMethodFromStaticContextException.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception.reflection; - -import org.jetbrains.annotations.NotNull; - -/** - * Thrown when trying to call an instance (non-static) method from a static context. - * - * @since v1-alpha2 - */ -public class InstanceMethodFromStaticContextException extends Exception { - /** - * Creates and initializes an instance of this exception. - * - * @param methodName name of the method - * @since v1-alpha2 - */ - public InstanceMethodFromStaticContextException(@NotNull String methodName) { - super("Method " + methodName + " could not be called as the method is non-static and was called from a static context"); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/reflection/InvalidFieldException.java b/base/src/main/java/de/staropensource/engine/base/exception/reflection/InvalidFieldException.java deleted file mode 100644 index 010171d75..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/reflection/InvalidFieldException.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception.reflection; - -import de.staropensource.engine.base.reflection.ReflectionClass; -import org.jetbrains.annotations.NotNull; - -/** - * Thrown when a field could not be found. - * - * @since v1-alpha2 - */ -public class InvalidFieldException extends Exception { - /** - * Creates and initializes an instance of this exception. - * - * @param clazz caller {@link ReflectionClass} - * @param fieldName name of the invalid field - */ - public InvalidFieldException(@NotNull ReflectionClass clazz, @NotNull String fieldName) { - super("Invalid field name \"" + fieldName + "\" in class " + clazz.getPath()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/reflection/InvalidMethodException.java b/base/src/main/java/de/staropensource/engine/base/exception/reflection/InvalidMethodException.java deleted file mode 100644 index 0f84ace55..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/reflection/InvalidMethodException.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception.reflection; - -import de.staropensource.engine.base.reflection.ReflectionClass; -import org.jetbrains.annotations.NotNull; - -/** - * Thrown when a method could not be found. - * - * @since v1-alpha2 - */ -public class InvalidMethodException extends Exception { - /** - * Creates and initializes an instance of this exception. - * - * @param clazz caller {@link ReflectionClass} - * @param fieldName name of the invalid method - */ - public InvalidMethodException(@NotNull ReflectionClass clazz, @NotNull String fieldName) { - super("Invalid method name \"" + fieldName + "\" in class " + clazz.getPath()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/reflection/InvalidMethodSignatureException.java b/base/src/main/java/de/staropensource/engine/base/exception/reflection/InvalidMethodSignatureException.java deleted file mode 100644 index 8fd1a8b80..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/reflection/InvalidMethodSignatureException.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception.reflection; - -import org.jetbrains.annotations.NotNull; - -/** - * Thrown when a method could not be found due to an invalid method signature. - * - * @since v1-alpha5 - */ -public class InvalidMethodSignatureException extends Exception { - /** - * Creates and initializes an instance of this exception. - * - * @param methodName method name - * @since v1-alpha5 - */ - public InvalidMethodSignatureException(@NotNull String methodName) { - super("Method " + methodName + " has a different method signature"); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/reflection/NoAccessException.java b/base/src/main/java/de/staropensource/engine/base/exception/reflection/NoAccessException.java deleted file mode 100644 index f2cb06443..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/reflection/NoAccessException.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception.reflection; - -import org.jetbrains.annotations.NotNull; - -/** - * Thrown if access to some class, method or field has been denied. - * - * @since v1-alpha2 - */ -public class NoAccessException extends Exception { - /** - * Creates and initializes an instance of this exception. - * - * @param type {@code class}, {@code method} or {@code field} - * @param name class, method or field name - * @since v1-alpha2 - */ - public NoAccessException(@NotNull String type, @NotNull String name) { - super("Access to " + type + " " + name + " has been denied"); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/reflection/StaticInitializerException.java b/base/src/main/java/de/staropensource/engine/base/exception/reflection/StaticInitializerException.java deleted file mode 100644 index 8c4f9af15..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/reflection/StaticInitializerException.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception.reflection; - -import lombok.Getter; -import org.jetbrains.annotations.NotNull; - -/** - * Thrown when an exception is thrown by a static initializer. - * - * @since v1-alpha2 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public class StaticInitializerException extends Exception { - /** - * Contains the throwable thrown by the static initializer. - * - * @since v1-alpha2 - * -- GETTER -- - * Returns the throwable thrown by the static initializer. - * - * @return throwable thrown by the static initializer - * @since v1-alpha2 - */ - private final @NotNull Throwable throwable; - - /** - * Creates and initializes an instance of this exception. - * - * @param throwable throwable thrown by the static initializer - * @since v1-alpha2 - */ - public StaticInitializerException(@NotNull Throwable throwable) { - this.throwable = throwable; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/reflection/package-info.java b/base/src/main/java/de/staropensource/engine/base/exception/reflection/package-info.java deleted file mode 100644 index 183923b6e..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/reflection/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Exceptions related to reflection. - * - * @see de.staropensource.engine.base.reflection - * @since v1-alpha2 - */ -package de.staropensource.engine.base.exception.reflection; diff --git a/base/src/main/java/de/staropensource/engine/base/exception/versioning/IncompatibleVersioningSystemException.java b/base/src/main/java/de/staropensource/engine/base/exception/versioning/IncompatibleVersioningSystemException.java deleted file mode 100644 index eeb2fe92f..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/versioning/IncompatibleVersioningSystemException.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception.versioning; - -import de.staropensource.engine.base.implementable.VersioningSystem; - -/** - * Thrown when trying to compare a {@link VersioningSystem} against another - * {@link VersioningSystem}, which it does not support. - * - * @since v1-alpha1 - */ -public class IncompatibleVersioningSystemException extends RuntimeException { - /** - * Creates and initializes an instance of this exception. - * - * @param required required versioning system ie. the versioning system throwing this error - * @param found found versioning system ie. the incompatible one - * @since v1-alpha1 - */ - public IncompatibleVersioningSystemException(VersioningSystem required, VersioningSystem found) { - super("The versioning system " + required + " is incompatible with " + found); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/versioning/InvalidVersionStringException.java b/base/src/main/java/de/staropensource/engine/base/exception/versioning/InvalidVersionStringException.java deleted file mode 100644 index 545b30417..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/versioning/InvalidVersionStringException.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.exception.versioning; - -import de.staropensource.engine.base.implementable.VersioningSystem; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - - -/** - * Thrown when an invalid version string is supplied - * to an implementation of {@link VersioningSystem}. - * - * @since v1-alpha1 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public class InvalidVersionStringException extends Exception { - /** - * Contains the throwable supplied to the constructor. - * - * @see #InvalidVersionStringException(VersioningSystem, String, Throwable) - * @see #InvalidVersionStringException(VersioningSystem, String, String, Throwable) - * @since v1-alpha1 - * -- GETTER -- - * Returns the throwable supplied by the constructor. - * - * @return throwable - * @see #InvalidVersionStringException(VersioningSystem, String, Throwable) - * @see #InvalidVersionStringException(VersioningSystem, String, String, Throwable) - * @since v1-alpha1 - */ - private final @Nullable Throwable throwable; - - /** - * Creates and initializes an instance of this exception. - * - * @param versioningSystem versioning system that is unable to parse version strings - * @param versionString version string {@code a} - * @param message some error message - * @param throwable throwable that caused the parsing error - * @since v1-alpha1 - */ - public InvalidVersionStringException(@NotNull VersioningSystem versioningSystem, @NotNull String versionString, @NotNull String message, @NotNull Throwable throwable) { - super("Versioning system " + versioningSystem.getName() + " can't parse version string \"" + versionString + "\": " + message); - this.throwable = throwable; - } - - /** - * Creates and initializes an instance of this exception. - * - * @param versioningSystem versioning system that is unable to parse version strings - * @param versionString version string {@code a} - * @param message some error message - * @since v1-alpha1 - */ - public InvalidVersionStringException(@NotNull VersioningSystem versioningSystem, @NotNull String versionString, @NotNull String message) { - super("Versioning system " + versioningSystem.getName() + " can't parse version string \"" + versionString + "\": " + message); - throwable = null; - } - - /** - * Creates and initializes an instance of this exception. - * - * @param versioningSystem versioning system that is unable to parse version strings - * @param versionString version string {@code a} - * @param throwable throwable that caused the parsing error - * @since v1-alpha1 - */ - public InvalidVersionStringException(@NotNull VersioningSystem versioningSystem, @NotNull String versionString, @NotNull Throwable throwable) { - super("Versioning system " + versioningSystem.getName() + " can't parse version string \"" + versionString + "\""); - this.throwable = throwable; - } - - /** - * Creates and initializes an instance of this exception. - * - * @param versioningSystem versioning system that is unable to parse version strings - * @param versionString version string {@code a} - * @since v1-alpha1 - */ - public InvalidVersionStringException(@NotNull VersioningSystem versioningSystem, @NotNull String versionString) { - super("Versioning system " + versioningSystem.getName() + " can't parse version string \"" + versionString + "\""); - this.throwable = null; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/versioning/package-info.java b/base/src/main/java/de/staropensource/engine/base/exception/versioning/package-info.java deleted file mode 100644 index 29809525e..000000000 --- a/base/src/main/java/de/staropensource/engine/base/exception/versioning/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Exceptions thrown by implementations of {@link de.staropensource.engine.base.implementable.VersioningSystem}s. - * - * @see de.staropensource.engine.base.implementable.VersioningSystem - * @since v1-alpha1 - */ -package de.staropensource.engine.base.exception.versioning; diff --git a/base/src/main/java/de/staropensource/engine/base/implementable/Configuration.java b/base/src/main/java/de/staropensource/engine/base/implementable/Configuration.java deleted file mode 100644 index dce06c037..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementable/Configuration.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementable; - -import de.staropensource.engine.base.utility.PropertiesReader; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.util.Properties; - -/** - * Interface for implementing configuration classes. - *

- * Configuration classes use {@link Properties} objects to modify - * their settings as they can be supplied to the JVM's arguments - * and can be written to and read from during runtime. - * - * @since v1-alpha2 - */ -public abstract class Configuration { - /** - * Creates and initializes an instance of this abstract class. - * - * @since v1-alpha2 - */ - protected Configuration() { - // Load default configuration - loadDefaultConfiguration(); - } - - /** - * Loads all settings from the specified {@link Properties} object. - * Unless you want to override settings, consider invoking {@link #loadDefaultConfiguration()} first. - * - * @param properties {@link Properties} to read from - * @see #loadDefaultConfiguration() - * @since v1-alpha2 - */ - public void loadConfiguration(@NotNull Properties properties) { - PropertiesReader parser = new PropertiesReader(properties); - - // Loop through all properties - for (String property : properties.stringPropertyNames()) { - // Check if property name starts with group - if (!property.startsWith(getGroup())) - continue; - - // Remove group - property = property.substring(getGroup().length()); - - // Overwrite matching settings - try { - matchProperty(parser, property); - } catch (NullPointerException ignored) {} - } - - processSettings(parser); - } - - /** - * Loads all settings from the system properties. - * Useful if you want to allow the user to modify settings at startup. - * - * @see #loadConfiguration(Properties) - * @see System#getProperties() - * @since v1-alpha2 - */ - public void loadConfiguration() { - loadConfiguration(System.getProperties()); - } - - /** - * Returns prefix properties must begin with. - * - * @return property group - * @since v1-alpha2 - */ - public abstract @NotNull String getGroup(); - - /** - * Loads the default subsystem configuration. - * - * @see #loadConfiguration() - * @see #loadConfiguration(Properties) - * @since v1-alpha0 - */ - public abstract void loadDefaultConfiguration(); - - /** - * Matches the given {@code property} against all settings. - * If a match has been found, the setting will be overwritten with the property's value. - * - * @param parser matching {@link PropertiesReader} - * @param property property to match - * @since v1-alpha2 - */ - protected abstract void matchProperty(@NotNull PropertiesReader parser, @NotNull String property); - - /** - * Allows the implementor to process all settings and potentially - * modify them before {@link #loadConfiguration(Properties)} returns. - * - * @param parser matching {@link PropertiesReader} - * @since v1-alpha2 - */ - protected abstract void processSettings(@NotNull PropertiesReader parser); - - /** - * Returns a configuration setting. - * - * @param setting setting name - * @return setting's value or {@code null} if not found - */ - public abstract @Nullable Object getSetting(@NotNull String setting); -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementable/Event.java b/base/src/main/java/de/staropensource/engine/base/implementable/Event.java deleted file mode 100644 index 4fbf1d9ec..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementable/Event.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementable; - -import de.staropensource.engine.base.annotation.EventListener; -import de.staropensource.engine.base.implementable.helper.EventHelper; - -/** - * Represents an event. - * - * @see EventHelper - * @since v1-alpha0 - */ -public interface Event { - /** - * Emits the event and calls all event listeners. - * - * @since v1-alpha0 - */ - void callEvent(); - - /** - * Specifies in which order {@link EventListener}s shall be called. - * - * @since v1-alpha9 - */ - @SuppressWarnings({ "unused" }) - enum Priority { - /** - * {@link EventListener}s with this - * priority are called before all others. - *

- * This priority is exclusive to the - * engine and subsystems and should - * not be used by applications. - * - * @since v1-alpha9 - */ - EXCLUSIVELY_IMPORTANT, - - /** - * {@link EventListener}s with - * this priority are called 2nd. - * - * @since v1-alpha9 - */ - VERY_IMPORTANT, - - /** - * {@link EventListener}s with - * this priority are called 3rd. - * - * @since v1-alpha9 - */ - IMPORTANT, - - /** - * {@link EventListener}s with - * this priority are called 4th. - * - * @since v1-alpha9 - */ - DEFAULT, - - /** - * {@link EventListener}s with - * this priority are called 5th. - * - * @since v1-alpha9 - */ - UNIMPORTANT, - - /** - * {@link EventListener}s with - * this priority are called 6th. - * - * @since v1-alpha9 - */ - VERY_UNIMPORTANT, - - /** - * {@link EventListener}s with this - * priority are called after all others. - *

- * This priority is exclusive to the - * engine and subsystems and should - * not be used by applications. - * - * @since v1-alpha9 - */ - EXCLUSIVELY_UNIMPORTANT - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementable/EventListenerCode.java b/base/src/main/java/de/staropensource/engine/base/implementable/EventListenerCode.java deleted file mode 100644 index c1b3e09e4..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementable/EventListenerCode.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementable; - -import de.staropensource.engine.base.implementable.helper.EventHelper; -import org.jetbrains.annotations.NotNull; - -/** - * Used by {@link EventHelper} to execute event listeners. - * - * @see Runnable - * @since v1-alpha5 - */ -public abstract class EventListenerCode { - /** - * Contains the priority of this - * event listener. - *

- * Set automatically by {@link EventHelper}, - * do not change this manually. - * - * @since v1-alpha5 - */ - public @NotNull Event.Priority priority = Event.Priority.DEFAULT; - - /** - * Creates and initializes an instance of this abstract class. - * - * @since v1-alpha5 - */ - protected EventListenerCode() {} - - /** - * Invokes the event listener. - * - * @param arguments arguments passed along by the event - * @throws Exception exceptions thrown - * @since v1-alpha5 - */ - public abstract void run(Object... arguments) throws Exception; -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementable/LoggingAdapter.java b/base/src/main/java/de/staropensource/engine/base/implementable/LoggingAdapter.java deleted file mode 100644 index 062e8f60f..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementable/LoggingAdapter.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementable; - -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.logging.LogLevel; -import org.jetbrains.annotations.NotNull; - -/** - * Interface for implementing custom logger implementations. - * - * @see Logger#setLoggingAdapter(LoggingAdapter) - * @since v1-alpha0 - */ -public interface LoggingAdapter { - /** - * Prints a log message. - * - * @param level level of the log call - * @param issuer {@link StackTraceElement} of the issuer - * @param message raw message - * @param format processed log call output (print this!) - * @since v1-alpha2 - */ - void print(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message, @NotNull String format); -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementable/Placeholder.java b/base/src/main/java/de/staropensource/engine/base/implementable/Placeholder.java deleted file mode 100644 index decaa85ce..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementable/Placeholder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementable; - -import de.staropensource.engine.base.utility.PlaceholderEngine; -import org.jetbrains.annotations.NotNull; - -/** - * Interface for implementing placeholders. - * - * @see PlaceholderEngine - * @since v1-alpha0 - */ -public interface Placeholder { - /** - * Replaces the placeholder with content. - * - * @param text text to process - * @return processed text - * @since v1-alpha2 - */ - @NotNull String replace(@NotNull String text); -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementable/ShortcodeParser.java b/base/src/main/java/de/staropensource/engine/base/implementable/ShortcodeParser.java deleted file mode 100644 index fcf83a6d1..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementable/ShortcodeParser.java +++ /dev/null @@ -1,218 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementable; - -import de.staropensource.engine.base.EngineConfiguration; -import de.staropensource.engine.base.exception.ParserException; -import de.staropensource.engine.base.logging.Logger; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; - -import java.util.LinkedList; -import java.util.Locale; - -/** - * Base class for implementing a shortcode parser. - *

- * This class parses a string and converts it into a list of - * components, which can then be in turn be converted to something - * else, for example, ANSI escape codes. - *

- * The following shortcodes are available and can be used: - *

    - *
  • reset
  • - *
  • fg:[black,red,green,yellow,blue,magenta,cyan,white]
  • - *
  • bg:[black,red,green,yellow,blue,magenta,cyan,white]
  • - *
  • bold
  • - *
  • italic
  • - *
  • strikethrough
  • - *
  • underline
  • - *
- * - * @since v1-alpha1 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public abstract class ShortcodeParser { - /** - * Contains a list of components the parsed text is made out of. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns a list of components the parsed text is made out of. - * - * @return component list - * @since v1-alpha1 - */ - protected final @NotNull LinkedList components; - - /** - * Creates and initializes an instance of this abstract class. - * - * @param string string to parse - * @param ignoreInvalidEscapes if {@code true}, will ignore and treat invalid escapes as text - * @throws ParserException on error - * @since v1-alpha2 - */ - protected ShortcodeParser(@NotNull String string, boolean ignoreInvalidEscapes) throws ParserException { - components = parse(string, ignoreInvalidEscapes); - } - - /** - * Parses the input string and returns a list - * of components the text is made out of. - * - * @param string string to parse - * @param ignoreInvalidEscapes if {@code true}, will ignore and treat invalid escapes as text - * @return list of components - * @throws ParserException on error - * @see EngineConfiguration#errorShortcodeParser - * @since v1-alpha2 - */ - protected @NotNull LinkedList<@NotNull String> parse(@NotNull String string, boolean ignoreInvalidEscapes) throws ParserException { - LinkedList components = new LinkedList<>(); // List of components - boolean tagActive = false; // Indicates that a tag is being parsed - boolean escape = false; // Indicates whether the last character was a \ character - StringBuilder part = new StringBuilder(); // Temporary string. May be a tag, may be regular text - - // Iterate through every character - for (char character : string.toCharArray()) { - // Escaping - if (escape) { - if (character == '\\' || character == '<') - part.append(character); - else if (!(character == 'r' || character == 'n')) - if (ignoreInvalidEscapes) - part.append("\\").append(character); - else - throw new ParserException("Invalid escape \\" + character); - - escape = false; - continue; - } - if (character == '\\') { - escape = true; - continue; - } - - if (tagActive) { - // A tag is being parsed - if (character == '>') { - // Tag is ending, disable tag parsing - tagActive = false; - - // fg:* - if (part.toString().startsWith("fg:")) - if (isValidColor(part.substring(3).toUpperCase())) - components.add("COLOR:FOREGROUND:" + part.substring(3).toUpperCase()); - else { - // Complain about invalid shortcode - if (EngineConfiguration.getInstance() != null && EngineConfiguration.getInstance().isErrorShortcodeParser()) - Logger.sarn("Invalid shortcode: " + part); - - // Convert tag regular text - components.add("TEXT:" + "<" + part + ">"); - } - // bg:* - else if (part.toString().startsWith("bg:")) - if (isValidColor(part.substring(3).toUpperCase())) - components.add("COLOR:BACKGROUND:" + part.substring(3).toUpperCase()); - else { - // Complain about invalid shortcode - if (EngineConfiguration.getInstance() != null && EngineConfiguration.getInstance().isErrorShortcodeParser()) - Logger.sarn("Invalid shortcode: " + part); - - // Convert tag regular text - components.add("TEXT:" + "<" + part + ">"); - } - // bold - else if (part.toString().equals("bold")) - components.add("ATTRIBUTE:BOLD"); - // italic - else if (part.toString().equals("italic")) - components.add("ATTRIBUTE:ITALIC"); - // strikethrough - else if (part.toString().equals("strikethrough")) - components.add("ATTRIBUTE:STRIKETHROUGH"); - // underline - else if (part.toString().equals("underline")) - components.add("ATTRIBUTE:UNDERLINE"); - // blink - else if (part.toString().equals("blink")) - components.add("ATTRIBUTE:BLINK"); - // reset - else if (part.toString().equals("reset")) - components.add("RESET"); - - // error case - else { - // Complain about invalid shortcode - if (EngineConfiguration.getInstance() != null && EngineConfiguration.getInstance().isErrorShortcodeParser()) - Logger.sarn("Invalid shortcode: " + part); - - // Convert tag regular text - components.add("TEXT:" + "<" + part + ">"); - } - - // Empty 'part' - part = new StringBuilder(); - } else - // Tag has not ended yet, add character to 'part' - // It bloats the code to do it with StringBuilder - part.append(character); - } else { - // Regular text is being parsed - if (character == '<') { - if (!part.isEmpty()) { - // Tag is starting, insert previous text - components.add("TEXT:" + part); - part = new StringBuilder(); - } - - tagActive = true; // Enable tag processing - } else - // Regular text, add character to 'part' - // It bloats the code to do it with StringBuilder - part.append(character); - } - } - - // Processing ended, insert leftover text - if (!part.isEmpty()) - components.add("TEXT:" + part); - - return components; - } - - /** - * Returns if the specified color is valid - * - * @return {@code true} if valid, {@code false} otherwise - * @since v1-alpha2 - */ - private boolean isValidColor(@NotNull String color) { - return switch (color.toLowerCase(Locale.ROOT)) { - case "black", "white", "red", - "green", "blue", "yellow", - "magenta", "cyan" -> true; - default -> false; - }; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementable/ShutdownHandler.java b/base/src/main/java/de/staropensource/engine/base/implementable/ShutdownHandler.java deleted file mode 100644 index d5f1c1d1e..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementable/ShutdownHandler.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementable; - -import de.staropensource.engine.base.Engine; -import org.jetbrains.annotations.Range; - -/** - * Interface for custom shutdown handlers. - *

- * Shutdown handlers are responsible for shutting down - * the platform safely after the engine has shut down. - * - * @see Engine#setShutdownHandler(ShutdownHandler) - * @since v1-alpha2 - */ -public interface ShutdownHandler { - /** - * Executes the shutdown handler. - * - * @param exitCode exit code - * @since v1-alpha2 - */ - void shutdown(@Range(from = 0, to = 255) short exitCode); -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementable/SubsystemClass.java b/base/src/main/java/de/staropensource/engine/base/implementable/SubsystemClass.java deleted file mode 100644 index 316ef8e67..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementable/SubsystemClass.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementable; - -import de.staropensource.engine.base.Engine; -import de.staropensource.engine.base.annotation.EngineSubsystem; -import de.staropensource.engine.base.annotation.EventListener; -import de.staropensource.engine.base.event.InternalEngineShutdownEvent; -import de.staropensource.engine.base.type.DependencyVector; -import org.jetbrains.annotations.NotNull; - -/** - * Abstract class for building subsystem main classes. - * - * @see EngineSubsystem - * @since v1-alpha0 - */ -public abstract class SubsystemClass { - /** - * Creates and initializes an instance of this abstract class. - * - * @since v1-alpha2 - */ - protected SubsystemClass() {} - - /** - * Returns the name of the subsystem. - * - * @return subsystem name - * @since v1-alpha2 - */ - public abstract @NotNull String getName(); - - /** - * Initializes the subsystem. - * - * @since v1-alpha1 - */ - public abstract void initializeSubsystem(); - - /** - * Returns a matching {@link DependencyVector}. - * Used for dependency resolution during startup. - * - * @return matching {@link DependencyVector} for the subsystem - * @throws IllegalStateException when building the DependencyVector fails, see {@link DependencyVector.Builder#build()} - * @see DependencyVector - * @since v1-alpha4 - */ - public abstract @NotNull DependencyVector getDependencyVector() throws IllegalStateException; - - /** - * Called on engine shutdown. - * - * @see Engine#shutdown() - * @see Engine#shutdown(int) - * @since v1-alpha0 - */ - @EventListener(event = InternalEngineShutdownEvent.class) - @SuppressWarnings({ "unused" }) - protected static void shutdownSubsystem() {} -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementable/VersioningSystem.java b/base/src/main/java/de/staropensource/engine/base/implementable/VersioningSystem.java deleted file mode 100644 index c7808b21b..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementable/VersioningSystem.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementable; - -import de.staropensource.engine.base.exception.versioning.IncompatibleVersioningSystemException; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Range; - -/** - * Interface for building a versioning system (parser). - * - * @since v1-alpha1 - */ -public interface VersioningSystem { - /** - * Returns the name of the versioning system. - * - * @return versioning system name - * @since v1-alpha1 - */ - @NotNull String getName(); - - /** - * Compares a {@link VersioningSystem} with another. - * - * @param version {@link VersioningSystem} to compare against - * @return {@code 0} if the supplied version is bigger, {@code 1} if equal and {@code 2} if smaller - * @throws IncompatibleVersioningSystemException incompatible with the supplied versioning system - * @since v1-alpha1 - */ - @Range(from = 0, to = 2) - int compare(@NotNull VersioningSystem version) throws IncompatibleVersioningSystemException; - - /** - * Returns the version string. - * - * @return version string - * @since v1-alpha9 - */ - @Override - @NotNull String toString(); -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementable/helper/EventHelper.java b/base/src/main/java/de/staropensource/engine/base/implementable/helper/EventHelper.java deleted file mode 100644 index 839940d40..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementable/helper/EventHelper.java +++ /dev/null @@ -1,256 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementable.helper; - -import de.staropensource.engine.base.EngineConfiguration; -import de.staropensource.engine.base.EngineInternals; -import de.staropensource.engine.base.annotation.EventListener; -import de.staropensource.engine.base.event.LogEvent; -import de.staropensource.engine.base.exception.reflection.InstanceMethodFromStaticContextException; -import de.staropensource.engine.base.exception.reflection.InvalidMethodSignatureException; -import de.staropensource.engine.base.exception.reflection.NoAccessException; -import de.staropensource.engine.base.exception.reflection.StaticInitializerException; -import de.staropensource.engine.base.implementable.Event; -import de.staropensource.engine.base.implementable.EventListenerCode; -import de.staropensource.engine.base.internal.implementation.EventListenerMethod; - -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.utility.misc.ListFormatter; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; -import org.reflections.Reflections; -import org.reflections.scanners.Scanners; -import org.reflections.util.ClasspathHelper; -import org.reflections.util.ConfigurationBuilder; - -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.*; - -/** - * Simplifies event logging and calling. - * - * @since v1-alpha0 - */ -@Getter -public final class EventHelper { - /** - * Holds all cached events. - * - * @since v1-alpha5 - */ - private static final @NotNull Map<@NotNull Class, LinkedList<@NotNull EventListenerCode>> cachedEventListeners = new HashMap<>(); - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha0 - */ - private EventHelper() {} - - /** - * Registers a new {@link Event}. - *

- * This method does nothing if classpath searching is disabled. - * - * @param event {@link Event} to register for - * @param eventListener {@link EventListenerCode} to register - * @param priority priority of the listener - * @see EngineInternals#getReflectiveClasspathScanning() - * @since v1-alpha5 - */ - public static synchronized void registerEvent(@NotNull Class event, @NotNull EventListenerCode eventListener, @NotNull Event.Priority priority) { - if (EngineInternals.getInstance().getReflectiveClasspathScanning()) - return; - - // Update 'eventListener' priority - eventListener.priority = priority; - - // Check if event already exists in map - // If not, create entry with a LinkedList - if (cachedEventListeners.containsKey(event)) - if (cachedEventListeners.get(event).contains(eventListener)) - return; - else - cachedEventListeners.get(event).add(eventListener); - else { - LinkedList<@NotNull EventListenerCode> list = new LinkedList<>(); - list.add(eventListener); - cachedEventListeners.put(event, list); - } - - Logger.diag("Registered event listener " + eventListener + " for event " + event + " with priority " + priority.name()); - } - - /** - * Registers a new {@link Event}. - *

- * This method does nothing if classpath searching is disabled. - * - * @param event {@link Event} to register for - * @param eventListener {@link EventListenerCode} to register - * @see EngineInternals#getReflectiveClasspathScanning() - * @since v1-alpha5 - */ - public static void registerEvent(@NotNull Class event, @NotNull EventListenerCode eventListener) { - registerEvent(event, eventListener, Event.Priority.DEFAULT); - } - - /** - * (Re-)Caches all event listeners for some {@link Event}. - *

- * This method does nothing if classpath searching is enabled. - * - * @param event event to (re-)cache. Set to {@code null} to recompute all cached events - * @see EngineInternals#getReflectiveClasspathScanning() - * @since v1-alpha5 - */ - public static synchronized void cacheEvent(@Nullable Class event) { - if (!EngineInternals.getInstance().getReflectiveClasspathScanning()) - return; - - if (event == null) - for (Class cachedEvent : cachedEventListeners.keySet()) - cacheEvent(cachedEvent); - else { - LinkedList<@NotNull EventListenerCode> annotatedMethods = getAnnotatedMethods(event); - - if (cachedEventListeners.containsKey(event)) - cachedEventListeners.replace(event, annotatedMethods); - else - cachedEventListeners.put(event, annotatedMethods); - } - } - - /** - * Removes an event from the event listener cache. - *

- * This method does nothing if classpath searching is enabled. - * - * @param event event to uncache. Set to {@code null} to clear the entire cache - * @see EngineInternals#getReflectiveClasspathScanning() - * @since v1-alpha5 - */ - public static synchronized void uncacheEvent(@Nullable Class event) { - if (!EngineInternals.getInstance().getReflectiveClasspathScanning()) - return; - - if (event == null) - cachedEventListeners.clear(); - else - cachedEventListeners.remove(event); - } - - /** - * Invokes all event listeners. - * - * @param event event class - * @param arguments arguments to pass to event listeners - * @since v1-alpha5 - */ - public static void invokeAnnotatedMethods(@NotNull Class event, Object... arguments) { - if (event != LogEvent.class && EngineConfiguration.getInstance().isDebugEvents()) - if (arguments.length == 0) - Logger.diag("Event " + event.getName() + " was emitted"); - else - Logger.diag("Event " + event.getName() + " was emitted, passing arguments " + ListFormatter.formatArray(arguments)); - - Runnable eventCode = () -> { - for (EventListenerCode eventListener : getAnnotatedMethods(event)) { - try { - eventListener.run(arguments); - } catch (NoAccessException exception) { - Logger.warn("Event listener " + eventListener + " could not be called as the method could not be accessed"); - } catch (InvalidMethodSignatureException exception) { - Logger.warn("Event listener " + eventListener + " has an invalid method signature"); - } catch (InvocationTargetException exception) { - Logger.crash("Event listener " + eventListener + " threw a throwable", exception.getTargetException(), true); - } catch (InstanceMethodFromStaticContextException exception) { - Logger.warn("Event listener " + eventListener + " is not static. Event listener methods must be static for them to be called."); - } catch (StaticInitializerException exception) { - Logger.crash("Event listener " + eventListener + " could not be called as the static initializer failed", exception.getThrowable(), true); - } catch (Exception exception) { - Logger.crash("Event listener " + eventListener + " could not be called as an error occurred during reflection", exception, true); - } - } - }; - - if (EngineConfiguration.getInstance().isOptimizeEvents()) - Thread - .ofVirtual() - .name("Event " + event.getName()) - .start(eventCode); - else - eventCode.run(); - } - - /** - * Returns all {@link EventListener}s listening on some event. - * The classpath will be scanned for listeners, unless cached results exist and {@code !forceScanning}. - * - * @param event event class - * @param forceScanning forces scanning the classpath for listeners. not recommended due to a huge performance penalty - * @return list of event listeners - * @see #cacheEvent(Class) - * @since v1-alpha5 - */ - public static @NotNull LinkedList getAnnotatedMethods(@NotNull Class event, boolean forceScanning) { - LinkedList eventListeners = new LinkedList<>(); - - if (!EngineInternals.getInstance().getReflectiveClasspathScanning()) - return Objects.requireNonNullElse(cachedEventListeners.get(event), eventListeners); - - if (forceScanning || !cachedEventListeners.containsKey(event)) { - Reflections reflections = new Reflections( - new ConfigurationBuilder() - .setUrls(ClasspathHelper.forJavaClassPath()) - .setScanners(Scanners.MethodsAnnotated) - ); - - // Get annotated methods - Set<@NotNull Method> annotatedMethods = reflections.getMethodsAnnotatedWith(EventListener.class); - - // Sort event listeners not listening for the specified event out - for (Method method : annotatedMethods) - if (method.getAnnotation(EventListener.class).event() == event) - eventListeners.add(new EventListenerMethod(method)); - - // Sort list after event priority - eventListeners.sort(Comparator.comparing(method -> Objects.requireNonNull(((EventListenerMethod) method).getAnnotation(EventListener.class)).priority())); - } else - // Event listeners are cached and !forceScanning, return cached results - eventListeners = cachedEventListeners.get(event); - - return eventListeners; - } - - /** - * Returns all {@link EventListener}s listening on some event. - * The classpath will be scanned for listeners, unless cached results exist. - * - * @param event event class - * @return list of event listeners - * @since v1-alpha5 - */ - public static @NotNull LinkedList getAnnotatedMethods(@NotNull Class event) { - return getAnnotatedMethods(event, false); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementable/helper/package-info.java b/base/src/main/java/de/staropensource/engine/base/implementable/helper/package-info.java deleted file mode 100644 index ab160bf13..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementable/helper/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Not necessarily interfaces or extendable classes. Rather, they - * support implementing classes by providing useful or complex code. - * - * @since v1-alpha0 - */ -package de.staropensource.engine.base.implementable.helper; diff --git a/base/src/main/java/de/staropensource/engine/base/implementable/package-info.java b/base/src/main/java/de/staropensource/engine/base/implementable/package-info.java deleted file mode 100644 index 5d418a027..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementable/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Interfaces and abstract classes which can be used for implementing classes. - * - * @since v1-alpha0 - */ -package de.staropensource.engine.base.implementable; diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/logging/PlainLoggingAdapter.java b/base/src/main/java/de/staropensource/engine/base/implementation/logging/PlainLoggingAdapter.java deleted file mode 100644 index f16294e63..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementation/logging/PlainLoggingAdapter.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementation.logging; - -import de.staropensource.engine.base.EngineConfiguration; -import de.staropensource.engine.base.implementable.LoggingAdapter; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.logging.LogLevel; -import de.staropensource.engine.base.implementation.shortcode.EmptyShortcodeParser; -import org.jetbrains.annotations.NotNull; - -/** - * Prints log messages to the console, without any fancy colors or formatting. - * - * @see Logger - * @see LoggingAdapter - * @since v1-alpha1 - */ -public class PlainLoggingAdapter implements LoggingAdapter { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha1 - */ - public PlainLoggingAdapter() {} - - /** {@inheritDoc} */ - @Override - public void print(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message, @NotNull String format) { - format = new EmptyShortcodeParser(format, true).getClean(); - if (level == LogLevel.ERROR || level == LogLevel.CRASH) - if (EngineConfiguration.getInstance() != null && EngineConfiguration.getInstance().isLogForceStandardOutput()) - System.out.println(format); - else - System.err.println(format); - else - System.out.println(format); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/logging/QuietLoggingAdapter.java b/base/src/main/java/de/staropensource/engine/base/implementation/logging/QuietLoggingAdapter.java deleted file mode 100644 index fe80cf56f..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementation/logging/QuietLoggingAdapter.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementation.logging; - -import de.staropensource.engine.base.implementable.LoggingAdapter; -import de.staropensource.engine.base.type.logging.LogLevel; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -/** - * An implementation of {@link LoggingAdapter}, which does nothing. - * Useful if you want to silence engine startup messages. - * - * @since v1-alpha4 - */ -public class QuietLoggingAdapter implements LoggingAdapter { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha4 - */ - public QuietLoggingAdapter() {} - - /** {@inheritDoc} */ - @Override - public void print(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message, @NotNull String format) {} -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/logging/RawLoggingAdapter.java b/base/src/main/java/de/staropensource/engine/base/implementation/logging/RawLoggingAdapter.java deleted file mode 100644 index 1dbba9c9f..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementation/logging/RawLoggingAdapter.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementation.logging; - -import de.staropensource.engine.base.EngineConfiguration; -import de.staropensource.engine.base.implementable.LoggingAdapter; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.logging.LogLevel; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -/** - * Prints log messages to the console, without performing any message changes. - * Will reveal shortcodes as they will not be replaced. - * - * @see Logger - * @see LoggingAdapter - * @since v1-alpha1 - */ -public class RawLoggingAdapter implements LoggingAdapter { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha1 - */ - public RawLoggingAdapter() {} - - /** {@inheritDoc} */ - @Override - public void print(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message, @NotNull String format) { - if (level == LogLevel.ERROR || level == LogLevel.CRASH) - if (EngineConfiguration.getInstance().isLogForceStandardOutput()) - System.out.println(format); - else - System.err.println(format); - else - System.out.println(format); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/logging/package-info.java b/base/src/main/java/de/staropensource/engine/base/implementation/logging/package-info.java deleted file mode 100644 index ce4cc75c0..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementation/logging/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * A set of built-in {@link de.staropensource.engine.base.implementable.LoggingAdapter}s. - * - * @since v1-alpha1 - */ -package de.staropensource.engine.base.implementation.logging; diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/shortcode/EmptyShortcodeParser.java b/base/src/main/java/de/staropensource/engine/base/implementation/shortcode/EmptyShortcodeParser.java deleted file mode 100644 index 3161b01d0..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementation/shortcode/EmptyShortcodeParser.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementation.shortcode; - -import de.staropensource.engine.base.implementable.ShortcodeParser; -import de.staropensource.engine.base.exception.ParserException; -import org.jetbrains.annotations.NotNull; - -/** - * Cleans the string of any tags. - * - * @see ShortcodeParser - * @since v1-alpha8 - */ -public final class EmptyShortcodeParser extends ShortcodeParser { - /** - * Creates and initializes an instance of this class. - * - * @param string string to parse - * @param ignoreInvalidEscapes if {@code true}, will ignore and treat invalid escapes as text - * @throws ParserException on error - * @since v1-alpha8 - */ - public EmptyShortcodeParser(@NotNull String string, boolean ignoreInvalidEscapes) throws ParserException { - super(string, ignoreInvalidEscapes); - } - - /** - * Returns the parsed string without any tags. - * - * @return cleaned input string - * @since v1-alpha8 - */ - public @NotNull String getClean() { - StringBuilder output = new StringBuilder(); - - for (String component : components) - if (component.startsWith("TEXT:")) - output.append(component.substring(5)); - - return output.toString(); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/shortcode/package-info.java b/base/src/main/java/de/staropensource/engine/base/implementation/shortcode/package-info.java deleted file mode 100644 index 17b44499e..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementation/shortcode/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Classes which convert data. - * - * @since v1-alpha1 - */ -package de.staropensource.engine.base.implementation.shortcode; diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/FourNumberVersioningSystem.java b/base/src/main/java/de/staropensource/engine/base/implementation/versioning/FourNumberVersioningSystem.java deleted file mode 100644 index 59cb8c8ab..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/FourNumberVersioningSystem.java +++ /dev/null @@ -1,160 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementation.versioning; - -import de.staropensource.engine.base.implementable.VersioningSystem; -import de.staropensource.engine.base.exception.versioning.IncompatibleVersioningSystemException; -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import de.staropensource.engine.base.utility.misc.StringUtil; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Range; - -/** - * Represents a four-numbered versioning system, where an application or work is versioning by four arbitrary numbers. - * - * @since v1-alpha1 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class FourNumberVersioningSystem implements VersioningSystem { - /** - * Contains the first number vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the first number vector. - * - * @return first number vector - * @since v1-alpha1 - */ - private final int number1; - - /** - * Contains the second number vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the second number vector. - * - * @return second number vector - * @since v1-alpha1 - */ - private final int number2; - - /** - * Contains the third number vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the third number vector. - * - * @return third number vector - * @since v1-alpha1 - */ - private final int number3; - - /** - * Contains the fourth number vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the fourth number vector. - * - * @return fourth number vector - * @since v1-alpha1 - */ - private final int number4; - - /** {@inheritDoc} */ - @Override - public @NotNull String getName() { - return "n4"; - } - - /** - * Tries to parse the specified version string - * and if successful, return a new instance. - * - * @param versionString version string to parse - * @throws InvalidVersionStringException if the version string is invalid - */ - public FourNumberVersioningSystem(@NotNull String versionString) throws InvalidVersionStringException { - String[] separatorList = new String[]{ ".", "-" }; - String separator = StringUtil.getSeparatorRequired(versionString, separatorList, 3); - - // Escape separator or throw error if invalid - switch (separator) { - case "." -> separator = "\\."; - case null -> throw new InvalidVersionStringException(this, versionString, "No matching separator could be found. Required are either three dots ('.') or hyphens ('-')"); - default -> {} - } - - // Split the version string at every separator - String[] versionStringSplit = versionString.split(separator); - - // Convert to integers - try { - this.number1 = Integer.parseUnsignedInt(versionStringSplit[0]); - this.number2 = Integer.parseUnsignedInt(versionStringSplit[1]); - this.number3 = Integer.parseUnsignedInt(versionStringSplit[2]); - this.number4 = Integer.parseUnsignedInt(versionStringSplit[3]); - } catch (NumberFormatException exception) { - throw new InvalidVersionStringException(this, versionString, "Failed converting one of the vectors to an integer", exception); - } - } - - /** {@inheritDoc} */ - @Range(from = 0, to = 2) - @Override - public int compare(@NotNull VersioningSystem versionInterface) throws IncompatibleVersioningSystemException { - if (versionInterface instanceof FourNumberVersioningSystem version) { - if (version.getNumber1() < number1) - return 0; - if (version.getNumber1() > number1) - return 2; - - if (version.getNumber2() < number2) - return 0; - if (version.getNumber2() > number2) - return 2; - - if (version.getNumber3() < number3) - return 0; - if (version.getNumber3() > number3) - return 2; - - if (version.getNumber4() < number4) - return 0; - if (version.getNumber4() > number4) - return 2; - - return 1; - - } else - throw new IncompatibleVersioningSystemException(this, versionInterface); - } - - /** {@inheritDoc} */ - @Override - public @NotNull String toString() { - return number1 + "." + number2 + "." + number3 + "." + number4; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/OneNumberVersioningSystem.java b/base/src/main/java/de/staropensource/engine/base/implementation/versioning/OneNumberVersioningSystem.java deleted file mode 100644 index 5972c9b8c..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/OneNumberVersioningSystem.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementation.versioning; - -import de.staropensource.engine.base.implementable.VersioningSystem; -import de.staropensource.engine.base.exception.versioning.IncompatibleVersioningSystemException; -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Range; - -/** - * Represents a one-numbered versioning system, where an application or work is versioned by one arbitrary number. - * - * @since v1-alpha1 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class OneNumberVersioningSystem implements VersioningSystem { - /** - * Contains the number vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the number vector. - * - * @return number vector - * @since v1-alpha1 - */ - private final int number; - - /** {@inheritDoc} */ - @Override - public @NotNull String getName() { - return "n1"; - } - - /** - * Tries to parse the specified version string - * and if successful, return a new instance. - * - * @param versionString version string to parse - * @throws InvalidVersionStringException if the version string is invalid - */ - public OneNumberVersioningSystem(@NotNull String versionString) throws InvalidVersionStringException { - // Convert to integers - try { - this.number = Integer.parseUnsignedInt(versionString); - } catch (NumberFormatException exception) { - throw new InvalidVersionStringException(this, versionString, "Failed converting the version string into an integer", exception); - } - } - - /** {@inheritDoc} */ - @Range(from = 0, to = 2) - @Override - public int compare(@NotNull VersioningSystem versionInterface) throws IncompatibleVersioningSystemException { - if (versionInterface instanceof OneNumberVersioningSystem version) { - if (version.getNumber() < number) - return 0; - if (version.getNumber() > number) - return 2; - - return 1; - } else - throw new IncompatibleVersioningSystemException(this, versionInterface); - } - - /** {@inheritDoc} */ - @Override - public @NotNull String toString() { - return String.valueOf(number); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/SemanticVersioningSystem.java b/base/src/main/java/de/staropensource/engine/base/implementation/versioning/SemanticVersioningSystem.java deleted file mode 100644 index 30d56eef9..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/SemanticVersioningSystem.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementation.versioning; - -import de.staropensource.engine.base.implementable.VersioningSystem; -import de.staropensource.engine.base.exception.versioning.IncompatibleVersioningSystemException; -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import de.staropensource.engine.base.utility.misc.StringUtil; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; -import org.jetbrains.annotations.Range; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -/** - * Represents the semantic versioning system (version 2.0.0), where an application - * or work is versioning by a {@code MAJOR} version, {@code MINOR} version, - * {@code PATCH} version and optionally, a pre-release vector and a build number. - * - * @since v1-alpha1 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class SemanticVersioningSystem implements VersioningSystem { - /** - * Contains the {@code MAJOR} vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the {@code MAJOR} vector. - * - * @return {@code MAJOR} vector - * @since v1-alpha1 - */ - private final int major; - - /** - * Contains the {@code MINOR} vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the {@code MINOR} vector. - * - * @return {@code MINOR} vector - * @since v1-alpha1 - */ - private final int minor; - - /** - * Contains the {@code PATCH} vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the {@code PATCH} vector. - * - * @return {@code PATCH} vector - * @since v1-alpha1 - */ - private final int patch; - - /** - * Contains the {@code PRERELEASE} vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the {@code PRERELEASE} vector. - * - * @return {@code PRERELEASE} vector - * @since v1-alpha1 - */ - private final @Nullable String prerelease; - - /** - * Contains the {@code BUILD} vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the {@code BUILD} vector. - * - * @return {@code BUILD} vector - * @since v1-alpha1 - */ - private final int build; - - /** {@inheritDoc} */ - @Override - public @NotNull String getName() { - return "Semantic"; - } - - /** - * Tries to parse the specified version string - * and if successful, return a new instance. - * - * @param versionString version string to parse - * @throws InvalidVersionStringException if the version string is invalid - */ - public SemanticVersioningSystem(@NotNull String versionString) throws InvalidVersionStringException { - String[] separatorList = new String[]{ "." }; - String separator = StringUtil.getSeparatorRequired(versionString, separatorList, 2); - - // Escape separator or throw error if invalid - switch (separator) { - case "." -> separator = "\\."; - case null -> throw new InvalidVersionStringException(this, versionString, "No matching separator could be found. Required are two dots ('.')"); - default -> {} - } - - // Split the version string at every separator - List versionStringSplit = new ArrayList<>(Arrays.stream(versionString.split(separator)).toList()); - - // Get pre-release and build vectors - String build = null; - String prerelease = null; - if (versionStringSplit.get(2).contains("+")) { // Build vector - int position = versionStringSplit.get(2).indexOf("+"); - build = versionStringSplit.get(2).substring(position + 1); - versionStringSplit.set(2, versionStringSplit.get(2).substring(0, position)); - } - if (versionStringSplit.get(2).contains("-")) { - int position = versionStringSplit.get(2).indexOf("-"); - prerelease = versionStringSplit.get(2).substring(position + 1); - versionStringSplit.set(2, versionStringSplit.get(2).substring(0, position)); - } - - // Convert to integers - try { - this.major = Integer.parseUnsignedInt(versionStringSplit.get(0)); - this.minor = Integer.parseUnsignedInt(versionStringSplit.get(1)); - this.patch = Integer.parseUnsignedInt(versionStringSplit.get(2)); - this.prerelease = prerelease; - if (build == null) - this.build = 0; - else - this.build = Integer.parseUnsignedInt(build); - } catch (NumberFormatException exception) { - throw new InvalidVersionStringException(this, versionString, "Failed converting one of the vectors to an integer", exception); - } - } - - /** {@inheritDoc} */ - @Range(from = 0, to = 2) - @Override - public int compare(@NotNull VersioningSystem versionInterface) throws IncompatibleVersioningSystemException { - if (versionInterface instanceof SemanticVersioningSystem version) { - if (version.getMajor() < major) - return 0; - if (version.getMajor() > major) - return 2; - - if (version.getMinor() < minor) - return 0; - if (version.getMinor() > minor) - return 2; - - if (version.getPatch() < patch) - return 0; - if (version.getPatch() > patch) - return 2; - - if (version.getPrerelease() == null && prerelease != null) - return 2; - else if (version.getPrerelease() != null && prerelease == null) - return 0; - else if (version.getPrerelease() != null) - switch (prerelease) { - case "alpha" -> { - switch (version.getPrerelease()) { - case "beta", "releasecandidate", "release-candidate", "rc" -> { - return 2; - } - } - } - case "beta" -> { - switch (version.getPrerelease()) { - case "alpha" -> { - return 0; - } - case "releasecandidate", "release-candidate", "rc" -> { - return 2; - } - } - } - case "releasecandidate", "release-candidate", "rc" -> { - switch (version.getPrerelease()) { - case "alpha", "beta" -> { - return 0; - } - } - } - } - - if (version.getBuild() < build) - return 0; - if (version.getBuild() > build) - return 2; - - return 1; - - } else - throw new IncompatibleVersioningSystemException(this, versionInterface); - } - - /** {@inheritDoc} */ - @Override - public @NotNull String toString() { - return major + "." + minor + "." + patch + (prerelease == null ? "" : "-" + prerelease) + (build == 0 ? "" : "+" + build); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/StarOpenSourceVersioningSystem.java b/base/src/main/java/de/staropensource/engine/base/implementation/versioning/StarOpenSourceVersioningSystem.java deleted file mode 100644 index eeb17b156..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/StarOpenSourceVersioningSystem.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementation.versioning; - -import de.staropensource.engine.base.implementable.VersioningSystem; -import de.staropensource.engine.base.exception.versioning.IncompatibleVersioningSystemException; -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import de.staropensource.engine.base.type.VersionType; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; -import org.jetbrains.annotations.Range; - -import java.util.ArrayList; -import java.util.List; -import java.util.Locale; - -/** - * Represents the StarOpenSource versioning - * system version two, where an application - * or work is versioning by the {@code RELEASE}, - * {@code TYPE}, {@code TYPERELEASE} and - * optionally, the {@code FORK} and - * {@code COMPANION} vectors. - * - * @since v1-alpha1 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class StarOpenSourceVersioningSystem implements VersioningSystem { - /** - * Contains the {@code RELEASE} vector. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the {@code RELEASE} vector. - * - * @return {@code RELEASE} vector - * @since v1-alpha9 - */ - private final int release; - - /** - * Contains the {@code TYPE} vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the {@code TYPE} vector. - * - * @return {@code TYPE} vector - * @since v1-alpha1 - */ - private final VersionType type; - - /** - * Contains the {@code TYPERELEASE} vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the {@code TYPERELEASE}- vector. - * - * @return {@code TYPERELEASE} vector - * @since v1-alpha1 - */ - private final int typerelease; - - /** - * Contains the {@code COMPANION} vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the {@code COMPANION} vector. - * - * @return {@code COMPANION} vector - * @since v1-alpha1 - */ - private final @Nullable String companion; - - /** - * Contains the FORK vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the FORK vector. - * - * @return FORK vector - * @since v1-alpha1 - */ - private final String fork; - - /** {@inheritDoc} */ - @Override - public @NotNull String getName() { - return "StarOpenSource"; - } - - /** - * Tries to parse the specified version string - * and if successful, return a new instance. - * - * @param versionString version string to parse - * @throws InvalidVersionStringException if the version string is invalid - */ - public StarOpenSourceVersioningSystem(@NotNull String versionString) throws InvalidVersionStringException { - // Split the version string at every separator - StringBuilder charSequence = new StringBuilder(); - /* - * 0 = 'v' - * 1 = release vector - * 3 = type vector - * 4 = typerelease vector - * 5 = companion vector - * 6 = fork vector - */ - int parsingId = 0; - List versionStringSplit = new ArrayList<>(); - String companion = null; - String fork = null; - - // Iterate through all characters - for (Character character : versionString.toCharArray()) { - switch (parsingId) { - case 0 -> { // 'v' character - if (character != 'v') - throw new InvalidVersionStringException(this, versionString, "Does not start with the character 'v'"); - parsingId++; - } - case 1 -> { // Version vector - if (character == '-') { - versionStringSplit.add(charSequence.toString()); - charSequence = new StringBuilder(); - parsingId++; - } else - charSequence.append(character); - } - case 2 -> { // Type vector - charSequence.append(character); - - if (charSequence.toString().equals("alpha") || charSequence.toString().equals("beta") || charSequence.toString().equals("release")) { - versionStringSplit.add(charSequence.toString()); - charSequence = new StringBuilder(); - parsingId++; - } else if (versionStringSplit.size() == 2 && versionStringSplit.get(1).contains("releasec") && charSequence.toString().equals("andidate")) { - versionStringSplit.set(1, versionStringSplit.get(1) + charSequence); - charSequence = new StringBuilder(); - parsingId++; - } - } - case 3 -> { // Typerelease vector - if (character == '-' || character == '+') { - versionStringSplit.add(charSequence.toString()); - charSequence = new StringBuilder(); - parsingId++; - if (character == '+') - parsingId++; - } else - if (character == 'c' && versionStringSplit.get(1).equals("release")) { - versionStringSplit.set(1, versionStringSplit.get(1) + character); - parsingId--; - } else - charSequence.append(character); - } - case 4 -> { // Fork vector - if (character == '+') { - fork = charSequence.toString(); - charSequence = new StringBuilder(); - parsingId++; - } else - charSequence.append(character); - } - case 5 -> // Companion vector - charSequence.append(character); - } - } - - switch (parsingId) { - case 0, 1, 2 -> throw new InvalidVersionStringException(this, versionString, "Required vectors not found"); - case 3 -> { - if (charSequence.isEmpty()) - throw new InvalidVersionStringException(this, versionString, "Required vectors not found"); - else { - if (versionStringSplit.size() == 2 && versionStringSplit.get(1).contains("releasec") && charSequence.toString().equals("andidate")) { - versionStringSplit.set(1, versionStringSplit.get(1) + charSequence); - } else - versionStringSplit.add(charSequence.toString()); - } - } - case 5 -> { - if (charSequence.isEmpty()) - throw new InvalidVersionStringException(this, versionString, "Fork vector not found"); - else - fork = charSequence.toString(); - } - case 6 -> { - if (charSequence.isEmpty()) - throw new InvalidVersionStringException(this, versionString, "Companion vector not found"); - else - companion = charSequence.toString(); - } - } - - // Rewrite type - if (versionStringSplit.get(1).equals("releasecandidate")) - versionStringSplit.set(1, "RELEASE_CANDIDATE"); - else - versionStringSplit.set(1, versionStringSplit.get(1).toUpperCase(Locale.ROOT)); - - - // Update variables - try { - this.release = Integer.parseUnsignedInt(versionStringSplit.get(0)); - this.type = VersionType.valueOf(versionStringSplit.get(1)); - this.typerelease = Integer.parseUnsignedInt(versionStringSplit.get(2)); - this.companion = companion; - this.fork = fork; - } catch (NumberFormatException exception) { - throw new InvalidVersionStringException(this, versionString, "Failed converting one of the vectors to an integer", exception); - } - - if (this.release == 0) - throw new InvalidVersionStringException(this, versionString, "The version vector must start at 1"); - } - - /** {@inheritDoc} */ - @Range(from = 0, to = 2) - @Override - public int compare(@NotNull VersioningSystem versionInterface) throws IncompatibleVersioningSystemException { - if (versionInterface instanceof StarOpenSourceVersioningSystem versionCompare) { - if (versionCompare.getRelease() < this.release) - return 0; - if (versionCompare.getRelease() > this.release) - return 2; - - if (type.compareTo(versionCompare.getType()) > 0) - return 0; - if (type.compareTo(versionCompare.getType()) < 0) - return 2; - - if (versionCompare.getTyperelease() < typerelease) - return 0; - if (versionCompare.getTyperelease() > typerelease) - return 2; - - return 1; - - } else - throw new IncompatibleVersioningSystemException(this, versionInterface); - } - - /** {@inheritDoc} */ - @Override - public @NotNull String toString() { - return "v" + release + "-" + type.name().toLowerCase(Locale.ROOT) + typerelease + (fork == null ? "" : "-" + fork) + (companion == null ? "" : "+" + companion); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/ThreeNumberVersioningSystem.java b/base/src/main/java/de/staropensource/engine/base/implementation/versioning/ThreeNumberVersioningSystem.java deleted file mode 100644 index e92c4c654..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/ThreeNumberVersioningSystem.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementation.versioning; - -import de.staropensource.engine.base.implementable.VersioningSystem; -import de.staropensource.engine.base.exception.versioning.IncompatibleVersioningSystemException; -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import de.staropensource.engine.base.utility.misc.StringUtil; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Range; - -/** - * Represents a three-numbered versioning system, where an application or work is versioning by three arbitrary numbers. - * - * @since v1-alpha1 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class ThreeNumberVersioningSystem implements VersioningSystem { - /** - * Contains the first number vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the first number vector. - * - * @return first number vector - * @since v1-alpha1 - */ - private final int number1; - - /** - * Contains the second number vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the second number vector. - * - * @return second number vector - * @since v1-alpha1 - */ - private final int number2; - - /** - * Contains the third number vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the third number vector. - * - * @return third number vector - * @since v1-alpha1 - */ - private final int number3; - - /** {@inheritDoc} */ - @Override - public @NotNull String getName() { - return "n3"; - } - - /** - * Tries to parse the specified version string - * and if successful, return a new instance. - * - * @param versionString version string to parse - * @throws InvalidVersionStringException if the version string is invalid - */ - public ThreeNumberVersioningSystem(@NotNull String versionString) throws InvalidVersionStringException { - String[] separatorList = new String[]{ ".", "-" }; - String separator = StringUtil.getSeparatorRequired(versionString, separatorList, 2); - - // Escape separator or throw error if invalid - switch (separator) { - case "." -> separator = "\\."; - case null -> throw new InvalidVersionStringException(this, versionString, "No matching separator could be found. Required are either two dots ('.') or hyphens ('-')"); - default -> {} - } - - // Split the version string at every separator - String[] versionStringSplit = versionString.split(separator); - - // Convert to integers - try { - this.number1 = Integer.parseUnsignedInt(versionStringSplit[0]); - this.number2 = Integer.parseUnsignedInt(versionStringSplit[1]); - this.number3 = Integer.parseUnsignedInt(versionStringSplit[2]); - } catch (NumberFormatException exception) { - throw new InvalidVersionStringException(this, versionString, "Failed converting one of the vectors to an integer", exception); - } - } - - /** {@inheritDoc} */ - @Range(from = 0, to = 2) - @Override - public int compare(@NotNull VersioningSystem versionInterface) throws IncompatibleVersioningSystemException { - if (versionInterface instanceof ThreeNumberVersioningSystem version) { - if (version.getNumber1() < number1) - return 0; - if (version.getNumber1() > number1) - return 2; - - if (version.getNumber2() < number2) - return 0; - if (version.getNumber2() > number2) - return 2; - - if (version.getNumber3() < number3) - return 0; - if (version.getNumber3() > number3) - return 2; - - return 1; - - } else - throw new IncompatibleVersioningSystemException(this, versionInterface); - } - - /** {@inheritDoc} */ - @Override - public @NotNull String toString() { - return number1 + "." + number2 + "." + number3; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/TwoNumberVersioningSystem.java b/base/src/main/java/de/staropensource/engine/base/implementation/versioning/TwoNumberVersioningSystem.java deleted file mode 100644 index 1ab750279..000000000 --- a/base/src/main/java/de/staropensource/engine/base/implementation/versioning/TwoNumberVersioningSystem.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.implementation.versioning; - -import de.staropensource.engine.base.implementable.VersioningSystem; -import de.staropensource.engine.base.exception.versioning.IncompatibleVersioningSystemException; -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import de.staropensource.engine.base.utility.misc.StringUtil; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Range; - -/** - * Represents a two-numbered versioning system, where an application or work is versioning by two arbitrary numbers. - * - * @since v1-alpha1 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class TwoNumberVersioningSystem implements VersioningSystem { - /** - * Contains the first number vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the first number vector. - * - * @return first number vector - * @since v1-alpha1 - */ - private final int number1; - - /** - * Contains the second number vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the second number vector. - * - * @return second number vector - * @since v1-alpha1 - */ - private final int number2; - - /** {@inheritDoc} */ - @Override - public @NotNull String getName() { - return "n2"; - } - - /** - * Tries to parse the specified version string - * and if successful, return a new instance. - * - * @param versionString version string to parse - * @throws InvalidVersionStringException if the version string is invalid - */ - public TwoNumberVersioningSystem(@NotNull String versionString) throws InvalidVersionStringException { - String[] separatorList = new String[]{ ".", "-" }; - String separator = StringUtil.getSeparatorRequired(versionString, separatorList, 1); - - // Escape separator or throw error if invalid - switch (separator) { - case "." -> separator = "\\."; - case null -> throw new InvalidVersionStringException(this, versionString, "No matching separator could be found. Required are either one dot ('.') or hyphen ('-')"); - default -> {} - } - - // Split the version string at every separator - String[] versionStringSplit = versionString.split(separator); - - // Convert to integers - try { - this.number1 = Integer.parseUnsignedInt(versionStringSplit[0]); - this.number2 = Integer.parseUnsignedInt(versionStringSplit[1]); - } catch (NumberFormatException exception) { - throw new InvalidVersionStringException(this, versionString, "Failed converting one of the vectors to an integer", exception); - } - } - - /** {@inheritDoc} */ - @Range(from = 0, to = 2) - @Override - public int compare(@NotNull VersioningSystem versionInterface) throws IncompatibleVersioningSystemException { - if (versionInterface instanceof TwoNumberVersioningSystem version) { - if (version.getNumber1() < number1) - return 0; - if (version.getNumber1() > number1) - return 2; - - if (version.getNumber2() < number2) - return 0; - if (version.getNumber2() > number2) - return 2; - - return 1; - - } else - throw new IncompatibleVersioningSystemException(this, versionInterface); - } - - /** {@inheritDoc} */ - @Override - public @NotNull String toString() { - return number1 + "." + number2; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/EventListenerMethod.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/EventListenerMethod.java deleted file mode 100644 index 0ae711b29..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/EventListenerMethod.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation; - -import de.staropensource.engine.base.implementable.EventListenerCode; -import de.staropensource.engine.base.reflection.Reflect; -import de.staropensource.engine.base.reflection.ReflectionMethod; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.lang.annotation.Annotation; -import java.lang.reflect.Method; - -/** - * Interface specifically for executing event listener methods. - * - * @since v1-alpha5 - */ -public final class EventListenerMethod extends EventListenerCode { - /** - * Contains the method to call and get. - * - * @since v1-alpha5 - */ - private final @NotNull ReflectionMethod method; - - /** - * Creates and initializes an instance of this class. - * - * @param method method to execute - * @since v1-alpha5 - */ - public EventListenerMethod(@NotNull Method method) { - this.method = Reflect.reflectOn(method); - } - - /** {@inheritDoc} */ - @Override - public void run(@Nullable Object @NotNull [] arguments) throws Exception { - method.invoke(arguments); - } - - /** - * Forwards {@link ReflectionMethod#getAnnotation(Class)} - * to the internal {@link ReflectionMethod} instance. - * - * @param annotation - * @param annotation annotation to get - * @return annotation or {@code null} on error - * @see ReflectionMethod#getAnnotation(Class) - * @since v1-alpha5 - */ - public @Nullable T getAnnotation(@NotNull Class annotation) { - try { - return method.getAnnotation(annotation); - } catch (NullPointerException exception) { - return null; - } - } - - /** {@inheritDoc} */ - @Override - public String toString() { - return "method " + method.getMethod().getDeclaringClass().getName() + "#" + method.getName(); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/package-info.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/package-info.java deleted file mode 100644 index 661eef789..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Interfaces and abstract classes which can be used for implementing classes. - * - * @since v1-alpha5 - */ -package de.staropensource.engine.base.internal.implementation; diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/DateDay.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/DateDay.java deleted file mode 100644 index f6bc34215..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/DateDay.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import org.jetbrains.annotations.NotNull; - -import java.util.Calendar; - -/** - * Implements the {@code date_day} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class DateDay implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public DateDay() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%date_day%", NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.DAY_OF_MONTH), 2)); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/DateMonth.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/DateMonth.java deleted file mode 100644 index 7c1049b5d..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/DateMonth.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import org.jetbrains.annotations.NotNull; - -import java.util.Calendar; - -/** - * Implements the {@code date_month} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class DateMonth implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public DateMonth() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%date_month%", NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.MONTH), 2)); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/DateYear.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/DateYear.java deleted file mode 100644 index 290f18fa8..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/DateYear.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import org.jetbrains.annotations.NotNull; - -import java.util.Calendar; - -/** - * Implements the {@code date_year} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class DateYear implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public DateYear() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%date_year%", NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.YEAR), 4)); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineDependencyJansi.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineDependencyJansi.java deleted file mode 100644 index 5d2d3ec98..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineDependencyJansi.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_dependency_jansi} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineDependencyJansi implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineDependencyJansi() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_dependency_jansi%", EngineInformation.getDependencyJansi()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineDependencyLwjgl.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineDependencyLwjgl.java deleted file mode 100644 index fce4cfbcd..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineDependencyLwjgl.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_dependency_lwjgl} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineDependencyLwjgl implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineDependencyLwjgl() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_dependency_lwjgl%", EngineInformation.getDependencyLwjgl()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineDependencyReflections.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineDependencyReflections.java deleted file mode 100644 index 5ad768be9..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineDependencyReflections.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_dependency_reflections} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineDependencyReflections implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineDependencyReflections() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_dependency_reflections%", EngineInformation.getDependencyReflections()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineDependencySlf4j.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineDependencySlf4j.java deleted file mode 100644 index 76b94c768..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineDependencySlf4j.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_dependency_slf4j} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineDependencySlf4j implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineDependencySlf4j() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_dependency_slf4j%", EngineInformation.getDependencySlf4j()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitBranch.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitBranch.java deleted file mode 100644 index 30333dc31..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitBranch.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_branch} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitBranch implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitBranch() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_branch%", EngineInformation.getGitBranch()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitHeader.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitHeader.java deleted file mode 100644 index d7ab4e084..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitHeader.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_commit_header} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitCommitHeader implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitCommitHeader() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_commit_header%", EngineInformation.getGitCommitHeader()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitIdLong.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitIdLong.java deleted file mode 100644 index 84e378b62..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitIdLong.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_commit_id_long} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitCommitIdLong implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitCommitIdLong() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_commit_id_long%", EngineInformation.getGitCommitIdentifierLong()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitIdShort.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitIdShort.java deleted file mode 100644 index b7afd8303..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitIdShort.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_commit_id_short} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitCommitIdShort implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitCommitIdShort() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_commit_id_short%", EngineInformation.getGitCommitIdentifierShort()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeDay.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeDay.java deleted file mode 100644 index 084311fbb..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeDay.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_commit_time_day} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitCommitTimeDay implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitCommitTimeDay() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_commit_time_day%", String.valueOf(EngineInformation.getGitCommitTime().getDayOfMonth())); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeHour.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeHour.java deleted file mode 100644 index 75e19af9a..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeHour.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_commit_time_hour} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitCommitTimeHour implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitCommitTimeHour() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_commit_time_hour%", String.valueOf(EngineInformation.getGitCommitTime().getHour())); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeMinute.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeMinute.java deleted file mode 100644 index f0ec3149c..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeMinute.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_commit_time_minute} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitCommitTimeMinute implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitCommitTimeMinute() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_commit_time_minute%", String.valueOf(EngineInformation.getGitCommitTime().getMinute())); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeMonth.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeMonth.java deleted file mode 100644 index 8cb1ad4d6..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeMonth.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_commit_time_month} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitCommitTimeMonth implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitCommitTimeMonth() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_commit_time_month%", String.valueOf(EngineInformation.getGitCommitTime().getMonth())); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeSecond.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeSecond.java deleted file mode 100644 index 6c39f0d96..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeSecond.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_commit_time_second} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitCommitTimeSecond implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitCommitTimeSecond() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_commit_time_second%", String.valueOf(EngineInformation.getGitCommitTime().getSecond())); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeYear.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeYear.java deleted file mode 100644 index 1ababba40..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitTimeYear.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_commit_time_year} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitCommitTimeYear implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitCommitTimeYear() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_commit_time_year%", String.valueOf(EngineInformation.getGitCommitTime().getYear())); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommits.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommits.java deleted file mode 100644 index 2ae07cd24..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommits.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_commits} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitCommits implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitCommits() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_commits%", String.valueOf(EngineInformation.getGitCommitCount())); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitterEmail.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitterEmail.java deleted file mode 100644 index 3ccc28044..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitterEmail.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_committer_email} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitCommitterEmail implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitCommitterEmail() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_committer_email%", EngineInformation.getGitCommitterEmail()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitterName.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitterName.java deleted file mode 100644 index ffa57c3cc..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitCommitterName.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_committer_name} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitCommitterName implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitCommitterName() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_committer_name%", EngineInformation.getGitCommitterName()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitDirty.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitDirty.java deleted file mode 100644 index 664fd9512..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineGitDirty.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_git_dirty} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineGitDirty implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineGitDirty() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_git_dirty%", String.valueOf(EngineInformation.isGitDirty())); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersion.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersion.java deleted file mode 100644 index 9caf29e8a..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersion.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_version} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineVersion implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineVersion() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_version%", "v%engine_version_version%-%engine_version_type%%engine_version_typerelease%%engine_version_fork%"); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionCodename.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionCodename.java deleted file mode 100644 index 933fb435c..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionCodename.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_version_codename} placeholder. - * - * @see Placeholder - * @since v1-alpha8 - */ -@SuppressWarnings({ "unused" }) -public final class EngineVersionCodename implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha8 - */ - public EngineVersionCodename() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_version_codename%", EngineInformation.getVersioningCodename()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionType.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionType.java deleted file mode 100644 index ae61aa345..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionType.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_version_type} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineVersionType implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineVersionType() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_version_type%", EngineInformation.getVersioningType().name().toLowerCase()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionTyperelease.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionTyperelease.java deleted file mode 100644 index 98e355553..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionTyperelease.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_version_typerelease} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineVersionTyperelease implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineVersionTyperelease() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_version_typerelease%", String.valueOf(EngineInformation.getVersioningTyperelease())); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionVersion.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionVersion.java deleted file mode 100644 index 5b7f91dc5..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionVersion.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_version_version} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EngineVersionVersion implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public EngineVersionVersion() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_version_version%", String.valueOf(EngineInformation.getVersioningVersion())); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmArguments.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmArguments.java deleted file mode 100644 index 57bc57be1..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmArguments.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.JvmInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code jvm_arguments} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class JvmArguments implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public JvmArguments() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - StringBuilder arguments = new StringBuilder(); - - for (String argument : JvmInformation.getArguments()) { - if (!arguments.isEmpty()) - arguments.append(" "); - - arguments - .append("\"") - .append( - argument - .replace("\\", "\\\\") - .replace("\n", "\\n") - .replace("\"", "\\\"") - ) - .append("\""); - } - - return text.replace("%jvm_arguments%", arguments.toString()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmImplementationName.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmImplementationName.java deleted file mode 100644 index 1cbf832ea..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmImplementationName.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.JvmInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code jvm_implementation_name} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class JvmImplementationName implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public JvmImplementationName() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%jvm_implementation_name%", JvmInformation.getImplementationName()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmImplementationVendor.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmImplementationVendor.java deleted file mode 100644 index 9f9c25316..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmImplementationVendor.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.JvmInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code jvm_implementation_vendor} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class JvmImplementationVendor implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public JvmImplementationVendor() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%jvm_implementation_vendor%", JvmInformation.getImplementationVendor()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmImplementationVersion.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmImplementationVersion.java deleted file mode 100644 index 64efe6a2b..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmImplementationVersion.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.JvmInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code jvm_implementation_version} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class JvmImplementationVersion implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public JvmImplementationVersion() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%jvm_implementation_version%", JvmInformation.getImplementationVersion()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmUptime.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmUptime.java deleted file mode 100644 index f9b0d3fb0..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmUptime.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.JvmInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code jvm_uptime} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class JvmUptime implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public JvmUptime() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%jvm_uptime%", String.valueOf(JvmInformation.getUptime())); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeEpoch.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeEpoch.java deleted file mode 100644 index 4ea10bbb2..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeEpoch.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code time_epoch} placeholder. - * - * @see Placeholder - * - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class TimeEpoch implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public TimeEpoch() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%time_epoch%", NumberUtil.padNumbers(System.currentTimeMillis(), String.valueOf(Long.MAX_VALUE).length())); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeHour.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeHour.java deleted file mode 100644 index e03927482..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeHour.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import org.jetbrains.annotations.NotNull; - -import java.util.Calendar; - -/** - * Implements the {@code time_hour} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class TimeHour implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public TimeHour() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%time_hour%", NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.HOUR_OF_DAY), 2)); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeMinute.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeMinute.java deleted file mode 100644 index 859fb0ec3..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeMinute.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import org.jetbrains.annotations.NotNull; - -import java.util.Calendar; - -/** - * Implements the {@code time_minute} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class TimeMinute implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public TimeMinute() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%time_minute%", NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.MINUTE), 2)); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeSecond.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeSecond.java deleted file mode 100644 index d1729d152..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeSecond.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import org.jetbrains.annotations.NotNull; - -import java.util.Calendar; - -/** - * Implements the {@code time_second} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class TimeSecond implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public TimeSecond() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%time_second%", NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.SECOND), 2)); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeZone.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeZone.java deleted file mode 100644 index 5a7a3d446..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/TimeZone.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import org.jetbrains.annotations.NotNull; - -import java.util.Locale; - -/** - * Implements the {@code time_zone} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class TimeZone implements Placeholder { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha0 - */ - public TimeZone() {} - - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%time_zone%", java.util.TimeZone.getDefault().getDisplayName(false, java.util.TimeZone.SHORT, Locale.US)); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/package-info.java b/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/package-info.java deleted file mode 100644 index b69a0a227..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/package-info.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Built-in placeholders for various things. - *

- * Placeholder classes in subpackages may only be targeted for - * specific use cases. - * - * @see de.staropensource.engine.base.utility.PlaceholderEngine - * @see de.staropensource.engine.base.implementable.Placeholder - * @since v1-alpha0 - */ -package de.staropensource.engine.base.internal.implementation.placeholder; diff --git a/base/src/main/java/de/staropensource/engine/base/internal/package-info.java b/base/src/main/java/de/staropensource/engine/base/internal/package-info.java deleted file mode 100644 index ca4569f13..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Engine-internal stuff, not part of the API. - * - * @since v1-alpha1 - */ -package de.staropensource.engine.base.internal; diff --git a/base/src/main/java/de/staropensource/engine/base/internal/reflection/ReflectionAccessWidener.java b/base/src/main/java/de/staropensource/engine/base/internal/reflection/ReflectionAccessWidener.java deleted file mode 100644 index a5fcab473..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/reflection/ReflectionAccessWidener.java +++ /dev/null @@ -1,205 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.reflection; - -import de.staropensource.engine.base.exception.reflection.NoAccessException; -import de.staropensource.engine.base.reflection.ReflectionField; -import de.staropensource.engine.base.reflection.ReflectionMethod; - -import java.lang.reflect.*; - -/** - * Utility class for widening access permissions on reflection objects. - * - * @since v1-alpha2 - */ -public final class ReflectionAccessWidener { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha2 - */ - private ReflectionAccessWidener() {} - - /** - * Allows access to an {@link AccessibleObject}. - *

- * Stolen from the jOOR library. - * All credits to them. - * - * @param extender of {@link AccessibleObject} - * @param accessible object to allow access to - */ - public static void allowAccess(T accessible) { - if (accessible == null) - return; - - if (accessible instanceof Member member) - if (Modifier.isPublic(member.getModifiers()) && Modifier.isPublic(member.getDeclaringClass().getModifiers())) - return; - - //noinspection deprecation // no, it's what we want - if (!accessible.isAccessible()) - accessible.setAccessible(true); - } - - /** - * Unlocks modifications to some field. - * - * @param reflectionField {@link ReflectionField} to unlock - * @return updated modifiers. pass those to {@link #lockModifications(ReflectionField, int)} to lock the field again - * @throws NoSuchFieldException if the {@code modifiers} field is missing - * @throws NoAccessException if access to the field has been denied - * @see #lockModifications(ReflectionField, int) - * @since v1-alpha2 - */ - public static int unlockModifications(ReflectionField reflectionField) throws NoSuchFieldException, NoAccessException { - int updatedModifiers = 0; - Field field = reflectionField.getField(); - - Field modifiersField; - try { - modifiersField = field.getClass().getDeclaredField("modifiers"); - } catch (NoSuchFieldException exception) { - throw new NoSuchFieldException("Field \"modifiers\" not present inside field " + field.getName()); - } - - modifiersField.setAccessible(true); - - if ((field.getModifiers() & Modifier.FINAL) == Modifier.FINAL) - updatedModifiers = ~Modifier.FINAL; - if ((field.getModifiers() & Modifier.STATIC) == Modifier.STATIC) - updatedModifiers = updatedModifiers & ~Modifier.STATIC; - - try { - modifiersField.setInt(field, field.getModifiers() & ~updatedModifiers); - } catch (IllegalAccessException exception) { - throw new NoAccessException("field", field.getName()); - } - - return updatedModifiers; - } - - /** - * Unlocks modifications to some method. - * - * @param reflectionMethod {@link ReflectionMethod} to unlock - * @return updated modifiers. pass those to {@link #lockModifications(ReflectionMethod, int)} to lock the method again - * @throws NoSuchFieldException if the {@code modifiers} field is missing - * @throws NoAccessException if access to the method has been denied - * @see #lockModifications(ReflectionMethod, int) - * @since v1-alpha2 - */ - public static int unlockModifications(ReflectionMethod reflectionMethod) throws NoSuchFieldException, NoAccessException { - Method method = reflectionMethod.getMethod(); - int updatedModifiers = method.getModifiers(); - - Field modifiersField; - try { - modifiersField = method.getClass().getDeclaredField("modifiers"); - } catch (NoSuchFieldException exception) { - throw new NoSuchFieldException("Field \"modifiers\" not present inside method " + method.getName()); - } - - modifiersField.setAccessible(true); - - if (Modifier.isFinal(method.getModifiers())) - updatedModifiers = ~Modifier.FINAL; - if (Modifier.isStatic(method.getModifiers())) - updatedModifiers = updatedModifiers & ~Modifier.STATIC; - if (!Modifier.isPublic(method.getModifiers())) { - if (Modifier.isProtected(method.getModifiers())) - updatedModifiers = updatedModifiers & ~Modifier.PROTECTED; - if (Modifier.isPrivate(method.getModifiers())) - updatedModifiers = updatedModifiers & ~Modifier.PRIVATE; - - updatedModifiers = updatedModifiers & ~Modifier.PUBLIC; - } - try { - modifiersField.setInt(method, method.getModifiers() & ~updatedModifiers); - } catch (IllegalAccessException exception) { - throw new NoAccessException("method", method.getName()); - } - - return updatedModifiers; - } - - /** - * Locks modifications to some field. - * - * @param reflectionField {@link ReflectionField} to lock - * @param updatedModifiers original modifiers - * @throws NoSuchFieldException if the {@code modifiers} field is missing - * @throws NoAccessException if access to the field has been denied - * @see #unlockModifications(ReflectionField) - * @since v1-alpha2 - */ - public static void lockModifications(ReflectionField reflectionField, int updatedModifiers) throws NoSuchFieldException, NoAccessException { - Field field = reflectionField.getField(); - - Field modifiersField; - try { - modifiersField = field.getClass().getDeclaredField("modifiers"); - } catch (NoSuchFieldException exception) { - throw new NoSuchFieldException("Field \"modifiers\" not present inside field " + field.getName()); - } - - modifiersField.setAccessible(true); - - try { - modifiersField.setInt(field, field.getModifiers() & ~updatedModifiers); - } catch (IllegalAccessException exception) { - throw new NoAccessException("field", field.getName()); - } - - modifiersField.setAccessible(false); - } - - /** - * Locks modifications to some method. - * - * @param reflectionMethod {@link ReflectionMethod} to lock - * @param updatedModifiers original modifiers - * @throws NoSuchFieldException if the {@code modifiers} field is missing - * @throws NoAccessException if access to the method has been denied - * @see #unlockModifications(ReflectionMethod) - * @since v1-alpha2 - */ - public static void lockModifications(ReflectionMethod reflectionMethod, int updatedModifiers) throws NoSuchFieldException, NoAccessException { - Method method = reflectionMethod.getMethod(); - - Field modifiersField; - try { - modifiersField = method.getClass().getDeclaredField("modifiers"); - } catch (NoSuchFieldException exception) { - throw new NoSuchFieldException("Field \"modifiers\" not present inside method " + method.getName()); - } - - modifiersField.setAccessible(true); - - try { - modifiersField.setInt(method, method.getModifiers() & ~updatedModifiers); - } catch (IllegalAccessException exception) { - throw new NoAccessException("method", method.getName()); - } - - modifiersField.setAccessible(false); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/reflection/package-info.java b/base/src/main/java/de/staropensource/engine/base/internal/reflection/package-info.java deleted file mode 100644 index 73bcdbc06..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/reflection/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Utility classes used during reflection. - * - * @see de.staropensource.engine.base.reflection.Reflect - * @since v1-alpha2 - */ -package de.staropensource.engine.base.internal.reflection; diff --git a/base/src/main/java/de/staropensource/engine/base/internal/type/DependencySubsystemVector.java b/base/src/main/java/de/staropensource/engine/base/internal/type/DependencySubsystemVector.java deleted file mode 100644 index f69e7870e..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/type/DependencySubsystemVector.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.type; - -import de.staropensource.engine.base.implementable.SubsystemClass; -import de.staropensource.engine.base.type.DependencyVector; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; - -/** - * Represents a dependency vector with an additional {@code mainClass} field. - * Used during the subsystem initialization process to easily determine the - * initialization order without much extra code and performance loss. - * - * @since v1-alpha1 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class DependencySubsystemVector extends DependencyVector { - /** - * Contains the associated {@link SubsystemClass}. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the associated {@link SubsystemClass}. - * - * @return associated {@link SubsystemClass} - * @since v1-alpha1 - */ - private final SubsystemClass subsystemClass; - - /** - * Creates and initializes an instance of this class. - * Reuses an existing {@link DependencyVector}. - * - * @param vector existing dependency vector to reuse - * @param subsystemClass {@link SubsystemClass} to associate - * @since v1-alpha1 - */ - public DependencySubsystemVector(@NotNull DependencyVector vector, @NotNull SubsystemClass subsystemClass) { - super(subsystemClass.getName(), vector.getVersioningSystem(), vector.getVersion(), vector.getDependencies(), vector.getProvides()); - this.subsystemClass = subsystemClass; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/type/QueuedLogCall.java b/base/src/main/java/de/staropensource/engine/base/internal/type/QueuedLogCall.java deleted file mode 100644 index 1b6697e30..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/type/QueuedLogCall.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.internal.type; - -import de.staropensource.engine.base.logging.backend.async.LoggingThread; -import de.staropensource.engine.base.type.logging.LogLevel; -import org.jetbrains.annotations.NotNull; - -/** - * Represents a queued log call. - * - * @param level level of the log call - * @param issuer {@link StackTraceElement} of the issuer - * @param message message - * @see LoggingThread - * @since v1-alpha8 - */ -@SuppressWarnings({ "unused" }) -public record QueuedLogCall(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message) { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha8 - */ - public QueuedLogCall {} -} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/type/package-info.java b/base/src/main/java/de/staropensource/engine/base/internal/type/package-info.java deleted file mode 100644 index 3004e5e36..000000000 --- a/base/src/main/java/de/staropensource/engine/base/internal/type/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Engine-internal data types, usually for passing - * data around classes more efficiently. - * - * @since v1-alpha1 - */ -package de.staropensource.engine.base.internal.type; diff --git a/base/src/main/java/de/staropensource/engine/base/logging/Logger.java b/base/src/main/java/de/staropensource/engine/base/logging/Logger.java deleted file mode 100644 index 80a7e7dff..000000000 --- a/base/src/main/java/de/staropensource/engine/base/logging/Logger.java +++ /dev/null @@ -1,454 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.logging; - -import de.staropensource.engine.base.implementable.LoggingAdapter; -import de.staropensource.engine.base.implementation.logging.PlainLoggingAdapter; -import de.staropensource.engine.base.logging.backend.CrashHandler; -import de.staropensource.engine.base.logging.backend.Filterer; -import de.staropensource.engine.base.logging.backend.Processor; -import de.staropensource.engine.base.logging.backend.async.LoggingQueue; -import de.staropensource.engine.base.type.logging.LogLevel; -import lombok.Getter; -import lombok.Setter; -import org.intellij.lang.annotations.RegExp; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -/** - * The frontend class for sos!engine's logging system. - * - * @since v1-alpha8 - */ -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Logger { - /** - * Refers to the active {@link LoggingAdapter} that is used to process and print log messages. - * - * @see LoggingAdapter - * @since v1-alpha0 - * -- GETTER -- - * Returns the active {@link LoggingAdapter}. - * - * @return active {@link LoggingAdapter} - * @see LoggingAdapter - * @since v1-alpha0 - * -- SETTER -- - * Sets the active {@link LoggingAdapter}. - * - * @param loggingAdapter new active {@link LoggingAdapter} - * @see LoggingAdapter - * @since v1-alpha0 - */ - @Getter - @Setter - private static @NotNull LoggingAdapter loggingAdapter = new PlainLoggingAdapter(); - - /** - * Contains if messages shall be - * sanitized during processing. - *

- * Enabling this flag will prevent - * tag usage and with that formatting. - *

- * Recommended to leave enabled. Only - * disable if you are developing a - * command line application. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns if messages shall be - * sanitized during processing. - *

- * Enabling this flag will prevent - * tag usage and with that formatting. - *

- * Recommended to leave enabled. Only - * disable if you are developing a - * command line application. - * - * @return sanitize messages? - * @since v1-alpha0 - * -- SETTER -- - * Sets if messages shall be - * sanitized during processing. - *

- * Enabling this flag will prevent - * tag usage and with that formatting. - *

- * Recommended to leave enabled. Only - * disable if you are developing a - * command line application. - * - * @param sanitizeMessages sanitize messages? - * @since v1-alpha0 - */ - @Getter - @Setter - private static boolean sanitizeMessages = true; - - /** - * Creates and initializes an instance of this class - * - * @since v1-alpha8 - */ - private Logger() {} - - // -----> Internal management methods - // These methods forward calls to internal methods so - // these can be accessed without exporting a whole package. - /** - * Handles incoming log calls and either - * processes them directly or queues them in. - *

- * **This is an internal method. Use with care.** - * - * @param level level of the log call - * @param issuer {@link StackTraceElement} of the issuer - * @param message message - * @since v1-alpha8 - */ - public static void handle(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message) { - Processor.handle(level, issuer, message); - } - - /** - * Flushes the logging queue. - *

- * **This is an internal method. Use with care.** - * - * @since v1-alpha8 - */ - public static void flush() { - LoggingQueue.flush(); - } - - /** - * Disallows one or multiple classes. - * - * @param regex regex - * @since v1-alpha8 - */ - public static void disallowClass(@RegExp @NotNull String regex) { - Filterer.disallowClass(regex); - } - - /** - * Disallows one or multiple modules. - * - * @param regex regex - * @since v1-alpha8 - */ - public static void disallowModule(@RegExp @NotNull String regex) { - Filterer.disallowModule(regex); - } - - /** - * Disallows one or multiple messages. - * - * @param regex regex - * @since v1-alpha8 - */ - public static void disallowMessage(@RegExp @NotNull String regex) { - Filterer.disallowMessage(regex); - } - - - // -----> Redirection methods - /** - * Redirects regular log messages. - * - * @param level level of the log call - * @param message message - * @since v1-alpha8 - */ - public static void redirectCall(@NotNull LogLevel level, @NotNull String message) { - Processor.handle(level, Thread.currentThread().getStackTrace()[3], message); - } - - /** - * Redirects crash calls. - * - * @param message message - * @param throwable {@link Throwable} which caused the error - * @param fatal if to terminate the engine - * @since v1-alpha8 - */ - public static void redirectCall(@NotNull String message, @Nullable Throwable throwable, boolean fatal) { - CrashHandler.handleCrash(Thread.currentThread().getStackTrace()[3], message, throwable, fatal); - } - - - // -----> Frontend methods - /** - * Logs a diagnostic message. - * - * @param message message to log - * @since v1-alpha8 - */ - public static void diag(@NotNull String message) { - redirectCall(LogLevel.DIAGNOSTIC, message); - } - - /** - * Logs a verbose message. - * - * @param message message to log - * @since v1-alpha8 - */ - public static void verb(@NotNull String message) { - redirectCall(LogLevel.VERBOSE, message); - } - - /** - * Logs a silent warning. - * - * @param message message to log - * @since v1-alpha8 - */ - public static void sarn(@NotNull String message) { - redirectCall(LogLevel.SILENT_WARNING, message); - } - - /** - * Logs an informational message. - * - * @param message message to log - * @since v1-alpha8 - */ - public static void info(@NotNull String message) { - redirectCall(LogLevel.INFORMATIONAL, message); - } - - /** - * Logs a warning. - * - * @param message message to log - * @since v1-alpha8 - */ - public static void warn(@NotNull String message) { - redirectCall(LogLevel.WARNING, message); - } - - /** - * Logs an error. - * - * @param message message to log - * @since v1-alpha8 - */ - public static void error(@NotNull String message) { - redirectCall(LogLevel.ERROR, message); - } - - /** - * Prints a crash report and optionally crashes the engine. - * - * @param message message to log - * @param throwable {@link Throwable} which caused the crash - * @param fatal terminates the engine if {@code true} - * @since v1-alpha8 - */ - public static void crash(@NotNull String message, @NotNull Throwable throwable, boolean fatal) { - redirectCall(message, throwable, fatal); - } - - /** - * Prints a crash report and optionally crashes the engine. - * - * @param message message to log - * @param throwable {@link Throwable} which caused the crash - * @since v1-alpha8 - */ - public static void crash(@NotNull String message, @NotNull Throwable throwable) { - redirectCall(message, throwable, true); - } - - /** - * Prints a crash report and optionally crashes the engine. - * - * @param message message to log - * @param fatal terminates the engine if {@code true} - * @since v1-alpha8 - */ - public static void crash(@NotNull String message, boolean fatal) { - redirectCall(message, null, fatal); - } - - /** - * Prints a crash report and optionally crashes the engine. - * - * @param message message to log - * @since v1-alpha8 - */ - public static void crash(@NotNull String message) { - redirectCall(message, null, true); - } - - - // -----> Legacy frontend methods - // This improves compatibility with old code - // still using the old logger frontend. - /** - * Prints a diagnostic message. - * - * @param ignoredIssuerClass class of the issuer - * @param ignoredIssuerOrigin origin of the issuer - * @param ignoredIssuerMetadata metadata about the issuer - * @param message message - * @deprecated The old logging system has been deprecated and replaced by a new one - * @see #diag(String) - * @since v1-alpha0 - */ - @Deprecated(forRemoval = true) - public static void diag(@NotNull Class ignoredIssuerClass, @NotNull String ignoredIssuerOrigin, @Nullable String ignoredIssuerMetadata, @NotNull String message) { - redirectCall(LogLevel.DIAGNOSTIC, message); - } - - /** - * Prints a verbose message. - * - * @param ignoredIssuerClass class of the issuer - * @param ignoredIssuerOrigin origin of the issuer - * @param ignoredIssuerMetadata metadata about the issuer - * @param message message - * @deprecated The old logging system has been deprecated and replaced by a new one - * @see #verb(String) - * @since v1-alpha0 - */ - @Deprecated(forRemoval = true) - public static void verb(@NotNull Class ignoredIssuerClass, @NotNull String ignoredIssuerOrigin, @Nullable String ignoredIssuerMetadata, @NotNull String message) { - redirectCall(LogLevel.VERBOSE, message); - } - - /** - * Prints a silent warning message. - * - * @param ignoredIssuerClass class of the issuer - * @param ignoredIssuerOrigin origin of the issuer - * @param ignoredIssuerMetadata metadata about the issuer - * @param message message - * @deprecated The old logging system has been deprecated and replaced by a new one - * @see #sarn(String) - * @since v1-alpha0 - */ - @Deprecated(forRemoval = true) - public static void sarn(@NotNull Class ignoredIssuerClass, @NotNull String ignoredIssuerOrigin, @Nullable String ignoredIssuerMetadata, @NotNull String message) { - redirectCall(LogLevel.SILENT_WARNING, message); - } - - /** - * Prints an informational message. - * - * @param ignoredIssuerClass class of the issuer - * @param ignoredIssuerOrigin origin of the issuer - * @param ignoredIssuerMetadata metadata about the issuer - * @param message message - * @deprecated The old logging system has been deprecated and replaced by a new one - * @see #info(String) - * @since v1-alpha0 - */ - @Deprecated(forRemoval = true) - public static void info(@NotNull Class ignoredIssuerClass, @NotNull String ignoredIssuerOrigin, @Nullable String ignoredIssuerMetadata, @NotNull String message) { - redirectCall(LogLevel.INFORMATIONAL, message); - } - - /** - * Prints a warning message. - * - * @param ignoredIssuerClass class of the issuer - * @param ignoredIssuerOrigin origin of the issuer - * @param ignoredIssuerMetadata metadata about the issuer - * @param message message - * @deprecated The old logging system has been deprecated and replaced by a new one - * @see #warn(String) - * @since v1-alpha0 - */ - @Deprecated(forRemoval = true) - public static void warn(@NotNull Class ignoredIssuerClass, @NotNull String ignoredIssuerOrigin, @Nullable String ignoredIssuerMetadata, @NotNull String message) { - redirectCall(LogLevel.WARNING, message); - } - - /** - * Prints an error message. - * - * @param ignoredIssuerClass class of the issuer - * @param ignoredIssuerOrigin origin of the issuer - * @param ignoredIssuerMetadata metadata about the issuer - * @param message message - * @deprecated The old logging system has been deprecated and replaced by a new one - * @see #error(String) - * @since v1-alpha0 - */ - @Deprecated(forRemoval = true) - public static void error(@NotNull Class ignoredIssuerClass, @NotNull String ignoredIssuerOrigin, @Nullable String ignoredIssuerMetadata, @NotNull String message) { - redirectCall(LogLevel.ERROR, message); - } - - /** - * Crashes the entire engine. - * - * @param ignoredIssuerClass class of the issuer - * @param ignoredIssuerOrigin origin of the issuer - * @param ignoredIssuerMetadata metadata about the issuer - * @param message message - * @param throwable the throwable that caused this crash - * @param handled declares the throwable has handled, not causing the engine to shutdown - * @deprecated The old logging system has been deprecated and replaced by a new one - * @see #crash(String, Throwable, boolean) - * @since v1-alpha0 - */ - @Deprecated(forRemoval = true) - public static void crash(@NotNull Class ignoredIssuerClass, @NotNull String ignoredIssuerOrigin, @Nullable String ignoredIssuerMetadata, @NotNull String message, @NotNull Throwable throwable, boolean handled) { - redirectCall(message, throwable, !handled); - } - - /** - * Crashes the entire engine. - * - * @param ignoredIssuerClass class of the issuer - * @param ignoredIssuerOrigin origin of the issuer - * @param ignoredIssuerMetadata metadata about the issuer - * @param message message - * @param throwable the throwable that caused this crash - * @deprecated The old logging system has been deprecated and replaced by a new one - * @see #crash(String, Throwable) - * @since v1-alpha0 - */ - @Deprecated(forRemoval = true) - public static void crash(@NotNull Class ignoredIssuerClass, @NotNull String ignoredIssuerOrigin, @Nullable String ignoredIssuerMetadata, @NotNull String message, @NotNull Throwable throwable) { - redirectCall(message, throwable, true); - } - - /** - * Crashes the entire engine. - * - * @param ignoredIssuerClass class of the issuer - * @param ignoredIssuerOrigin origin of the issuer - * @param ignoredIssuerMetadata metadata about the issuer - * @param message message - * @deprecated The old logging system has been deprecated and replaced by a new one - * @see #crash(String) - * @since v1-alpha0 - */ - @Deprecated(forRemoval = true) - public static void crash(@NotNull Class ignoredIssuerClass, @NotNull String ignoredIssuerOrigin, @Nullable String ignoredIssuerMetadata, @NotNull String message) { - redirectCall(message, null, true); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/logging/LoggerInstance.java b/base/src/main/java/de/staropensource/engine/base/logging/LoggerInstance.java deleted file mode 100644 index a3d35c856..000000000 --- a/base/src/main/java/de/staropensource/engine/base/logging/LoggerInstance.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.logging; - -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -/** - * Legacy frontend. - *

- * This improves compatibility with old code - * still using the old logger frontend. - * - * @deprecated The old logging system has been deprecated and replaced by a new one - * @see Logger - * @since v1-alpha8 - */ -@Getter -@Deprecated(forRemoval = true) -public final class LoggerInstance { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha8 - */ - private LoggerInstance() {} - - /** - * Prints a diagnostic message. - * - * @param message message - * @since v1-alpha0 - */ - public void diag(@NotNull String message) { - Logger.diag(message); - } - - /** - * Prints a verbose message. - * - * @param message message - * @since v1-alpha0 - */ - public void verb(@NotNull String message) { - Logger.verb(message); - } - - /** - * Prints a silent warning message. - * - * @param message message - * @since v1-alpha0 - */ - public void sarn(@NotNull String message) { - Logger.sarn(message); - } - - /** - * Prints an informational message. - * - * @param message message - * @since v1-alpha0 - */ - public void info(@NotNull String message) { - Logger.info(message); - } - - /** - * Prints a warning message. - * - * @param message message - * @since v1-alpha0 - */ - public void warn(@NotNull String message) { - Logger.warn(message); - } - - /** - * Prints an error message. - * - * @param message message - * @since v1-alpha0 - */ - public void error(@NotNull String message) { - Logger.error(message); - } - - /** - * Crashes the entire engine. - * - * @param message message - * @param throwable throwable that caused the crash - * @param handled declares the throwable has handled - * @since v1-alpha0 - */ - public void crash(@NotNull String message, @NotNull Throwable throwable, boolean handled) { - Logger.crash(message, throwable, !handled); - } - - /** - * Crashes the entire engine. - * - * @param message message - * @param throwable throwable that caused the crash - * @since v1-alpha0 - */ - public void crash(@NotNull String message, @NotNull Throwable throwable) { - Logger.crash(message, throwable); - } - - /** - * Crashes the entire engine. - * - * @param message message - * @since v1-alpha0 - */ - public void crash(@NotNull String message) { - Logger.crash(message); - } - - /** - * Provides an API for building {@link LoggerInstance}s more easily. - * - * @deprecated The old logging system has been deprecated and replaced by a new one - * @see Logger - * @since v1-alpha8 - */ - @Deprecated(forRemoval = true) - @SuppressWarnings({ "unused" }) - public static final class Builder { - /** - * Contains the class of the issuer. - * - * @since v1-alpha8 - */ - private @Nullable Class clazz = null; - - /** - * Contains the origin of the issuer. - * - * @since v1-alpha8 - */ - private @Nullable String origin = null; - - /** - * Contains metadata about the issuer. - * - * @since v1-alpha8 - */ - private @Nullable String metadata = null; - - /** - * Constructs this class. - * - * @since v1-alpha2 - */ - public Builder() {} - - /** - * Builds a new {@link LoggerInstance} instance. - * - * @return new {@link LoggerInstance} instance - * @throws IllegalStateException if {@link #clazz} is unset - * @since v1-alpha2 - */ - public LoggerInstance build() throws IllegalStateException { - // Check for required fields - if (clazz == null) - throw new IllegalStateException("The class is unset"); - - // Set defaults - if (origin == null || origin.isBlank()) - origin = "APPLICATION"; - if (metadata == null || metadata.isBlank()) - metadata = null; - - return new LoggerInstance(); - } - - /** - * Returns the class of the issuer. - * - * @return class of the issuer - * @since v1-alpha2 - */ - public @Nullable Class getClazz() { - return clazz; - } - - /** - * Returns the origin of the issuer. - * - * @return origin of the issuer - * @since v1-alpha2 - */ - public @Nullable String getOrigin() { - return origin; - } - - /** - * Returns metadata about the issuer. - * - * @return metadata about the issuer - * @since v1-alpha2 - */ - public @Nullable String getMetadata() { - return metadata; - } - - /** - * Sets the class of the issuer. - * - * @param clazz new class of the issuer - * @return builder instance - * @since v1-alpha2 - */ - public @NotNull Builder setClazz(@Nullable Class clazz) { - this.clazz = clazz; - return this; - } - - /** - * Sets the origin of the issuer. - * - * @param origin new origin of the issuer - * @return builder instance - * @since v1-alpha2 - */ - public @NotNull Builder setOrigin(@Nullable String origin) { - this.origin = origin; - return this; - } - - /** - * Sets the metadata about the issuer. - * - * @param metadata new metadata about the issuer - * @return builder instance - * @since v1-alpha2 - */ - public @NotNull Builder setMetadata(@Nullable String metadata) { - this.metadata = metadata; - return this; - } - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/logging/PrintStreamService.java b/base/src/main/java/de/staropensource/engine/base/logging/PrintStreamService.java deleted file mode 100644 index c7ccd5f1a..000000000 --- a/base/src/main/java/de/staropensource/engine/base/logging/PrintStreamService.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.logging; - -import de.staropensource.engine.base.Engine; -import de.staropensource.engine.base.type.EngineState; -import de.staropensource.engine.base.type.logging.LogLevel; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; - -import java.io.OutputStream; -import java.io.PrintStream; -import java.nio.charset.StandardCharsets; - -/** - * Contains {@link PrintStream}s for the standard - * output and standard error streams, which redirect - * their input into the engine's logging infrastructure. - * - * @since v1-alpha4 - */ -@SuppressWarnings({ "unused", "JavadocDeclaration" }) -public final class PrintStreamService { - /** - * Contains the diagnostic stream. - * Anything sent will be redirected to - * {@link Logger#info(String)} - * - * @since v1-alpha4 - * -- GETTER -- - * Returns the diagnostic stream. - * Anything sent will be redirected to - * {@link Logger#info(String)} - * - * @return diagnostic stream - * @since v1-alpha4 - */ - @Getter - private static PrintStream diag = null; - - /** - * Contains the verbose stream. - * Anything sent will be redirected to - * {@link Logger#error(String)} - * - * @since v1-alpha4 - * -- GETTER -- - * Returns the verbose stream. - * Anything sent will be redirected to - * {@link Logger#error(String)} - * - * @return verbose stream - * @since v1-alpha4 - */ - @Getter - private static PrintStream verb = null; - - /** - * Contains the silent warning stream. - * Anything sent will be redirected to - * {@link Logger#error(String)} - * - * @since v1-alpha4 - * -- GETTER -- - * Returns the silent warning stream. - * Anything sent will be redirected to - * {@link Logger#error(String)} - * - * @return silent warning stream - * @since v1-alpha4 - */ - @Getter - private static PrintStream sarn = null; - - /** - * Contains the informational stream. - * Anything sent will be redirected to - * {@link Logger#info(String)} - * - * @since v1-alpha4 - * -- GETTER -- - * Returns the informational stream. - * Anything sent will be redirected to - * {@link Logger#info(String)} - * - * @return informational stream - * @since v1-alpha4 - */ - @Getter - private static PrintStream info = null; - - /** - * Contains the warning stream. - * Anything sent will be redirected to - * {@link Logger#error(String)} - * - * @since v1-alpha4 - * -- GETTER -- - * Returns the warning stream. - * Anything sent will be redirected to - * {@link Logger#error(String)} - * - * @return warning stream - * @since v1-alpha4 - */ - @Getter - private static PrintStream warn = null; - - /** - * Contains the error stream. - * Anything sent will be redirected to - * {@link Logger#info(String)} - * - * @since v1-alpha4 - * -- GETTER -- - * Returns the error stream. - * Anything sent will be redirected to - * {@link Logger#info(String)} - * - * @return error stream - * @since v1-alpha4 - */ - @Getter - private static PrintStream error = null; - - /** - * Contains the crash stream. - * Anything sent will be redirected to - * {@link Logger#error(String)} - * - * @since v1-alpha4 - * -- GETTER -- - * Returns the crash stream. - * Anything sent will be redirected to - * {@link Logger#error(String)} - * - * @return crash stream - * @since v1-alpha4 - */ - @Getter - private static PrintStream crash = null; - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha4 - */ - private PrintStreamService() {} - - /** - * Initializes all {@link PrintStream}s offered by this class. - *

- * Only works during early engine startup. - * - * @since v1-alpha8 - */ - public static void initializeStreams() { - if (Engine.getInstance() == null || Engine.getInstance().getState() != EngineState.EARLY_STARTUP) - return; - - // Create streams - diag = LogStream.createPrintStream(LogLevel.DIAGNOSTIC); - verb = LogStream.createPrintStream(LogLevel.VERBOSE); - sarn = LogStream.createPrintStream(LogLevel.SILENT_WARNING); - info = LogStream.createPrintStream(LogLevel.INFORMATIONAL); - warn = LogStream.createPrintStream(LogLevel.WARNING); - error = LogStream.createPrintStream(LogLevel.ERROR); - crash = LogStream.createPrintStream(LogLevel.CRASH); - } - - /** - * Returns the standard output stream. - * - * @return standard output stream - * @since v1-alpha4 - */ - public static @NotNull PrintStream getStdOut() { - return info; - } - - /** - * Returns the standard error stream. - * - * @return standard error stream - * @since v1-alpha4 - */ - public static @NotNull PrintStream getStdErr() { - return error; - } - - /** - * Extends {@link PrintStream} to allow for redirecting log messages. - * - * @since v1-alpha4 - */ - private static final class LogStream extends OutputStream { - /** - * Contains the current sequence of characters written. - * - * @since v1-alpha4 - */ - private @NotNull StringBuilder sequence = new StringBuilder(); - - /** - * Contains the {@link LogLevel} to write log messages in. - * - * @since v1-alpha4 - */ - private final @NotNull LogLevel level; - - /** - * Constructs this class. - * - * @param level level to write log messages in - * @since v1-alpha4 - */ - public LogStream(@NotNull LogLevel level) { - this.level = level; - } - - /** - * Creates a new {@link LogStream} and returns a {@link PrintStream} - * using the newly created {@link LogStream} instance. - * - * @param level level to write log messages in - * @return {@link PrintStream} using a newly created {@link LogStream} instance - * @since v1-alpha4 - */ - public static @NotNull PrintStream createPrintStream(@NotNull LogLevel level) { - //noinspection resource // obvious why - return new LogStream(level).toPrintStream(); - } - - /** - * Returns a new {@link PrintStream} using this {@link LogStream} instance. - * - * @return {@link PrintStream} using this instance - * @since v1-alpha4 - */ - public @NotNull PrintStream toPrintStream() { - return new PrintStream(this, true, StandardCharsets.UTF_8); - } - - /** {@inheritDoc} */ - @Override - public synchronized void write(int byteChar) { - // Convert to String and append to 'sequence' - sequence.append(new String(new byte[]{ (byte) byteChar }, StandardCharsets.UTF_8)); - - // Check for newline - if (sequence.indexOf("\n") != -1) { - switch (level) { - case DIAGNOSTIC -> Logger.diag(sequence.toString()); - case VERBOSE -> Logger.verb(sequence.toString()); - case SILENT_WARNING -> Logger.sarn(sequence.toString()); - case INFORMATIONAL -> Logger.info(sequence.toString()); - case WARNING -> Logger.warn(sequence.toString()); - case ERROR -> Logger.error(sequence.toString()); - case CRASH -> Logger.crash(sequence.toString()); - } - - sequence = new StringBuilder(); - } - } - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/logging/backend/CrashHandler.java b/base/src/main/java/de/staropensource/engine/base/logging/backend/CrashHandler.java deleted file mode 100644 index bdb16481e..000000000 --- a/base/src/main/java/de/staropensource/engine/base/logging/backend/CrashHandler.java +++ /dev/null @@ -1,338 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.logging.backend; - -import de.staropensource.engine.base.Engine; -import de.staropensource.engine.base.EngineConfiguration; -import de.staropensource.engine.base.EngineInternals; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.logging.LogLevel; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import de.staropensource.engine.base.utility.misc.Miscellaneous; -import de.staropensource.engine.base.utility.information.EngineInformation; -import de.staropensource.engine.base.utility.information.JvmInformation; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.util.*; - -import static de.staropensource.engine.base.logging.backend.Processor.isFeatureEnabled; - -/** - * Handles crashes. - * - * @since v1-alpha8 - */ -public final class CrashHandler { - /** - * Contains all random witty comments. - * - * @since v1-alpha8 - */ - public static final @NotNull String[] WITTYCOMMENTS = new String[]{ - "Who fucked up here?", - "What is it now?", - ":neofox_woozy:", - "Oh no!", - "my engine brokey brokey", - "weird", - "Is this a feature?", - "$ git blame", - }; - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha8 - */ - private CrashHandler() {} - - /** - * Handles crash reports. - * - * @param issuer {@link StackTraceElement} of the issuer - * @param message message - * @param throwable {@link Throwable} which caused the error - * @param fatal if to terminate the engine - * @since v1-alpha8 - */ - public static void handleCrash(@NotNull StackTraceElement issuer, @NotNull String message, @Nullable Throwable throwable, boolean fatal) { - StringBuilder output = new StringBuilder(); - String outputFinal; - - // Header - output - .append("==== sos!engine crash report ====") - .append("\nDear user: The application or game you just used seems to have run into a problem.") - .append("\n Please be so kind and report this crash report to the developers so they can fix the issue.") - .append("\nDear developer: FIX YOUR SHIT. If the engine is at fault here, please report the crash") - .append("\n to StarOpenSource here: https://git.staropensource.de/StarOpenSource/Engine/issues") - .append("\n\n// ") - .append(WITTYCOMMENTS[new Random().nextInt(WITTYCOMMENTS.length)]) - .append("\n\n"); - - // Information about the crash - output - .append("---- Crash Information ----\n") - .append("Issuer: ") - .append(issuer.getClassName()) - .append("@") - .append(issuer.getModuleName()) - .append("#") - .append(issuer.getMethodName()) - .append("~") - .append(issuer.getLineNumber()) - - .append("\nFatal: ") - .append(fatal); - - if (throwable == null) - output - .append("\nCaused by:") - .append("\nNo throwable has been passed."); - else { - - output - .append("\n") - .append(Miscellaneous.stacktraceAsStringRecursive(throwable, true, true)) - .append("\n"); - } - - output.append("\nMessage: \n") - .append(message) - .append("\n\n"); - - // Environment information - output - .append("---- Environment ----") - .append("\nTime and date: ") - .append(NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.DAY_OF_MONTH), 2)) - .append(".") - .append(NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.MONTH), 2)) - .append(".") - .append(NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.YEAR), 4)) - .append(" ") - .append(NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.HOUR_OF_DAY), 2)) - .append(":") - .append(NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.MINUTE), 2)) - .append(":") - .append(NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.SECOND), 2)) - .append(" [") - .append(TimeZone.getDefault().getDisplayName(false, TimeZone.SHORT, Locale.US)) - .append("]") - - .append("\nUNIX Epoch: ") - .append(NumberUtil.padNumbers(System.currentTimeMillis(), String.valueOf(Long.MAX_VALUE).length())) - - .append("\nOperating system: ") - .append(System.getProperty("os.name")) - - .append("\nCPU architecture: ") - .append(System.getProperty("os.arch")) - - .append("\nMemory: ") - .append(JvmInformation.getMemoryUsed() / 1024) - .append(" MiB") - .append("/") - .append(JvmInformation.getMemoryLimit() / 1024) - .append(" MiB") - .append(" (stack ") - .append(JvmInformation.getMemoryStack().getUsed() / 1024) - .append(" MiB") - .append("/") - .append(JvmInformation.getMemoryStack().getMax() == -1 ? "∞" : JvmInformation.getMemoryStack().getMax() / 1024) - .append(" MiB") - .append(", heap ") - .append(JvmInformation.getMemoryHeap().getUsed() / 1024) - .append(" MiB") - .append("/") - .append(JvmInformation.getMemoryHeap().getMax() == -1 ? "∞" : JvmInformation.getMemoryStack().getMax() / 1024) - .append(" MiB)") - - .append("\nJVM: ") - .append(JvmInformation.getImplementationName()) - .append(" ") - .append(JvmInformation.getImplementationVersion()) - .append(" @ ") - .append(JvmInformation.getJavaVersion()) - .append(" by ") - .append(JvmInformation.getImplementationVendor()) - - .append("\nJVM arguments: "); - - for (String argument : JvmInformation.getArguments()) - output - .append("\n- '") - .append(argument) - .append("'"); - - output.append("\n\n"); - - // Engine - output.append("---- sos!engine ----\n"); - - if (EngineInformation.getVersioningString() == null) - output.append("EngineInformation is not yet initialized"); - else - output - .append("Version: ") - .append(EngineInformation.getVersioningString()) - - .append("\nCommit: ") - .append(EngineInformation.getGitCommitIdentifierLong()) - - .append("\nDirty: ") - .append(EngineInformation.isGitDirty()); - - output.append("\n\n"); - - // Engine configuration - output.append("---- sos!engine configuration ----\n"); - - if (EngineConfiguration.getInstance() == null) - output.append("EngineConfiguration is not yet initialized"); - else - output - .append("EngineConfiguration#debug='") - .append(EngineConfiguration.getInstance().isDebug()) - .append("'\n") - - .append("EngineConfiguration#debugEvents='") - .append(EngineConfiguration.getInstance().isDebugEvents()) - .append("'\n") - - .append("EngineConfiguration#initialPerformSubsystemInitialization='") - .append(EngineConfiguration.getInstance().isInitialPerformSubsystemInitialization()) - .append("'\n") - - .append("EngineConfiguration#initialIncludeSubsystemClasses='") - .append(EngineConfiguration.getInstance().getInitialIncludeSubsystemClasses()) - .append("'\n") - - .append("EngineConfiguration#errorShortcodeParser='") - .append(EngineConfiguration.getInstance().isErrorShortcodeParser()) - .append("'\n") - - .append("EngineConfiguration#optimizeLogging='") - .append(EngineConfiguration.getInstance().isOptimizeLogging()) - .append("'\n") - - .append("EngineConfiguration#optimizeEvents='") - .append(EngineConfiguration.getInstance().isOptimizeEvents()) - .append("'\n") - - .append("EngineConfiguration#logLevel='") - .append(EngineConfiguration.getInstance().getLogLevel().name()) - .append("'\n") - - .append("EngineConfiguration#logSettings='") - .append(EngineConfiguration.getInstance().getLogFeatures()) - .append("'\n") - - .append("EngineConfiguration#logPollingSpeed='") - .append(EngineConfiguration.getInstance().getLogPollingSpeed()) - .append("'\n") - - .append("EngineConfiguration#logForceStandardOutput='") - .append(EngineConfiguration.getInstance().isLogForceStandardOutput()) - .append("'\n") - - .append("EngineConfiguration#hideFullTypePath='") - .append(EngineConfiguration.getInstance().isHideFullTypePath()); - - output.append("'\n\n"); - - // System properties - output.append("---- System properties ----"); - - for (String property : System.getProperties().stringPropertyNames().stream().sorted().toList()) - output - .append("\n") - .append(property) - .append("='") - .append(System.getProperties().getProperty(property).replace("\n", "\\n")) - .append("'"); - - output.append("\n\n"); - - // Stacktraces of all threads - output.append("---- Stacktraces of all threads ----"); - { - Map stacktraces = Thread.getAllStackTraces(); - - for (Thread thread : stacktraces.keySet()) - output - .append("\n") - .append(thread.getName()) - .append(" (id=") - .append(thread.threadId()) - .append(" priority=") - .append(thread.getPriority()) - .append(" group=") - .append(thread.getThreadGroup() == null ? "" : thread.getThreadGroup().getName()) - .append(" state=") - .append(thread.getState().name()) - .append(" daemon=") - .append(thread.isDaemon()) - .append("):") - .append("\n") - .append(Miscellaneous.stacktraceAsString(stacktraces.get(thread), false)) - .append("\n"); - } - output.append("\n"); - - // Footer - output - .append("Dear user: The application or game you just used seems to have run into a problem.\n") - .append(" Please be so kind and report this crash report to the developers so they can fix the issue.\n") - .append("Dear developer: FIX YOUR SHIT. If the engine is at fault here, please report the crash\n") - .append(" to StarOpenSource here: https://git.staropensource.de/StarOpenSource/Engine/issues\n") - .append("==== sos!engine crash report ===="); - - // Formatting - if (isFeatureEnabled("formatting")) { - outputFinal = - "" - + output - .toString() - .replace("<", "\\<") - + ""; - } else - outputFinal = output.toString(); - - // Print - Logger.getLoggingAdapter().print(LogLevel.CRASH, issuer, message, outputFinal); - - // Terminate engine - // We do a test on the engine state here - // to prevent bugs and multiple engine shutdowns. - if (fatal) - switch (Engine.getInstance().getState()) { - case UNKNOWN, EARLY_STARTUP, STARTUP -> { - if (EngineInternals.getInstance() == null) - Runtime.getRuntime().exit(69); - else - EngineInternals.getInstance().getShutdownHandler().shutdown((short) 69); - } - case RUNNING -> Engine.getInstance().shutdown(69); - case SHUTDOWN, CRASHED -> {} - } - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/logging/backend/Filterer.java b/base/src/main/java/de/staropensource/engine/base/logging/backend/Filterer.java deleted file mode 100644 index 97a7f4829..000000000 --- a/base/src/main/java/de/staropensource/engine/base/logging/backend/Filterer.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.logging.backend; - -import org.intellij.lang.annotations.RegExp; -import org.jetbrains.annotations.NotNull; - -import java.util.ArrayList; -import java.util.List; - -/** - * Responsible for filtering log messages out. - * - * @since v1-alpha8 - */ -public final class Filterer { - /** - * Contains a list of all disallowed classes. - * - * @since v1-alpha8 - */ - static @NotNull List<@NotNull String> disallowedClasses = new ArrayList<>(); - - /** - * Contains a list of all disallowed modules. - * - * @since v1-alpha8 - */ - static @NotNull List<@NotNull String> disallowedModules = new ArrayList<>(); - - /** - * Contains a list of all disallowed messages. - * - * @since v1-alpha8 - */ - static @NotNull List<@NotNull String> disallowedMessages = new ArrayList<>(); - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha8 - */ - private Filterer() {} - - /** - * Disallows one or multiple classes. - * - * @param regex regex - * @since v1-alpha8 - */ - public static void disallowClass(@RegExp @NotNull String regex) { - disallowedClasses.add(regex); - } - - /** - * Disallows one or multiple modules. - * - * @param regex regex - * @since v1-alpha8 - */ - public static void disallowModule(@RegExp @NotNull String regex) { - disallowedModules.add(regex); - } - - /** - * Disallows one or multiple messages. - * - * @param regex regex - * @since v1-alpha8 - */ - public static void disallowMessage(@RegExp @NotNull String regex) { - disallowedMessages.add(regex); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/logging/backend/Processor.java b/base/src/main/java/de/staropensource/engine/base/logging/backend/Processor.java deleted file mode 100644 index 58cd2cfc0..000000000 --- a/base/src/main/java/de/staropensource/engine/base/logging/backend/Processor.java +++ /dev/null @@ -1,397 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.logging.backend; - -import de.staropensource.engine.base.EngineConfiguration; -import de.staropensource.engine.base.implementation.shortcode.EmptyShortcodeParser; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.logging.backend.async.LoggingQueue; -import de.staropensource.engine.base.type.logging.LogLevel; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import de.staropensource.engine.base.utility.PlaceholderEngine; -import de.staropensource.engine.base.utility.information.JvmInformation; -import org.jetbrains.annotations.NotNull; - -import java.util.Calendar; - -/** - * Processes log messages. - * - * @see #handle(LogLevel, StackTraceElement, String) - * @since v1-alpha8 - */ -public final class Processor { - /** - * Creates and initializes an instance of this class - * - * @since v1-alpha8 - */ - private Processor() {} - - /** - * Checks whether the specified feature is enabled. - * - * @param feature feature to check - * @return enabled? - * @since v1-alpha8 - */ - public static boolean isFeatureEnabled(@NotNull String feature) { - return EngineConfiguration.getInstance() != null && EngineConfiguration.getInstance().getLogFeatures().contains(feature); - } - - /** - * Handles incoming log calls and either - * processes them directly or queues them in. - * - * @param level level of the log call - * @param issuer {@link StackTraceElement} of the issuer - * @param message message - * @since v1-alpha8 - */ - public static void handle(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message) { - if (EngineConfiguration.getInstance() != null && EngineConfiguration.getInstance().isOptimizeLogging()) - LoggingQueue.add(level, issuer, message); - else - process(level, issuer, message); - } - - /** - * Processes a log call. - * - * @param level level of the log call - * @param issuer {@link StackTraceElement} of the issuer - * @param message message - * @since v1-alpha8 - */ - public static void process(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message) { - StringBuilder output = new StringBuilder(); - - // Filter out - if (EngineConfiguration.getInstance() == null) { - LogLevel maxLevel = LogLevel.INFORMATIONAL; - - try { - maxLevel = LogLevel.valueOf(System.getProperties().getProperty("sosengine.base.logLevel", "informational").toUpperCase()); - } catch (IllegalArgumentException ignored) { - Logger.error("The log level '" + System.getProperties().getProperty("sosengine.base.logLevel", "informational") + "' is not valid"); - } - - if (level.compareTo(maxLevel) < 0) - return; - } else if (level.compareTo(EngineConfiguration.getInstance().getLogLevel()) < 0) - return; - - for (String classNameDisallowed : Filterer.disallowedClasses) - if (issuer.getClassName().matches(classNameDisallowed)) - return; - for (String moduleNameDisallowed : Filterer.disallowedModules) - if (issuer.getModuleName().matches(moduleNameDisallowed)) - return; - for (String messageDisallowed : Filterer.disallowedModules) - if (message.matches(messageDisallowed)) - return; - - format(output, level); - runtime(output); - if (isFeatureEnabled("date") || isFeatureEnabled("time")) { - output.append("["); - date(output); - if (isFeatureEnabled("date") && isFeatureEnabled("time")) - output.append(" "); - time(output); - output.append("] "); - } - - if (isFeatureEnabled("level") || isFeatureEnabled("origin")) { - output.append("["); - level(output, level); - if (isFeatureEnabled("level") && isFeatureEnabled("origin")) - output.append(" "); - if (isFeatureEnabled("origin")) { - issuerClass(output, issuer); - issuerModule(output, level, issuer); - methodName(output, level, issuer); - lineNumber(output, level, issuer); - } - output.append("] "); - } - message(output, level, message); - format(output, "reset"); - - // Print - Logger.getLoggingAdapter().print(level, issuer, message, output.toString()); - } - - // -----> Formatting - /** - * Adds the {@code formatting} feature. - *

- * This method will reset and then color the following - * substring in the log level-specific color. - * - * @param builder {@link StringBuilder} instance to append to - * @param level level of the log call - * @see #format(StringBuilder, String) - * @since v1-alpha8 - */ - private static void format(@NotNull StringBuilder builder, @NotNull LogLevel level) { - format(builder, "reset"); - format(builder, switch (level) { - case DIAGNOSTIC, VERBOSE -> "fg:blue"; - case SILENT_WARNING, WARNING -> "fg:yellow"; - case INFORMATIONAL -> "fg:white"; - case ERROR -> "fg:red"; - case CRASH -> "you should not see this"; - }); - } - - /** - * Adds the {@code formatting} feature. - * - * @param builder {@link StringBuilder} instance to append to - * @param component formatting component - * @see #format(StringBuilder, LogLevel) - * @since v1-alpha8 - */ - private static void format(@NotNull StringBuilder builder, @NotNull String component) { - if (isFeatureEnabled("formatting")) - builder - .append("<") - .append(component) - .append(">"); - } - - /** - * Adds the {@code formatting} feature. - * - * @param string string to sanitize - * @return sanitized string - * @see #format(StringBuilder, LogLevel) - * @since v1-alpha8 - */ - private static @NotNull String sanitizeFormat(@NotNull String string) { - if (isFeatureEnabled("formatting")) - return string.replace("<", "\\<"); - else - return string; - } - - // -----> Features and components - /** - * Adds the {@code runtime} feature. - * - * @param builder {@link StringBuilder} instance to append to - * @since v1-alpha8 - */ - private static void runtime(@NotNull StringBuilder builder) { - if (isFeatureEnabled("runtime")) - builder - .append("[") - .append(JvmInformation.getUptime()) - .append("ms") - .append("] "); - } - - /** - * Adds the {@code time} feature. - * - * @param builder {@link StringBuilder} instance to append to - * @since v1-alpha8 - */ - private static void time(@NotNull StringBuilder builder) { - if (isFeatureEnabled("time")) - builder - .append(NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.HOUR_OF_DAY), 2)) - .append(":") - .append(NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.MINUTE), 2)) - .append(":") - .append(NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.SECOND), 2)); - } - - /** - * Adds the {@code date} feature. - * - * @param builder {@link StringBuilder} instance to append to - * @since v1-alpha8 - */ - private static void date(@NotNull StringBuilder builder) { - if (isFeatureEnabled("date")) - builder - .append(NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.DAY_OF_MONTH), 2)) - .append(".") - .append(NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.MONTH), 2)) - .append(".") - .append(NumberUtil.padNumbers(Calendar.getInstance().get(Calendar.YEAR), 4)); - } - - /** - * Adds the {@code level} component. - * - * @param builder {@link StringBuilder} instance to append to - * @param level level of the log call - * @since v1-alpha8 - */ - private static void level(@NotNull StringBuilder builder, @NotNull LogLevel level) { - if (isFeatureEnabled("level")) { - format(builder, "bold"); - - builder.append(switch (level) { - case DIAGNOSTIC -> "DIAG"; - case VERBOSE -> "VERB"; - case SILENT_WARNING -> "SARN"; - case INFORMATIONAL -> "INFO"; - case WARNING -> "WARN"; - case ERROR -> "ERR!"; - case CRASH -> "CRSH"; - }); - - format(builder, level); - } - } - - /** - * Adds the {@code issuer class} component. - * - * @param builder {@link StringBuilder} instance to append to - * @param issuer {@link StackTraceElement} of the issuer - * @since v1-alpha8 - */ - private static void issuerClass(@NotNull StringBuilder builder, @NotNull StackTraceElement issuer) { - format(builder, "bold"); - - if (isFeatureEnabled("shortIssuerClass")) { - String[] classNameSplit = issuer.getClassName().split("\\."); - builder.append(classNameSplit[classNameSplit.length - 1]); - } else - builder.append(issuer.getClassName()); - } - - /** - * Adds the {@code moduleName} and {@code moduleVersion} features. - * - * @param builder {@link StringBuilder} instance to append to - * @param level level of the log call - * @param issuer {@link StackTraceElement} of the issuer - * @since v1-alpha8 - */ - private static void issuerModule(@NotNull StringBuilder builder, @NotNull LogLevel level, @NotNull StackTraceElement issuer) { - if (isFeatureEnabled("moduleName") && issuer.getModuleName() != null) { - format(builder, "bold"); - - builder - .append("@") - .append(issuer.getModuleName()); - - if (isFeatureEnabled("moduleVersion") && issuer.getModuleVersion() != null) - builder - .append("v") - .append(issuer.getModuleVersion()); - - format(builder, level); - } - } - - /** - * Adds the {@code methodName} feature. - * - * @param builder {@link StringBuilder} instance to append to - * @param level level of the log call - * @param issuer {@link StackTraceElement} of the issuer - * @since v1-alpha8 - */ - private static void methodName(@NotNull StringBuilder builder, @NotNull LogLevel level, @NotNull StackTraceElement issuer) { - if (isFeatureEnabled("methodName")) { - builder.append("#"); - format(builder, "bold"); - builder.append(sanitizeFormat(issuer.getMethodName())); - format(builder, level); - } - } - - /** - * Adds the {@code lineNumber} feature. - * - * @param builder {@link StringBuilder} instance to append to - * @param level level of the log call - * @param issuer {@link StackTraceElement} of the issuer - * @since v1-alpha8 - */ - private static void lineNumber(@NotNull StringBuilder builder, @NotNull LogLevel level, @NotNull StackTraceElement issuer) { - if (isFeatureEnabled("lineNumber")) { - builder.append("~"); - format(builder, "bold"); - builder.append(issuer.getLineNumber()); - format(builder, level); - } - } - - /** - * Adds the {@code message} component. - * - * @param builder {@link StringBuilder} instance to append to - * @param level level of the log call - * @param message message - * @since v1-alpha8 - */ - private static void message(@NotNull StringBuilder builder, @NotNull LogLevel level, @NotNull String message) { - String finalizedMessage = handlePlaceholders( - message - .replace( - "\n", - "\n" + " ".repeat( - new EmptyShortcodeParser(builder.toString(), true) - .getClean() - .length() - ) - ) - ); - - if (Logger.isSanitizeMessages()) - finalizedMessage = sanitizeFormat(finalizedMessage); - else { - StringBuilder reset_correct = new StringBuilder(); - format(reset_correct, level); - - finalizedMessage = finalizedMessage - .replace("", reset_correct); - } - - builder.append(finalizedMessage); - } - - // -----> Utility methods - /** - * Uses the {@link PlaceholderEngine} to replace - * all placeholders within a specified string and - * returns it's result. The original string will - * be returned if the {@link PlaceholderEngine} - * is not yet initialized. - * - * @param string string to use - * @return updated string - * @since v1-alpha8 - */ - private static @NotNull String handlePlaceholders(@NotNull String string) { - if (PlaceholderEngine.getInstance() == null) - return string; - else - return PlaceholderEngine.getInstance().process(string); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/logging/backend/async/LoggingQueue.java b/base/src/main/java/de/staropensource/engine/base/logging/backend/async/LoggingQueue.java deleted file mode 100644 index dbf9a6129..000000000 --- a/base/src/main/java/de/staropensource/engine/base/logging/backend/async/LoggingQueue.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.logging.backend.async; - -import de.staropensource.engine.base.internal.type.QueuedLogCall; -import de.staropensource.engine.base.logging.backend.Processor; -import de.staropensource.engine.base.type.logging.LogLevel; -import org.jetbrains.annotations.NotNull; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -/** - * Handles everything related to the logging queue. - * - * @since v1-alpha8 - */ -public final class LoggingQueue { - /** - * Contains the logging queue. - * - * @since v1-alpha8 - */ - private static final @NotNull List<@NotNull QueuedLogCall> queue = Collections.synchronizedList(new ArrayList<>()); - - /** - * Creates and initializes an instance of this class - * - * @since v1-alpha8 - */ - private LoggingQueue() {} - - /** - * Adds a new entry to the logging queue. - * - * @param level level of the log call - * @param issuer {@link StackTraceElement} of the issuer - * @param message message - * @since v1-alpha8 - */ - public static void add(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message) { - queue.add(new QueuedLogCall(level, issuer, message)); - } - - /** - * Flushes the logging queue. - * - * @since v1-alpha8 - */ - public static void flush() { - // Get copy of and clear the queue - List<@NotNull QueuedLogCall> queue = new ArrayList<>(LoggingQueue.queue); - LoggingQueue.queue.clear(); - - for (QueuedLogCall queuedCall : queue) - Processor.process(queuedCall.level(), queuedCall.issuer(), queuedCall.message()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/logging/backend/async/LoggingThread.java b/base/src/main/java/de/staropensource/engine/base/logging/backend/async/LoggingThread.java deleted file mode 100644 index a170e0a46..000000000 --- a/base/src/main/java/de/staropensource/engine/base/logging/backend/async/LoggingThread.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.logging.backend.async; - -import de.staropensource.engine.base.Engine; -import de.staropensource.engine.base.EngineConfiguration; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.EngineState; -import org.jetbrains.annotations.NotNull; - -/** - * Handles the logging thread. - * - * @since v1-alpha8 - */ -public final class LoggingThread { - /** - * Contains the logging thread. - * - * @since v1-alpha8 - */ - private static Thread thread; - - /** - * Contains the code of the logging thread. - * - * @since v1-alpha8 - */ - private static final @NotNull Runnable threadCode = () -> { - int pollingSpeed; - - while (!( - Thread.currentThread().isInterrupted() - || !(EngineConfiguration.getInstance() == null || EngineConfiguration.getInstance().isOptimizeLogging()) - || Engine.getInstance().getState() == EngineState.SHUTDOWN - || Engine.getInstance().getState() == EngineState.CRASHED - )) { - if (EngineConfiguration.getInstance() == null) - pollingSpeed = 5; - else - pollingSpeed = EngineConfiguration.getInstance().getLogPollingSpeed(); - - // Flush all log messages - LoggingQueue.flush(); - - // Sleep for whatever has been configured - if (pollingSpeed > 0) { - long sleepDuration = System.currentTimeMillis() + pollingSpeed; - while (System.currentTimeMillis() < sleepDuration) - Thread.onSpinWait(); - } - } - }; - - static { - constructThread(); - } - - /** - * Creates and initializes an instance of this class - * - * @since v1-alpha8 - */ - private LoggingThread() {} - - /** - * Constructs the logging thread. - * - * @see #thread - * @since v1-alpha8 - */ - private static void constructThread() { - thread = Thread - .ofPlatform() - .daemon() - .name("Logging thread") - .group(Engine.getThreadGroup()) - .priority(Thread.MAX_PRIORITY) - .stackSize(10) - .unstarted(threadCode); - } - - /** - * (Re-)Starts the logging thread. - * - * @param allowRestart if the logging thread should be restarted if it's stopped - * @since v1-alpha8 - */ - public static void startThread(boolean allowRestart) { - if (allowRestart && thread.isAlive()) { - // Executing the restart logic in another thread prevents - // this thread from being fully blocked while still ensuring - // that the logging thread is properly restarted - Thread - .ofVirtual() - .name("Logging thread restart thread") - .start(() -> { - Logger.diag("Restarting the logging thread"); - - // Interrupt thread - // This let's our thread code know that it should terminate - thread.interrupt(); - - // Make sure that the logging thread is dead before reconstructing and starting it - while (thread.isAlive()) - Thread.onSpinWait(); - - constructThread(); - thread.start(); - }); - } else - thread.start(); - } - - /** - * Returns the {@link Thread.State} of the logging thread. - * - * @return logging thread state - * @see Thread.State - * @since v1-alpha8 - */ - public static @NotNull Thread.State getState() { - return thread.getState(); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/logging/backend/async/package-info.java b/base/src/main/java/de/staropensource/engine/base/logging/backend/async/package-info.java deleted file mode 100644 index 61b3f42a4..000000000 --- a/base/src/main/java/de/staropensource/engine/base/logging/backend/async/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Everything related to making the logging - * infrastructure asynchronous. - * - * @since v1-alpha8 - */ -package de.staropensource.engine.base.logging.backend.async; diff --git a/base/src/main/java/de/staropensource/engine/base/logging/backend/package-info.java b/base/src/main/java/de/staropensource/engine/base/logging/backend/package-info.java deleted file mode 100644 index 809535312..000000000 --- a/base/src/main/java/de/staropensource/engine/base/logging/backend/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * The backend of sos!engine's logging infrastructure. - * - * @since v1-alpha8 - */ -package de.staropensource.engine.base.logging.backend; diff --git a/base/src/main/java/de/staropensource/engine/base/logging/package-info.java b/base/src/main/java/de/staropensource/engine/base/logging/package-info.java deleted file mode 100644 index b426e8adb..000000000 --- a/base/src/main/java/de/staropensource/engine/base/logging/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * The engine's logging infrastructure. - * - * @see de.staropensource.engine.base.logging.Logger - * @since v1-alpha0 - */ -package de.staropensource.engine.base.logging; diff --git a/base/src/main/java/de/staropensource/engine/base/reflection/ClasspathAccess.java b/base/src/main/java/de/staropensource/engine/base/reflection/ClasspathAccess.java deleted file mode 100644 index 50d17e3e3..000000000 --- a/base/src/main/java/de/staropensource/engine/base/reflection/ClasspathAccess.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.reflection; - -import de.staropensource.engine.base.logging.Logger; -import org.jetbrains.annotations.NotNull; - -import java.io.File; -import java.net.URL; -import java.util.ArrayList; -import java.util.Collection; -import java.util.LinkedHashMap; -import java.util.Map; - -/** - * Allows getting the classpath as {@link URL}s. - *

- * This entire class has been stolen from - * the Reflections library. - * All credits to them. - * - * @since v1-alpha2 - */ -public final class ClasspathAccess { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha2 - */ - private ClasspathAccess() {} - - /** - * Returns the classpath as a collection of {@link URL}s. - * - * @return collection of classpath urls - * @since v1-alpha2 - */ - public static @NotNull Collection getClasspathURLs() { - Collection urls = new ArrayList<>(); - String javaClassPath = System.getProperty("java.class.path"); - - if (javaClassPath != null) - for (String path : javaClassPath.split(File.pathSeparator)) - try { - urls.add(new File(path).toURI().toURL()); - } catch (Exception exception) { - Logger.crash("Failed converting classpath to URL", exception); - } - - return fixURLs(urls); - } - - /** - * Fixes slowdowns which {@link URL}s may cause. - *

- * Visit this blog post for more information. - * - * @param urls unfixed urls - * @return fixed urls - * @since v1-alpha2 - */ - private static @NotNull Collection fixURLs(@NotNull Collection urls) { - Map distinct = new LinkedHashMap<>(urls.size()); - for (URL url : urls) { - distinct.put(url.toExternalForm(), url); - } - return distinct.values(); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/reflection/Reflect.java b/base/src/main/java/de/staropensource/engine/base/reflection/Reflect.java deleted file mode 100644 index 0fb1aede6..000000000 --- a/base/src/main/java/de/staropensource/engine/base/reflection/Reflect.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.reflection; - -import org.jetbrains.annotations.NotNull; - -import java.lang.reflect.Field; -import java.lang.reflect.Method; - -/** - * The class you'd likely want to use for reflection. - * - * @since v1-alpha2 - */ -public final class Reflect { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha2 - */ - private Reflect() {} - - /** - * Reflect on a {@link Class}. - * - * @param clazz class to reflect on - * @return new {@link ReflectionClass} - * @since v1-alpha2 - */ - public static @NotNull ReflectionClass reflectOn(@NotNull Class clazz) { - return new ReflectionClass(clazz); - } - - /** - * Reflect on a {@link Method}. - * - * @param method method to reflect on - * @return new {@link ReflectionMethod} - * @since v1-alpha2 - */ - public static ReflectionMethod reflectOn(@NotNull Method method) { - return new ReflectionMethod(method); - } - - /** - * Reflect on a {@link Field}. - * - * @param field field to reflect on - * @return new {@link ReflectionField} - * @since v1-alpha2 - */ - public static @NotNull ReflectionField reflectOn(@NotNull Field field) { - return new ReflectionField(field); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/reflection/ReflectionClass.java b/base/src/main/java/de/staropensource/engine/base/reflection/ReflectionClass.java deleted file mode 100644 index 9c3e806f2..000000000 --- a/base/src/main/java/de/staropensource/engine/base/reflection/ReflectionClass.java +++ /dev/null @@ -1,202 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.reflection; - -import de.staropensource.engine.base.exception.UnexpectedCheckEndException; -import de.staropensource.engine.base.exception.reflection.IncompatibleTypeException; -import de.staropensource.engine.base.exception.reflection.InvalidFieldException; -import de.staropensource.engine.base.exception.reflection.InvalidMethodException; -import de.staropensource.engine.base.type.reflection.ClassType; -import de.staropensource.engine.base.type.reflection.VisibilityModifier; -import org.jetbrains.annotations.NotNull; - -import java.lang.annotation.Annotation; -import java.lang.reflect.Modifier; - -/** - * Reflection helper for {@link Class}es. - * - * @param clazz class to reflect on - * @since v1-alpha2 - */ -@SuppressWarnings({ "unused" }) -public record ReflectionClass(Class clazz) { - /** - * Creates and initializes an instance of this class. - * - * @param clazz class to reflect on - * @since v1-alpha2 - */ - public ReflectionClass(@NotNull Class clazz) { - this.clazz = clazz; - } - - /** - * Returns the class name. - * - * @return class name - * @since v1-alpha2 - */ - public String getName() { - return clazz.getName().replace(getPackage() + ".", ""); - } - - /** - * Returns the package path. - * - * @return package path - * @since v1-alpha2 - */ - public String getPackage() { - return clazz.getPackage().getName(); - } - - /** - * Returns the full path, including the package and class name. - * - * @return full path - * @since v1-alpha2 - */ - public String getPath() { - return clazz.getName(); - } - - /** - * Returns the type of this class. - * - * @return class type - * @since v1-alpha2 - */ - public ClassType getType() { - if (clazz.isLocalClass() || clazz.isMemberClass() || clazz.isAnonymousClass()) - return ClassType.CLASS; - else if (clazz.isInterface()) - return ClassType.INTERFACE; - else if (clazz.isEnum()) - return ClassType.ENUM; - else if (clazz.isRecord()) - return ClassType.RECORD; - else { - // Class#isUnnamedClass is in preview, use reflection to invoke method - try { - if ((boolean) clazz.getMethod("isUnnamedClass").invoke(clazz)) - return ClassType.CLASS; - } catch (Exception ignored) { - } - } - return ClassType.UNKNOWN; - } - - /** - * Returns the class' visibility. - * - * @return class visibility - * @throws UnexpectedCheckEndException if the class is neither public, protected or private (should be impossible) - * @since v1-alpha2 - */ - public VisibilityModifier getVisibility() throws UnexpectedCheckEndException { - if (Modifier.isPublic(clazz.getModifiers())) - return VisibilityModifier.PUBLIC; - else if (Modifier.isProtected(clazz.getModifiers())) - return VisibilityModifier.PROTECTED; - else if (Modifier.isPrivate(clazz.getModifiers())) - return VisibilityModifier.PRIVATE; - else - throw new UnexpectedCheckEndException("checking the visibility of a class with modifiers " + clazz.getModifiers()); - } - - /** - * Checks if the {@code final} modifier is present. - * - * @return presence of the {@code final} modifier - * @since v1-alpha2 - */ - public boolean isFinal() throws IncompatibleTypeException { - if (getType() != ClassType.CLASS) - throw new IncompatibleTypeException("isFinal", getType(), new ClassType[]{ ClassType.CLASS }); - return Modifier.isFinal(clazz.getModifiers()); - } - - /** - * Checks if the {@code abstract} modifier is present. - * - * @return presence of the {@code abstract} modifier - * @since v1-alpha2 - */ - public boolean isAbstract() throws IncompatibleTypeException { - if (getType() != ClassType.CLASS) - throw new IncompatibleTypeException("isAbstract", getType(), new ClassType[]{ ClassType.CLASS }); - return Modifier.isAbstract(clazz.getModifiers()); - } - - /** - * Returns all annotations this class has. - * - * @return array of all annotations - * @since v1-alpha2 - */ - public Annotation @NotNull [] getAnnotations() { - return clazz.getAnnotations(); - } - - /** - * Returns the specified annotation or {@code null} if not found. - * - * @param annotation class - * @return annotation or {@code null} - * @since v1-alpha2 - */ - public Annotation getAnnotation(@NotNull Class annotation) { - return clazz.getAnnotation(annotation); - } - - /** - * Returns the specified method. - * - * @param methodName name of the method - * @param methodArguments arguments of the method - * @return new {@link ReflectionMethod} instance - * @throws InvalidMethodException if the method does not exist - * @since v1-alpha2 - */ - public ReflectionMethod getMethod(@NotNull String methodName, Class... methodArguments) throws InvalidMethodException { - try { - return new ReflectionMethod(clazz.getDeclaredMethod(methodName, methodArguments)); - } catch (NoSuchMethodException exception) { - throw new InvalidMethodException(this, methodName); - } - } - - /** - * Returns the specified field. - * - * @param fieldName name of the field - * @return new {@link ReflectionField} instance - * @throws InvalidFieldException if the field does not exist - * @since v1-alpha2 - */ - public ReflectionField getField(@NotNull String fieldName) throws InvalidFieldException { - try { - return new ReflectionField(clazz.getField(fieldName)); - } catch (NoSuchFieldException exception) { - throw new InvalidFieldException(this, fieldName); - } - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/reflection/ReflectionField.java b/base/src/main/java/de/staropensource/engine/base/reflection/ReflectionField.java deleted file mode 100644 index bd3eb5db7..000000000 --- a/base/src/main/java/de/staropensource/engine/base/reflection/ReflectionField.java +++ /dev/null @@ -1,367 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.reflection; - -import de.staropensource.engine.base.exception.UnexpectedCheckEndException; -import de.staropensource.engine.base.exception.reflection.NoAccessException; -import de.staropensource.engine.base.internal.reflection.ReflectionAccessWidener; -import de.staropensource.engine.base.type.reflection.VisibilityModifier; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.lang.annotation.Annotation; -import java.lang.reflect.Field; -import java.lang.reflect.Modifier; - -/** - * Reflection helper for {@link Field}s. - * - * @since v1-alpha2 - */ -@Getter -@SuppressWarnings({ "unused", "JavadocDeclaration" }) -public final class ReflectionField { - /** - * Contains a reference to the parent class. - * - * @since v1-alpha2 - * -- GETTER -- - * Returns a reference to the parent class. - * - * @return parent class reference - * @since v1-alpha2 - */ - private final @Nullable Class parentClass; - - /** - * Contains a reference to the field to reflect on. - * - * @since v1-alpha2 - * -- GETTER -- - * Returns a reference to the field to reflect on. - * - * @return field reference - * @since v1-alpha2 - */ - private final @NotNull Field field; - - /** - * Creates and initializes an instance of this class. - * - * @param field field to reflect on - */ - public ReflectionField(@NotNull Field field) { - parentClass = null; - this.field = field; - } - - /** - * Constructs this class. - * - * @param parentClass parent class of field - * @param field field to reflect on - */ - public ReflectionField(@NotNull Class parentClass, @NotNull Field field) { - this.parentClass = parentClass; - this.field = field; - } - - /** - * Returns the name of the field. - * - * @return field name - * @since v1-alpha2 - */ - public String getName() { - return field.getName(); - } - - /** - * Returns the field's visibility. - * - * @return field visibility - * @throws UnexpectedCheckEndException if the field is neither public, protected or private (should be impossible) - * @since v1-alpha2 - */ - public VisibilityModifier getVisibility() throws UnexpectedCheckEndException { - if (Modifier.isPublic(field.getModifiers())) - return VisibilityModifier.PUBLIC; - else if (Modifier.isProtected(field.getModifiers())) - return VisibilityModifier.PROTECTED; - else if (Modifier.isPrivate(field.getModifiers())) - return VisibilityModifier.PRIVATE; - else - throw new UnexpectedCheckEndException("checking the visibility of a field with modifiers " + field.getModifiers()); - } - - /** - * Checks if the {@code final} modifier is present. - * - * @return presence of the {@code final} modifier - * @since v1-alpha2 - */ - public boolean isFinal() { - return Modifier.isFinal(field.getModifiers()); - } - - /** - * Checks if the {@code static} modifier is present. - * - * @return presence of the {@code static} modifier - * @since v1-alpha2 - */ - public boolean isStatic() { - return Modifier.isStatic(field.getModifiers()); - } - - /** - * Checks if the {@code transient} modifier is present. - * - * @return presence of the {@code transient} modifier - * @since v1-alpha2 - */ - public boolean isTransient() { - return Modifier.isTransient(field.getModifiers()); - } - - /** - * Checks if the {@code volatile} modifier is present. - * - * @return presence of the {@code volatile} modifier - * @since v1-alpha2 - */ - public boolean isVolatile() { - return Modifier.isVolatile(field.getModifiers()); - } - - /** - * Updates the presence of the {@code final} modifier. - * - * @param newValue new presence of the {@code final} modifier - * @throws NoSuchFieldException if the {@code modifiers} field is missing - * @throws NoAccessException if access to the {@code modifiers} field has been denied - * @since v1-alpha2 - */ - public void setFinal(boolean newValue) throws NoSuchFieldException, NoAccessException { - // Don't do anything if the new value already matches the current value - if (isFinal() == newValue) - return; - - // Unlock modifications - int modifiedModifiers = ReflectionAccessWidener.unlockModifications(this); - - // Get 'modifiers' field - Field modifiersField; - try { - modifiersField = field.getClass().getDeclaredField("modifiers"); - } catch (NoSuchFieldException exception) { - throw new NoSuchFieldException("Field \"modifiers\" not present inside field " + field.getName()); - } - - // Update 'modifiers' field - try { - modifiersField.setInt(field, modifiersField.getInt(field) & ~Modifier.FINAL); - } catch (IllegalAccessException e) { - throw new NoAccessException("field", "modifiers"); - } - - // Lock modifications - ReflectionAccessWidener.lockModifications(this, modifiedModifiers); - } - - /** - * Updates the presence of the {@code static} modifier. - * - * @param newValue new presence of the {@code static} modifier - * @throws NoSuchFieldException if the {@code modifiers} field is missing - * @throws NoAccessException if access to the {@code modifiers} field has been denied - * @since v1-alpha2 - */ - public void setStatic(boolean newValue) throws NoSuchFieldException, NoAccessException { - // Don't do anything if the new value already matches the current value - if (isStatic() == newValue) - return; - - // Unlock modifications - int modifiedModifiers = ReflectionAccessWidener.unlockModifications(this); - - // Get 'modifiers' field - Field modifiersField; - try { - modifiersField = field.getClass().getDeclaredField("modifiers"); - } catch (NoSuchFieldException exception) { - throw new NoSuchFieldException("Field \"modifiers\" not present inside field " + field.getName()); - } - - // Update 'modifiers' field - try { - modifiersField.setInt(field, modifiersField.getInt(field) & ~Modifier.STATIC); - } catch (IllegalAccessException e) { - throw new NoAccessException("field", "modifiers"); - } - - // Lock modifications - ReflectionAccessWidener.lockModifications(this, modifiedModifiers); - } - - /** - * Updates the presence of the {@code transient} modifier. - * - * @param newValue new presence of the {@code transient} modifier - * @throws NoSuchFieldException if the {@code modifiers} field is missing - * @throws NoAccessException if access to the {@code modifiers} field has been denied - * @since v1-alpha2 - */ - public void setTransient(boolean newValue) throws NoSuchFieldException, NoAccessException { - // Don't do anything if the new value already matches the current value - if (isTransient() == newValue) - return; - - // Unlock modifications - int modifiedModifiers = ReflectionAccessWidener.unlockModifications(this); - - // Get 'modifiers' field - Field modifiersField; - try { - modifiersField = field.getClass().getDeclaredField("modifiers"); - } catch (NoSuchFieldException exception) { - throw new NoSuchFieldException("Field \"modifiers\" not present inside field " + field.getName()); - } - - // Update 'modifiers' field - try { - modifiersField.setInt(field, modifiersField.getInt(field) & ~Modifier.TRANSIENT); - } catch (IllegalAccessException e) { - throw new NoAccessException("field", "modifiers"); - } - - // Lock modifications - ReflectionAccessWidener.lockModifications(this, modifiedModifiers); - } - - /** - * Updates the presence of the {@code volatile} modifier. - * - * @param newValue new presence of the {@code volatile} modifier - * @throws NoSuchFieldException if the {@code modifiers} field is missing - * @throws NoAccessException if access to the {@code modifiers} field has been denied - * @since v1-alpha2 - */ - public void setVolatile(boolean newValue) throws NoSuchFieldException, NoAccessException { - // Don't do anything if the new value already matches the current value - if (isVolatile() == newValue) - return; - - // Unlock modifications - int modifiedModifiers = ReflectionAccessWidener.unlockModifications(this); - - // Get 'modifiers' field - Field modifiersField; - try { - modifiersField = field.getClass().getDeclaredField("modifiers"); - } catch (NoSuchFieldException exception) { - throw new NoSuchFieldException("Field \"modifiers\" not present inside field " + field.getName()); - } - - // Update 'modifiers' field - try { - modifiersField.setInt(field, modifiersField.getInt(field) & ~Modifier.VOLATILE); - } catch (IllegalAccessException e) { - throw new NoAccessException("field", "modifiers"); - } - - // Lock modifications - ReflectionAccessWidener.lockModifications(this, modifiedModifiers); - } - - /** - * Returns all annotations this field has. - * - * @return array of all annotations - * @since v1-alpha2 - */ - public Annotation @NotNull [] getAnnotations() { - return field.getAnnotations(); - } - - /** - * Returns the specified annotation or {@code null} if not found. - * - * @param annotation class - * @return annotation or {@code null} - * @since v1-alpha2 - */ - public Annotation getAnnotation(@NotNull Class annotation) { - return field.getAnnotation(annotation); - } - - /** - * Returns the type this field has. - * - * @return field type - * @since v1-alpha2 - */ - public Object getType() { - return field.getType(); - } - - /** - * Returns the generic type this field has. - *

- * You can read the between {@code getType} and {@code getGenericType} here. - * - * @return field type - * @since v1-alpha2 - */ - public Object getGenericType() { - return field.getGenericType(); - } - - /** - * Updates the field with a new value. - * - * @param newValue new value - * @throws NoAccessException if access to the field has been denied - * @since v1-alpha2 - */ - public void setValue(Object newValue) throws NoAccessException { - try { - field.set(parentClass, newValue); - } catch (IllegalAccessException e) { - throw new NoAccessException("field", getName()); - } - } - - /** - * Updates the field with a new value. - * - * @return field's value - * @throws NoAccessException if access to the field has been denied - * @since v1-alpha2 - */ - public Object getValue() throws NoAccessException { - try { - return field.get(parentClass); - } catch (IllegalAccessException e) { - throw new NoAccessException("field", getName()); - } - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/reflection/ReflectionMethod.java b/base/src/main/java/de/staropensource/engine/base/reflection/ReflectionMethod.java deleted file mode 100644 index 7b61a269d..000000000 --- a/base/src/main/java/de/staropensource/engine/base/reflection/ReflectionMethod.java +++ /dev/null @@ -1,378 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.reflection; - -import de.staropensource.engine.base.exception.UnexpectedCheckEndException; -import de.staropensource.engine.base.exception.reflection.InstanceMethodFromStaticContextException; -import de.staropensource.engine.base.exception.reflection.InvalidMethodSignatureException; -import de.staropensource.engine.base.exception.reflection.NoAccessException; -import de.staropensource.engine.base.exception.reflection.StaticInitializerException; -import de.staropensource.engine.base.internal.reflection.ReflectionAccessWidener; -import de.staropensource.engine.base.type.reflection.VisibilityModifier; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.lang.annotation.Annotation; -import java.lang.reflect.Field; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.lang.reflect.Modifier; - -/** - * Reflection helper for {@link Method}s. - * - * @since v1-alpha2 - */ -@Getter -@SuppressWarnings({ "unused", "JavadocDeclaration" }) -public final class ReflectionMethod { - /** - * Contains a reference to the parent class. - * - * @since v1-alpha2 - * -- GETTER -- - * Returns a reference to the parent class. - * - * @return parent class reference - * @since v1-alpha2 - */ - private final Class parentClass; - - /** - * Contains a reference to the method to reflect on. - * - * @since v1-alpha2 - * -- GETTER -- - * Returns a reference to the method to reflect on. - * - * @return method reference - * @since v1-alpha2 - */ - private final Method method; - - /** - * Creates and initializes an instance of this class. - * - * @param method method to reflect on - */ - public ReflectionMethod(@NotNull Method method) { - parentClass = null; - this.method = method; - } - - /** - * Creates and initializes an instance of this class. - * - * @param parentClass parent class of method - * @param method method to reflect on - */ - public ReflectionMethod(@NotNull Class parentClass, @NotNull Method method) { - this.parentClass = parentClass; - this.method = method; - } - - /** - * Returns the name of the method. - * - * @return method name - * @since v1-alpha2 - */ - public String getName() { - return method.getName(); - } - - /** - * Returns the method's visibility. - * - * @return method visibility - * @throws UnexpectedCheckEndException if the method is neither public, protected or private (should be impossible) - * @since v1-alpha2 - */ - public VisibilityModifier getVisibility() throws UnexpectedCheckEndException { - if (Modifier.isPublic(method.getModifiers())) - return VisibilityModifier.PUBLIC; - else if (Modifier.isProtected(method.getModifiers())) - return VisibilityModifier.PROTECTED; - else if (Modifier.isPrivate(method.getModifiers())) - return VisibilityModifier.PRIVATE; - else - throw new UnexpectedCheckEndException("checking the visibility of a method with modifiers " + method.getModifiers()); - } - - /** - * Checks if the {@code final} modifier is present. - * - * @return presence of the {@code final} modifier - * @since v1-alpha2 - */ - public boolean isFinal() { - return Modifier.isFinal(method.getModifiers()); - } - - /** - * Checks if the {@code static} modifier is present. - * - * @return presence of the {@code static} modifier - * @since v1-alpha2 - */ - public boolean isStatic() { - return Modifier.isStatic(method.getModifiers()); - } - - /** - * Checks if the {@code abstract} modifier is present. - * - * @return presence of the {@code abstract} modifier - * @since v1-alpha2 - */ - public boolean isAbstract() { - return Modifier.isAbstract(method.getModifiers()); - } - - /** - * Checks if the {@code synchronized} modifier is present. - * - * @return presence of the {@code synchronized} modifier - * @since v1-alpha2 - */ - public boolean isSynchronized() { - return Modifier.isSynchronized(method.getModifiers()); - } - - /** - * Updates the presence of the {@code final} modifier. - * - * @param newValue new presence of the {@code final} modifier - * @throws NoSuchFieldException if the {@code modifiers} field is missing - * @throws NoAccessException if access to the {@code modifiers} field has been denied - * @since v1-alpha2 - */ - public void setFinal(boolean newValue) throws NoSuchFieldException, NoAccessException { - // Don't do anything if the new value already matches the current value - if (isFinal() == newValue) - return; - - // Unlock modifications - int modifiedModifiers = ReflectionAccessWidener.unlockModifications(this); - - // Get 'modifiers' field - Field modifiersField; - try { - modifiersField = method.getClass().getDeclaredField("modifiers"); - } catch (NoSuchFieldException exception) { - throw new NoSuchFieldException("Field \"modifiers\" not present inside method " + method.getName()); - } - - // Update 'modifiers' field - try { - modifiersField.setInt(method, modifiersField.getInt(method) & ~Modifier.FINAL); - } catch (IllegalAccessException e) { - throw new NoAccessException("field", "modifiers"); - } - - // Lock modifications - ReflectionAccessWidener.lockModifications(this, modifiedModifiers); - } - - /** - * Updates the presence of the {@code static} modifier. - * - * @param newValue new presence of the {@code static} modifier - * @throws NoSuchFieldException if the {@code modifiers} field is missing - * @throws NoAccessException if access to the {@code modifiers} field has been denied - * @since v1-alpha2 - */ - public void setStatic(boolean newValue) throws NoSuchFieldException, NoAccessException { - // Don't do anything if the new value already matches the current value - if (isStatic() == newValue) - return; - - // Unlock modifications - int modifiedModifiers = ReflectionAccessWidener.unlockModifications(this); - - // Get 'modifiers' field - Field modifiersField; - try { - modifiersField = method.getClass().getDeclaredField("modifiers"); - } catch (NoSuchFieldException exception) { - throw new NoSuchFieldException("Field \"modifiers\" not present inside method " + method.getName()); - } - - // Update 'modifiers' field - try { - modifiersField.setInt(method, modifiersField.getInt(method) & ~Modifier.STATIC); - } catch (IllegalAccessException e) { - throw new NoAccessException("field", "modifiers"); - } - - // Lock modifications - ReflectionAccessWidener.lockModifications(this, modifiedModifiers); - } - - /** - * Updates the presence of the {@code abstract} modifier. - * - * @param newValue new presence of the {@code abstract} modifier - * @throws NoSuchFieldException if the {@code modifiers} field is missing - * @throws NoAccessException if access to the {@code modifiers} field has been denied - * @since v1-alpha2 - */ - public void setAbstract(boolean newValue) throws NoSuchFieldException, NoAccessException { - // Don't do anything if the new value already matches the current value - if (isAbstract() == newValue) - return; - - // Unlock modifications - int modifiedModifiers = ReflectionAccessWidener.unlockModifications(this); - - // Get 'modifiers' field - Field modifiersField; - try { - modifiersField = method.getClass().getDeclaredField("modifiers"); - } catch (NoSuchFieldException exception) { - throw new NoSuchFieldException("Field \"modifiers\" not present inside method " + method.getName()); - } - - // Update 'modifiers' field - try { - modifiersField.setInt(method, modifiersField.getInt(method) & ~Modifier.ABSTRACT); - } catch (IllegalAccessException e) { - throw new NoAccessException("field", "modifiers"); - } - - // Lock modifications - ReflectionAccessWidener.lockModifications(this, modifiedModifiers); - } - - /** - * Updates the presence of the {@code synchronized} modifier. - * - * @param newValue new presence of the {@code synchronized} modifier - * @throws NoSuchFieldException if the {@code modifiers} field is missing - * @throws NoAccessException if access to the {@code modifiers} field has been denied - * @since v1-alpha2 - */ - public void setSynchronized(boolean newValue) throws NoSuchFieldException, NoAccessException { - // Don't do anything if the new value already matches the current value - if (isSynchronized() == newValue) - return; - - // Unlock modifications - int modifiedModifiers = ReflectionAccessWidener.unlockModifications(this); - - // Get 'modifiers' field - Field modifiersField; - try { - modifiersField = method.getClass().getDeclaredField("modifiers"); - } catch (NoSuchFieldException exception) { - throw new NoSuchFieldException("Field \"modifiers\" not present inside method " + method.getName()); - } - - // Update 'modifiers' field - try { - modifiersField.setInt(method, modifiersField.getInt(method) & ~Modifier.SYNCHRONIZED); - } catch (IllegalAccessException e) { - throw new NoAccessException("field", "modifiers"); - } - - // Lock modifications - ReflectionAccessWidener.lockModifications(this, modifiedModifiers); - } - - /** - * Returns all annotations this method has. - * - * @return array of all annotations - * @since v1-alpha2 - */ - public Annotation @NotNull [] getAnnotations() { - return method.getAnnotations(); - } - - /** - * Returns the specified annotation or {@code null} if not found. - * - * @param annotation class - * @param annotation annotation class - * @return annotation or {@code null} - * @since v1-alpha2 - */ - public T getAnnotation(@NotNull Class annotation) { - return method.getAnnotation(annotation); - } - - /** - * Returns the method's return type. - * - * @return method return type - * @since v1-alpha2 - */ - public @NotNull Class getReturnType() { - return method.getReturnType(); - } - - /** - * Returns the method's generic return type. - *

- * You can read the between {@code getReturnType} and {@code getGenericReturnType} here. - * - * @return field type - * @since v1-alpha2 - */ - public Object getGenericReturnType() { - return method.getGenericReturnType(); - } - - /** - * Invokes the method. - * - * @param args arguments to pass - * @return method return value - * @throws NoAccessException if access to the method has been denied - * @throws InvalidMethodSignatureException if the method signature is incorrect - * @throws InvocationTargetException covers exceptions thrown by the method - * @throws InstanceMethodFromStaticContextException when the target method is non-static and called from a static context - * @throws StaticInitializerException when an the static initializer fails - * @since v1-alpha5 - */ - public @Nullable Object invoke(Object... args) throws NoAccessException, InvalidMethodSignatureException, InvocationTargetException, InstanceMethodFromStaticContextException, StaticInitializerException { - Object returnValue; - - // Allow access to method - ReflectionAccessWidener.allowAccess(method); - - // Invoke method - try { - returnValue = method.invoke(parentClass, args); - } catch (IllegalAccessException exception) { - throw new NoAccessException("method", getName()); - } catch (IllegalArgumentException exception) { - throw new InvalidMethodSignatureException(getName()); - } catch (NullPointerException exception) { - throw new InstanceMethodFromStaticContextException(getName()); - } catch (ExceptionInInitializerError exception) { - throw new StaticInitializerException(exception.getCause()); - } - - // Return return value from method - return returnValue; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/reflection/package-info.java b/base/src/main/java/de/staropensource/engine/base/reflection/package-info.java deleted file mode 100644 index 1b2cc8dda..000000000 --- a/base/src/main/java/de/staropensource/engine/base/reflection/package-info.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Reflection classes, which make reflection - * on classes, methods and fields easy. - * - * @see de.staropensource.engine.base.reflection.Reflect - * @since v1-alpha2 - */ -package de.staropensource.engine.base.reflection; diff --git a/base/src/main/java/de/staropensource/engine/base/type/Color.java b/base/src/main/java/de/staropensource/engine/base/type/Color.java deleted file mode 100644 index 147d2c4c0..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/Color.java +++ /dev/null @@ -1,301 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type; - -import de.staropensource.engine.base.EngineConfiguration; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import lombok.Getter; -import lombok.Setter; -import lombok.SneakyThrows; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Range; - -import java.nio.ByteBuffer; -import java.util.HexFormat; -import java.util.Locale; - -/** - * A class dedicated to colors. - * Uses the RGBA format, with conversion methods - * supporting RGB and RGBA & RGB encoded in - * bytes or hex. - * - * @since v1-alpha6 - */ -@Getter -@Setter -@SuppressWarnings({ "JavadocDeclaration" }) -public class Color { - /** - * Contains the red color value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the red color value. - * - * @return red color value - * @since v1-alpha6 - * -- SETTER -- - * Sets the red color value. - * - * @param red new red color value - * @since v1-alpha6 - */ - private @Range(from = 0, to = 255) int red; - /** - * Contains the green color value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the green color value. - * - * @return green color value - * @since v1-alpha6 - * -- SETTER -- - * Sets the green color value. - * - * @param green new green color value - * @since v1-alpha6 - */ - private @Range(from = 0, to = 255) int green; - /** - * Contains the blue color value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the blue color value. - * - * @return blue color value - * @since v1-alpha6 - * -- SETTER -- - * Sets the blue color value. - * - * @param blue new blue color value - * @since v1-alpha6 - */ - private @Range(from = 0, to = 255) int blue; - /** - * Contains the alpha channel value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the alpha channel value. - * - * @return alpha channel value - * @since v1-alpha6 - * -- SETTER -- - * Sets the alpha channel value. - * - * @param alpha new alpha channel value - * @since v1-alpha6 - */ - private @Range(from = 0, to = 255) int alpha; - - /** - * Creates and initializes an instance of this class. - * - * @param red red color value - * @param green green color value - * @param blue blue color value - * @param alpha alpha channel value - * @since v1-alpha6 - */ - private Color(int red, int green, int blue, int alpha) { - this.red = NumberUtil.limitNumber(0, 255, red); - this.green = NumberUtil.limitNumber(0, 255, green); - this.blue = NumberUtil.limitNumber(0, 255, blue); - this.alpha = NumberUtil.limitNumber(0, 255, alpha); - } - - /** - * Converts the a set of numbers in - * the RGBA format into a new instance. - * - * @param red red color value - * @param blue blue color value - * @param green green color value - * @param alpha alpha color value - * @return new {@link Color} instance - * @since v1-alpha6 - */ - public static @NotNull Color fromRGBA(@Range(from = 0, to = 255) int red, @Range(from = 0, to = 255) int green, - @Range(from = 0, to = 255) int blue, @Range(from = 0, to = 255) int alpha) { - return new Color(red, green, blue, alpha); - } - - /** - * Converts the an array of numbers in - * the RGBA format into a new instance. - * - * @param intArray integer array - * @return new {@link Color} instance - * @throws IndexOutOfBoundsException if the array contains more or less than four integers - * @since v1-alpha6 - */ - public static @NotNull Color fromRGBA(int @NotNull [] intArray) { - if (intArray.length != 4) - throw new StringIndexOutOfBoundsException("Can't contains more or less than four integers"); - - return new Color(intArray[0], intArray[1], intArray[2], intArray[3]); - } - - /** - * Converts the a set of numbers in - * the RGB format into a new instance. - * - * @param red red color value - * @param blue blue color value - * @param green green color value - * @return new {@link Color} instance - * @since v1-alpha6 - */ - public static @NotNull Color fromRGB(@Range(from = 0, to = 255) int red, @Range(from = 0, to = 255) int green, - @Range(from = 0, to = 255) int blue) { - return new Color(red, green, blue, 255); - } - - /** - * Converts the an array of numbers in - * the RGBA format into a new instance. - * - * @param intArray integer array - * @return new {@link Color} instance - * @throws IndexOutOfBoundsException if the array contains more or less than four integers - * @since v1-alpha6 - */ - public static @NotNull Color fromRGB(int @NotNull [] intArray) { - if (intArray.length != 3) - throw new StringIndexOutOfBoundsException("Can't contains more or less than four integers"); - - return new Color(intArray[0], intArray[1], intArray[2], 255); - } - - /** - * Converts an array of bytes into a new instance. - * - * @param bytes byte array - * @return new {@link Color} instance - * @throws IndexOutOfBoundsException if the array contains less than three or more than four bytes - * @since v1-alpha6 - */ - public static @NotNull Color fromBytes(byte @NotNull [] bytes) throws IndexOutOfBoundsException { - if (bytes.length == 3) - return new Color(bytes[0] & 0xFF, bytes[1] & 0xFF, bytes[2] & 0xFF, 255); - else if (bytes.length == 4) - return new Color(bytes[0] & 0xFF, bytes[1] & 0xFF, bytes[2] & 0xFF, bytes[3] & 0xFF); - else - throw new StringIndexOutOfBoundsException("Can't contain less than three or more than four bytes"); - } - - /** - * Converts a hex string into a new instance. - * - * @param hexString hex string - * @return new {@link Color} instance - * @throws IndexOutOfBoundsException if the string contains less than three or more than four bytes - * @since v1-alpha6 - */ - public static @NotNull Color fromHex(@NotNull String hexString) throws IndexOutOfBoundsException { - return fromBytes(HexFormat.of().parseHex(hexString)); - } - - /** - * Creates an identical copy of this instance. - * - * @return identical copy - * @since v1-alpha6 - */ - @SneakyThrows - public @NotNull Color clone() { - return (Color) super.clone(); - } - - /** - * Returns a string representation of this instance. - * - * @return string representation - * @since v1-alpha6 - */ - @Override - public @NotNull String toString() { - return (EngineConfiguration.getInstance().isHideFullTypePath() - ? getClass().getName().replace(getClass().getPackage() + ".", "") - : getClass().getName()) - + "(r=" + red + " g=" + green + " b=" + blue + " a=" + alpha + ")"; - } - - /** - * Converts the colors represented by - * this instance into an integer array - * in the RGBA format. - * - * @return {@code int} array with RGBA values - * @since v1-alpha6 - */ - public int @NotNull [] toRGBA() { - return new int[]{ red, green, blue, alpha }; - } - - /** - * Converts the colors represented by - * this instance into an integer array - * in the RGB format. - * - * @return {@code int} array with RGB values - * @since v1-alpha6 - */ - public int @NotNull [] toRGB() { - return new int[]{ red, green, blue }; - } - - /** - * Converts the colors represented by - * this instance into a byte array. - * - * @param includeAlpha whether to include alpha or not - * @return RGBA or RGB format as a byte array - * @since v1-alpha6 - */ - public byte @NotNull [] toBytes(boolean includeAlpha) { - ByteBuffer buffer = ByteBuffer.allocate(includeAlpha ? 4 : 3); - - buffer - .put((byte) red) - .put((byte) green) - .put((byte) blue); - - if (includeAlpha) - buffer.put((byte) alpha); - - return buffer.array(); - } - - /** - * Converts the colors represented by - * this instance into the hex format. - * - * @param includeAlpha whether to include alpha or not - * @return RGBA or RGB format as a hex string - * @since v1-alpha6 - */ - public @NotNull String toHex(boolean includeAlpha) { - return HexFormat.of().formatHex(toBytes(includeAlpha)).toUpperCase(Locale.ROOT); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/DependencyVector.java b/base/src/main/java/de/staropensource/engine/base/type/DependencyVector.java deleted file mode 100644 index 26c882748..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/DependencyVector.java +++ /dev/null @@ -1,349 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type; - -import de.staropensource.engine.base.implementable.VersioningSystem; -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import de.staropensource.engine.base.utility.DependencyResolver; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.lang.reflect.InvocationTargetException; -import java.util.HashSet; -import java.util.Set; - -/** - * Represents a dependency vector, used by {@link DependencyResolver}. - * - * @since v1-alpha1 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public class DependencyVector { - /** - * Contains the identifier of this vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the vector identifier. - * - * @return vector identifier - * @since v1-alpha1 - */ - protected @NotNull String identifier; - - /** - * Contains which versioning system this vector uses. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the versioning system this vector uses. - * - * @return versioning system in use - * @since v1-alpha1 - */ - protected @NotNull Class versioningSystem; - - /** - * Contains the version of this vector. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the vector version. - * - * @return vector version - * @since v1-alpha1 - */ - protected @NotNull String version; - - /** - * Contains a set of all identifiers and their versions this vector depends on. - * - * @since v1-alpha4 - * -- GETTER -- - * Contains a set of all identifiers and their versions this vector depends on. - * - * @return dependencies - * @since v1-alpha1 - */ - protected @NotNull Set<@NotNull String> dependencies; - - /** - * Contains a set of all identifiers and their versions this vector provides. - * - * @since v1-alpha4 - * -- GETTER -- - * Contains a set of all identifiers and their versions this vector provides. - * - * @return provided vectors - * @since v1-alpha4 - */ - protected @NotNull Set<@NotNull String> provides; - - /** - * Creates and initializes an instance of this class. - * - * @param identifier identifier (name for example) - * @param versioningSystem versioning system to use - * @param version version - * @param dependencies dependencies in the usual format ({@code dependencyA}, {@code dependencyB=5.1}, {@code dependencyC>3.1}, {@code dependencyD<6.1}, {@code dependencyE>5.3<5.4}) - * @param provides vectors this vector provides, in the usual format ({@code identifier=version}) - * @since v1-alpha4 - */ - protected DependencyVector(@NotNull String identifier, @NotNull Class versioningSystem, @NotNull String version, @NotNull Set<@NotNull String> dependencies, @NotNull Set<@NotNull String> provides) { - this.identifier = identifier; - this.versioningSystem = versioningSystem; - this.version = version; - this.dependencies = dependencies; - this.provides = provides; - } - - /** - * Provides an API for building {@link DependencyVector}s more easily. - * - * @since v1-alpha4 - */ - @SuppressWarnings({ "unused" }) - public static class Builder { - /** - * Contains the identifier of the new vector. - * - * @see DependencyVector#identifier - * @since v1-alpha4 - */ - private @Nullable String identifier; - - /** - * Contains which versioning system the new vector should use. - * - * @see DependencyVector#versioningSystem - * @since v1-alpha4 - */ - private @Nullable Class versioningSystem; - - /** - * Contains the version of the new vector. - * - * @see DependencyVector#version - * @since v1-alpha4 - */ - private @Nullable String version; - - /** - * Contains a set of all identifiers and their versions the new vector should depend on. - * - * @see DependencyVector#dependencies - * @since v1-alpha4 - */ - private @Nullable Set<@NotNull String> dependencies; - - /** - * Contains a set of all identifiers and their versions the new vector should provide. - * - * @see DependencyVector#provides - * @since v1-alpha4 - */ - private @Nullable Set<@NotNull String> provides; - - /** - * Constructs this class. - * - * @since v1-alpha4 - */ - public Builder() {} - - /** - * Builds a new {@link DependencyVector} instance. - * - * @return new {@link DependencyVector} instance - * @throws IllegalStateException if {@link #identifier}, {@link #versioningSystem} or {@link #version} is unset or the version string is invalid - * @since v1-alpha4 - */ - public @NotNull DependencyVector build() throws IllegalStateException { - // Check for required fields - checkRequiredFields(); - - // Set defaults - setDefaults(); - - //noinspection DataFlowIssue // IDE is dumb - return new DependencyVector(identifier, versioningSystem, version, dependencies, provides); - } - - /** - * Checks for required fields. - * - * @since v1-alpha4 - */ - protected void checkRequiredFields() throws IllegalStateException { - if (identifier == null || identifier.isBlank()) - throw new IllegalStateException("The identifier is unset"); - if (versioningSystem == null) - throw new IllegalStateException("The versioning system is unset"); - if (version == null || version.isBlank()) - throw new IllegalStateException("The version is unset"); - - // Check if version string is valid - try { - versioningSystem.getDeclaredConstructor(String.class).newInstance(version); - } catch (InvocationTargetException exception) { - if (exception.getTargetException().getClass() == InvalidVersionStringException.class) - throw new IllegalStateException("The version string is invalid: " + exception.getTargetException().getMessage()); - else - throw new IllegalStateException("Version string validation failed: Constructor threw " + exception.getTargetException().getClass().getName() + ": " + exception.getTargetException().getMessage()); - } catch (Exception exception) { - throw new IllegalStateException("Version string validation failed: Threw " + exception.getClass().getName() + ": " + exception.getMessage()); - } - } - - /** - * Allows extenders to set defaults. - * - * @since v1-alpha4 - */ - protected void setDefaults() { - if (dependencies == null) - dependencies = new HashSet<>(); - if (provides == null) - provides = new HashSet<>(); - } - - /** - * Returns the identifier of the new vector. - * - * @return identifier - * @see DependencyVector#identifier - * @since v1-alpha4 - */ - public final @Nullable String getIdentifier() { - return identifier; - } - - /** - * Returns the versioning system the new vector should use. - * - * @return versioning system to use - * @see DependencyVector#versioningSystem - * @since v1-alpha4 - */ - public final @Nullable Class getVersioningSystem() { - return versioningSystem; - } - - /** - * Returns the version of the new vector. - * - * @return vector version - * @see DependencyVector#version - * @since v1-alpha4 - */ - public final @Nullable String getVersion() { - return version; - } - - /** - * Contains a set of all identifiers and their versions the new vector should depend on. - * - * @return dependencies - * @see DependencyVector#dependencies - * @since v1-alpha4 - */ - public final @Nullable Set<@NotNull String> getDependencies() { - return dependencies; - } - - /** - * Contains a set of all identifiers and their versions the new vector should provide. - * - * @return provided vectors - * @see DependencyVector#provides - * @since v1-alpha4 - */ - public final @Nullable Set<@NotNull String> getProvides() { - return provides; - } - - /** - * Sets the identifier of the new vector. - * - * @param identifier new identifier - * @return builder instance - * @see DependencyVector#identifier - * @since v1-alpha4 - */ - public final @NotNull DependencyVector.Builder setIdentifier(@Nullable String identifier) { - this.identifier = identifier; - return this; - } - - /** - * Sets the versioning system the new vector should use. - * - * @param versioningSystem versioning system to use - * @return builder instance - * @see DependencyVector#versioningSystem - * @since v1-alpha4 - */ - public final @NotNull DependencyVector.Builder setVersioningSystem(@Nullable Class versioningSystem) { - this.versioningSystem = versioningSystem; - return this; - } - - /** - * Sets the version of the new vector. - * - * @param version vector version - * @return builder instance - * @see DependencyVector#version - * @since v1-alpha4 - */ - public final @NotNull DependencyVector.Builder setVersion(@Nullable String version) { - this.version = version; - return this; - } - - /** - * Sets a set of all identifiers and their versions the new vector should depend on. - * - * @param dependencies dependencies - * @return builder instance - * @see DependencyVector#dependencies - * @since v1-alpha4 - */ - public final @NotNull DependencyVector.Builder setDependencies(@Nullable Set<@NotNull String> dependencies) { - this.dependencies = dependencies; - return this; - } - - /** - * Sets a set of all identifiers and their versions the new vector should provide. - * - * @param provides provided vectors - * @return builder instance - * @see DependencyVector#provides - * @since v1-alpha4 - */ - public final @NotNull DependencyVector.Builder setProvides(@Nullable Set<@NotNull String> provides) { - this.provides = provides; - return this; - } - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/EngineState.java b/base/src/main/java/de/staropensource/engine/base/type/EngineState.java deleted file mode 100644 index a83d3bf33..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/EngineState.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type; - -/** - * Determines in which state the engine is currently in. - * - * @since v1-alpha2 - */ -public enum EngineState { - /** - * Indicates that the state of the engine is - * currently unknown. The engine is most likely - * not initialized yet. - * - * @since v1-alpha2 - */ - UNKNOWN, - - /** - * Indicates that the engine is largely - * uninitialized and unsafe to use. - * - * @since v1-alpha8 - */ - EARLY_STARTUP, - - /** - * Indicates that the core engine has fully - * initialized, except for all subsystems. - * - * @since v1-alpha8 - */ - STARTUP, - - /** - * Indicates that the engine is running - * and operating normally. - * - * @since v1-alpha2 - */ - RUNNING, - - /** - * Indicates that the engine or the - * application has crashed. - * - * @since v1-alpha2 - */ - CRASHED, - - /** - * Indicates that the engine is shutting - * down. The engine is unusable in this - * state and should not be used. - * - * @since v1-alpha8 - */ - SHUTDOWN, -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/InternalAccessArea.java b/base/src/main/java/de/staropensource/engine/base/type/InternalAccessArea.java deleted file mode 100644 index 2f9ae3ac9..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/InternalAccessArea.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type; - -import de.staropensource.engine.base.EngineInternals; -import de.staropensource.engine.base.implementable.Event; -import de.staropensource.engine.base.implementable.ShutdownHandler; -import org.jetbrains.annotations.NotNull; - -/** - * Specifies multiple areas of internal engine access. - * Used for restricting access of internals. - * - * @see EngineInternals#restrictAccess(InternalAccessArea) - * @since v1-alpha4 - */ -public enum InternalAccessArea { - /** - * Refers to all areas. - * - * @since v1-alpha4 - */ - ALL, - - /** - * Refers to all write-only areas. - * - * @since v1-alpha4 - */ - ALL_WRITE, - - /** - * Refers to all read-only areas. - * - * @since v1-alpha4 - */ - ALL_READ, - - /** - * Refers to all essential read-only areas. - *

- * Essential read-only areas are IIAs which are - * very important and should not be restricted. - * - * @since v1-alpha5 - */ - ALL_READ_ESSENTIAL, - - /** - * Refers to the toggling of the JVM shutdown hook, which - * prevents JVM shutdowns without the engine first shutting down. - * - * @since v1-alpha4 - */ - SAFETY_SHUTDOWN_HOOK_UPDATE, - - /** - * Refers to the getting of the engine's shutdown handler. - * The {@link ShutdownHandler} handles the shutdown sequence - * after the engine has been shut down. - * - * @since v1-alpha4 - */ - SHUTDOWN_HANDLER_GET, - - /** - * Refers to the updating of the engine's shutdown handler. - * The {@link ShutdownHandler} handles the shutdown sequence - * after the engine has been shut down. - * - * @since v1-alpha4 - */ - SHUTDOWN_HANDLER_UPDATE, - - /** - * Refers to the getting of the flag controlling whether - * automatic {@link Event} classpath searching should be performed. - * - * @since v1-alpha5 - */ - REFLECTIVE_CLASSPATH_SCANNING_GET, - - /** - * Refers to the overriding of the flag controlling whether - * automatic {@link Event} classpath searching should be performed. - * - * @since v1-alpha5 - */ - REFLECTIVE_CLASSPATH_SCANNING_OVERRIDE; - - /** - * Returns all read-only areas. - * - * @return array containing all read-only areas - * @since v1-alpha4 - */ - public static @NotNull InternalAccessArea @NotNull [] valuesReadOnly() { - return new InternalAccessArea[]{ - SHUTDOWN_HANDLER_GET, - }; - } - - /** - * Returns all essential read-only areas. - * - * @return array containing all essential read-only areas - * @since v1-alpha5 - */ - public static @NotNull InternalAccessArea @NotNull [] valuesEssentialReadOnly() { - return new InternalAccessArea[]{ - REFLECTIVE_CLASSPATH_SCANNING_GET, - }; - } - - /** - * Returns all write-only areas. - * - * @return array containing all write-only areas - * @since v1-alpha4 - */ - public static @NotNull InternalAccessArea @NotNull [] valuesWriteOnly() { - return new InternalAccessArea[]{ - SAFETY_SHUTDOWN_HOOK_UPDATE, - SHUTDOWN_HANDLER_UPDATE, - REFLECTIVE_CLASSPATH_SCANNING_OVERRIDE, - }; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/Tristate.java b/base/src/main/java/de/staropensource/engine/base/type/Tristate.java deleted file mode 100644 index 4464ef1df..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/Tristate.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type; - -import de.staropensource.engine.base.exception.TristateConversionException; -import org.jetbrains.annotations.NotNull; - -/** - * Just a {@link Boolean}, but it can be {@link #UNSET}. - * - * @since v1-alpha1 - */ -public enum Tristate { - /** - * Defines an unset state. - * - * @since v1-alpha1 - */ - UNSET, - - /** - * Defines a true state. - * - * @since v1-alpha1 - */ - TRUE, - - /** - * Defines a false state. - * - * @since v1-alpha1 - */ - FALSE; - - /** - * Converts the specified {@link Boolean} into a {@link Tristate}. - * - * @param bool boolean to convert - * @return {@link Tristate} representation of the specified boolean - * @since v1-alpha9 - */ - public static @NotNull Tristate toTristate(boolean bool) { - if (bool) return Tristate.TRUE; - else return Tristate.FALSE; - } - - /** - * Converts the specified {@link Integer} into a {@link Tristate}. - * - * @param integer integer to convert - * @return {@link Tristate} representation of the specified integer - * @since v1-alpha9 - */ - public static @NotNull Tristate toTristate(int integer) { - return switch (integer) { - case 0 -> Tristate.FALSE; - case 1 -> Tristate.TRUE; - case 2 -> Tristate.UNSET; - default -> throw new IndexOutOfBoundsException("Supplied integer '" + integer + "' is not in range 0-2"); - }; - } - - /** - * Converts this {@link Tristate} into a {@link Boolean}. - * Make sure to check for {@link #UNSET} first. - * - * @return trimmed boolean representation of this {@link Tristate} - * @throws TristateConversionException on encountering {@link #UNSET} - * @since v1-alpha9 - */ - public boolean toBoolean() { - return switch (this) { - case UNSET -> throw new TristateConversionException(); - case TRUE -> true; - case FALSE -> false; - }; - } - - /** - * Converts this {@link Tristate} into an {@link Integer}. - * - * @return integer representation of this {@link Tristate} - * @throws TristateConversionException when encountering {@link #UNSET} - * @since v1-alpha9 - */ - public int toInteger() { - return switch (this) { - case FALSE -> 0; - case TRUE -> 1; - case UNSET -> 2; - }; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/VersionType.java b/base/src/main/java/de/staropensource/engine/base/type/VersionType.java deleted file mode 100644 index cbbd206fa..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/VersionType.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type; - -import de.staropensource.engine.base.implementation.versioning.StarOpenSourceVersioningSystem; - -/** - * Provides all available version types as specified - * by the StarOpenSource Versioning System v2. - * - * @see StarOpenSourceVersioningSystem - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public enum VersionType { - /** - * Indicates that the next version is in the early stages of development and is highly experimental. Behaviour may break at and time and may contain bugs and issues. - * - * @since v1-alpha0 - */ - ALPHA, - - /** - * Indicates that the next version is in development and is experimental. It may contain several bugs and issues. - * - * @since v1-alpha0 - */ - BETA, - - /** - * Indicates that the application is nearing the next release. The application may be stable enough for regular usage but may need some testing to squash all remaining bugs. - * - * @since v1-alpha0 - */ - RELEASE_CANDIDATE, - - /** - * Indicates that the application is fully tested, working and stable. - * - * @since v1-alpha0 - */ - RELEASE -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/logging/package-info.java b/base/src/main/java/de/staropensource/engine/base/type/logging/package-info.java deleted file mode 100644 index af923eb9d..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/logging/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Data types related to logging. - * - * @see de.staropensource.engine.base.logging - * @since v1-alpha1 - */ -package de.staropensource.engine.base.type.logging; diff --git a/base/src/main/java/de/staropensource/engine/base/type/package-info.java b/base/src/main/java/de/staropensource/engine/base/type/package-info.java deleted file mode 100644 index 8918462f1..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Data types in form of enums and classes. - * - * @since v1-alpha0 - */ -package de.staropensource.engine.base.type; diff --git a/base/src/main/java/de/staropensource/engine/base/type/reflection/ClassType.java b/base/src/main/java/de/staropensource/engine/base/type/reflection/ClassType.java deleted file mode 100644 index 7852fe999..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/reflection/ClassType.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type.reflection; - -/** - * Identifies a class' type. - * - * @since v1-alpha2 - */ -public enum ClassType { - /** - * Identifies the class as a {@code class} class. - * - * @since v1-alpha2 - */ - CLASS, - - /** - * Identifies the class as an {@code interface} class. - * - * @since v1-alpha2 - */ - INTERFACE, - - /** - * Identifies the class as an {@code enum} class. - * - * @since v1-alpha2 - */ - ENUM, - - /** - * Identifies the class as a {@code record} class. - * - * @since v1-alpha2 - */ - RECORD, - - /** - * Identifies the class as an unknown type the engine does not yet know of. - * - * @since v1-alpha2 - */ - UNKNOWN, -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/reflection/VisibilityModifier.java b/base/src/main/java/de/staropensource/engine/base/type/reflection/VisibilityModifier.java deleted file mode 100644 index 38c0aba58..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/reflection/VisibilityModifier.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type.reflection; - -import de.staropensource.engine.base.exception.UnexpectedCheckEndException; - -import java.lang.reflect.Modifier; - -/** - * Contains which visibility a class, method or field has. - * - * @since v1-alpha2 - */ -public enum VisibilityModifier { - /** - * Marks the class, method or field as public. - * - * @since v1-alpha2 - */ - PUBLIC, - - /** - * Marks the class, method or field as protected. - * - * @since v1-alpha2 - */ - PROTECTED, - - /** - * Marks the class, method or field as private. - * - * @since v1-alpha2 - */ - PRIVATE; - - /** - * Converts the visibility into a usable modifier bit. - * - * @return int - * @since v1-alpha2 - */ - public int getModifier() { - switch (this) { - case PUBLIC -> { - return Modifier.PUBLIC; - } - case PROTECTED -> { - return Modifier.PROTECTED; - } - case PRIVATE -> { - return Modifier.PRIVATE; - } - case null, default -> throw new UnexpectedCheckEndException("converting the visibility into a modifier"); - } - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/reflection/package-info.java b/base/src/main/java/de/staropensource/engine/base/type/reflection/package-info.java deleted file mode 100644 index 6b787503a..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/reflection/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Data types related to reflection. - * - * @see de.staropensource.engine.base.reflection - * @since v1-alpha2 - */ -package de.staropensource.engine.base.type.reflection; diff --git a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec2d.java b/base/src/main/java/de/staropensource/engine/base/type/vector/Vec2d.java deleted file mode 100644 index d5c70ee80..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec2d.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type.vector; - -import de.staropensource.engine.base.EngineConfiguration; -import lombok.Getter; -import lombok.Setter; -import lombok.SneakyThrows; -import org.jetbrains.annotations.NotNull; - -/** - * Represents a 2D double Vector. - * - * @since v1-alpha0 - */ -@Getter -@Setter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Vec2d { - /** - * The X axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the X axis value. - * - * @return X axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the X axis value. - * - * @param x X axis value - * @since v1-alpha0 - */ - private double x; - - /** - * The Y axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the Y axis value. - * - * @return Y axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the Y axis value. - * - * @param y Y axis value - * @since v1-alpha0 - */ - private double y; - - /** - * Creates and initializes a new 2D double vector. - * - * @param x X axis value - * @param y Y axis value - * @since v1-alpha0 - */ - public Vec2d(double x, double y) { - this.x = x; - this.y = y; - } - - /** - * Creates an identical copy of this vector. - * - * @return identical copy - * @since v1-alpha2 - */ - @SneakyThrows - public @NotNull Vec2d clone() { - return (Vec2d) super.clone(); - } - - /** - * Returns a string representation of this vector. - * - * @return string representation - * @since v1-alpha2 - */ - @Override - public @NotNull String toString() { - return (EngineConfiguration.getInstance().isHideFullTypePath() - ? getClass().getName().replace(getClass().getPackage() + ".", "") - : getClass().getName()) - + "(x=" + x + " y=" + y + ")"; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec2f.java b/base/src/main/java/de/staropensource/engine/base/type/vector/Vec2f.java deleted file mode 100644 index 63e5c4d5f..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec2f.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type.vector; - -import de.staropensource.engine.base.EngineConfiguration; -import lombok.Getter; -import lombok.Setter; -import lombok.SneakyThrows; -import org.jetbrains.annotations.NotNull; - -/** - * Represents a 2D float Vector. - * - * @since v1-alpha0 - */ -@Getter -@Setter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Vec2f { - /** - * The X axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the X axis value. - * - * @return X axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the X axis value. - * - * @param x X axis value - * @since v1-alpha0 - */ - private float x; - - /** - * The Y axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the Y axis value. - * - * @return Y axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the Y axis value. - * - * @param y Y axis value - * @since v1-alpha0 - */ - private float y; - - /** - * Creates and initializes a new 2D float vector. - * - * @param x X axis value - * @param y Y axis value - * @since v1-alpha0 - */ - public Vec2f(float x, float y) { - this.x = x; - this.y = y; - } - - /** - * Creates an identical copy of this vector. - * - * @return identical copy - * @since v1-alpha2 - */ - @SneakyThrows - public @NotNull Vec2f clone() { - return (Vec2f) super.clone(); - } - - /** - * Returns a string representation of this vector. - * - * @return string representation - * @since v1-alpha2 - */ - @Override - public @NotNull String toString() { - return (EngineConfiguration.getInstance().isHideFullTypePath() - ? getClass().getName().replace(getClass().getPackage() + ".", "") - : getClass().getName()) - + "(x=" + x + " y=" + y + ")"; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec2i.java b/base/src/main/java/de/staropensource/engine/base/type/vector/Vec2i.java deleted file mode 100644 index e7a6f0d64..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec2i.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type.vector; - -import de.staropensource.engine.base.EngineConfiguration; -import lombok.Getter; -import lombok.Setter; -import lombok.SneakyThrows; -import org.jetbrains.annotations.NotNull; - -/** - * Represents a 2D integer Vector. - * - * @since v1-alpha0 - */ -@Getter -@Setter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Vec2i implements Cloneable { - /** - * The X axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the X axis value. - * - * @return the X axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the X axis value. - * - * @param x X axis value - * @since v1-alpha0 - */ - private int x; - - /** - * The Y axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the Y axis value. - * - * @return Y axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the Y axis value. - * - * @param y Y axis value - * @since v1-alpha0 - */ - private int y; - - /** - * Creates and initializes a new 2D integer vector. - * - * @param x X axis value - * @param y Y axis value - * @since v1-alpha0 - */ - public Vec2i(int x, int y) { - this.x = x; - this.y = y; - } - - /** - * Creates an identical copy of this vector. - * - * @return identical copy - * @since v1-alpha2 - */ - @SneakyThrows - public @NotNull Vec2i clone() { - return (Vec2i) super.clone(); - } - - /** - * Returns a string representation of this vector. - * - * @return string representation - * @since v1-alpha2 - */ - @Override - public @NotNull String toString() { - return (EngineConfiguration.getInstance().isHideFullTypePath() - ? getClass().getName().replace(getClass().getPackage() + ".", "") - : getClass().getName()) - + "(x=" + x + " y=" + y + ")"; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec3d.java b/base/src/main/java/de/staropensource/engine/base/type/vector/Vec3d.java deleted file mode 100644 index c679d87bd..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec3d.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type.vector; - -import de.staropensource.engine.base.EngineConfiguration; -import lombok.Getter; -import lombok.Setter; -import lombok.SneakyThrows; -import org.jetbrains.annotations.NotNull; - -/** - * Represents a 3D double Vector. - * - * @since v1-alpha0 - */ -@Getter -@Setter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Vec3d { - /** - * The X axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the X axis value. - * - * @return X axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the X axis value. - * - * @param x X axis value - * @since v1-alpha0 - */ - private double x; - - /** - * The Y axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the Y axis value. - * - * @return Y axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the Y axis value. - * - * @param y Y axis value - * @since v1-alpha0 - */ - private double y; - - /** - * The Z axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the Z axis value. - * - * @return Z axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the Z axis value. - * - * @param z Z axis value - * @since v1-alpha0 - */ - private double z; - - /** - * Creates and initializes a new 3D double vector. - * - * @param x X axis value - * @param y Y axis value - * @param z Z axis value - * @since v1-alpha0 - */ - public Vec3d(double x, double y, double z) { - this.x = x; - this.y = y; - this.z = z; - } - - /** - * Creates an identical copy of this vector. - * - * @return identical copy - * @since v1-alpha2 - */ - @SneakyThrows - public @NotNull Vec3d clone() { - return (Vec3d) super.clone(); - } - - /** - * Returns a string representation of this vector. - * - * @return string representation - * @since v1-alpha2 - */ - @Override - public @NotNull String toString() { - return (EngineConfiguration.getInstance().isHideFullTypePath() - ? getClass().getName().replace(getClass().getPackage() + ".", "") - : getClass().getName()) - + "(x=" + x + " y=" + y + " z=" + z + ")"; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec3f.java b/base/src/main/java/de/staropensource/engine/base/type/vector/Vec3f.java deleted file mode 100644 index 89040c28e..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec3f.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type.vector; - -import de.staropensource.engine.base.EngineConfiguration; -import lombok.Getter; -import lombok.Setter; -import lombok.SneakyThrows; -import org.jetbrains.annotations.NotNull; - -/** - * Represents a 3D float Vector. - * - * @since v1-alpha0 - */ -@Getter -@Setter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Vec3f { - /** - * The X axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the X axis value. - * - * @return X axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the X axis value. - * - * @param x X axis value - * @since v1-alpha0 - */ - private float x; - - /** - * The Y axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the Y axis value. - * - * @return Y axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the Y axis value. - * - * @param y Y axis value - * @since v1-alpha0 - */ - private float y; - - /** - * The Z axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the Z axis value. - * - * @return Z axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the Z axis value. - * - * @param z Z axis value - * @since v1-alpha0 - */ - private float z; - - /** - * Creates and initializes a new 3D float vector. - * - * @param x X axis value - * @param y Y axis value - * @param z Z axis value - * @since v1-alpha0 - */ - public Vec3f(float x, float y, float z) { - this.x = x; - this.y = y; - this.z = z; - } - - /** - * Creates an identical copy of this vector. - * - * @return identical copy - * @since v1-alpha2 - */ - @SneakyThrows - public @NotNull Vec3f clone() { - return (Vec3f) super.clone(); - } - - /** - * Returns a string representation of this vector. - * - * @return string representation - * @since v1-alpha2 - */ - @Override - public @NotNull String toString() { - return (EngineConfiguration.getInstance().isHideFullTypePath() - ? getClass().getName().replace(getClass().getPackage() + ".", "") - : getClass().getName()) - + "(x=" + x + " y=" + y + " z=" + z + ")"; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec3i.java b/base/src/main/java/de/staropensource/engine/base/type/vector/Vec3i.java deleted file mode 100644 index 598a7963a..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec3i.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type.vector; - -import de.staropensource.engine.base.EngineConfiguration; -import lombok.Getter; -import lombok.Setter; -import lombok.SneakyThrows; -import org.jetbrains.annotations.NotNull; - -/** - * Represents a 3D integer Vector. - * - * @since v1-alpha0 - */ -@Getter -@Setter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Vec3i { - /** - * The X axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the X axis value. - * - * @return X axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the X axis value. - * - * @param x X axis value - * @since v1-alpha0 - */ - private int x; - - /** - * The Y axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the Y axis value. - * - * @return Y axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the Y axis value. - * - * @param y Y axis value - * @since v1-alpha0 - */ - private int y; - - /** - * The Z axis value. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the Z axis value. - * - * @return Z axis value - * @since v1-alpha0 - * -- SETTER -- - * Sets the Z axis value. - * - * @param z Z axis value - * @since v1-alpha0 - */ - private int z; - - /** - * Creates and initializes a new 3D integer vector. - * - * @param x X axis value - * @param y Y axis value - * @param z Z axis value - * @since v1-alpha0 - */ - public Vec3i(int x, int y, int z) { - this.x = x; - this.y = y; - this.z = z; - } - - /** - * Creates an identical copy of this vector. - * - * @return identical copy - * @since v1-alpha2 - */ - @SneakyThrows - public @NotNull Vec3i clone() { - return (Vec3i) super.clone(); - } - - /** - * Returns a string representation of this vector. - * - * @return string representation - * @since v1-alpha2 - */ - @Override - public @NotNull String toString() { - return (EngineConfiguration.getInstance().isHideFullTypePath() - ? getClass().getName().replace(getClass().getPackage() + ".", "") - : getClass().getName()) - + "(x=" + x + " y=" + y + " z=" + z + ")"; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec4d.java b/base/src/main/java/de/staropensource/engine/base/type/vector/Vec4d.java deleted file mode 100644 index 65863b0cb..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec4d.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type.vector; - -import de.staropensource.engine.base.EngineConfiguration; -import lombok.Getter; -import lombok.Setter; -import lombok.SneakyThrows; -import org.jetbrains.annotations.NotNull; - -/** - * Represents a 4D double Vector. - * - * @since v1-alpha6 - */ -@Getter -@Setter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Vec4d { - /** - * The X axis value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the X axis value. - * - * @return X axis value - * @since v1-alpha6 - * -- SETTER -- - * Sets the X axis value. - * - * @param x X axis value - * @since v1-alpha6 - */ - private double x; - - /** - * The Y axis value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the Y axis value. - * - * @return Y axis value - * @since v1-alpha6 - * -- SETTER -- - * Sets the Y axis value. - * - * @param y Y axis value - * @since v1-alpha6 - */ - private double y; - - /** - * The Z axis value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the Z axis value. - * - * @return Z axis value - * @since v1-alpha6 - * -- SETTER -- - * Sets the Z axis value. - * - * @param z Z axis value - * @since v1-alpha6 - */ - private double z; - - /** - * The W axis value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the W axis value. - * - * @return W axis value - * @since v1-alpha6 - * -- SETTER -- - * Sets the W axis value. - * - * @param w W axis value - * @since v1-alpha6 - */ - private double w; - - /** - * Creates and initializes a new 4D double vector. - * - * @param x X axis value - * @param y Y axis value - * @param z Z axis value - * @param w W axis value - * @since v1-alpha6 - */ - public Vec4d(double x, double y, double z, double w) { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - /** - * Creates an identical copy of this vector. - * - * @return identical copy - * @since v1-alpha6 - */ - @SneakyThrows - public @NotNull Vec4d clone() { - return (Vec4d) super.clone(); - } - - /** - * Returns a string representation of this vector. - * - * @return string representation - * @since v1-alpha6 - */ - @Override - public @NotNull String toString() { - return (EngineConfiguration.getInstance().isHideFullTypePath() - ? getClass().getName().replace(getClass().getPackage() + ".", "") - : getClass().getName()) - + "(x=" + x + " y=" + y + " z=" + z + " w=" + w + ")"; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec4f.java b/base/src/main/java/de/staropensource/engine/base/type/vector/Vec4f.java deleted file mode 100644 index ed5b33773..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec4f.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type.vector; - -import de.staropensource.engine.base.EngineConfiguration; -import lombok.Getter; -import lombok.Setter; -import lombok.SneakyThrows; -import org.jetbrains.annotations.NotNull; - -/** - * Represents a 4D float Vector. - * - * @since v1-alpha6 - */ -@Getter -@Setter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Vec4f { - /** - * The X axis value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the X axis value. - * - * @return X axis value - * @since v1-alpha6 - * -- SETTER -- - * Sets the X axis value. - * - * @param x X axis value - * @since v1-alpha6 - */ - private float x; - - /** - * The Y axis value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the Y axis value. - * - * @return Y axis value - * @since v1-alpha6 - * -- SETTER -- - * Sets the Y axis value. - * - * @param y Y axis value - * @since v1-alpha6 - */ - private float y; - - /** - * The Z axis value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the Z axis value. - * - * @return Z axis value - * @since v1-alpha6 - * -- SETTER -- - * Sets the Z axis value. - * - * @param z Z axis value - * @since v1-alpha6 - */ - private float z; - - /** - * The W axis value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the W axis value. - * - * @return W axis value - * @since v1-alpha6 - * -- SETTER -- - * Sets the W axis value. - * - * @param w W axis value - * @since v1-alpha6 - */ - private float w; - - /** - * Creates and initializes a new 4D float vector. - * - * @param x X axis value - * @param y Y axis value - * @param z Z axis value - * @param w W axis value - * @since v1-alpha6 - */ - public Vec4f(float x, float y, float z, float w) { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - /** - * Creates an identical copy of this vector. - * - * @return identical copy - * @since v1-alpha6 - */ - @SneakyThrows - public @NotNull Vec4f clone() { - return (Vec4f) super.clone(); - } - - /** - * Returns a string representation of this vector. - * - * @return string representation - * @since v1-alpha6 - */ - @Override - public @NotNull String toString() { - return (EngineConfiguration.getInstance().isHideFullTypePath() - ? getClass().getName().replace(getClass().getPackage() + ".", "") - : getClass().getName()) - + "(x=" + x + " y=" + y + " z=" + z + " w=" + w + ")"; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec4i.java b/base/src/main/java/de/staropensource/engine/base/type/vector/Vec4i.java deleted file mode 100644 index a25c846eb..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/vector/Vec4i.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.type.vector; - -import de.staropensource.engine.base.EngineConfiguration; -import lombok.Getter; -import lombok.Setter; -import lombok.SneakyThrows; -import org.jetbrains.annotations.NotNull; - -/** - * Represents a 4D integer Vector. - * - * @since v1-alpha6 - */ -@Getter -@Setter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Vec4i { - /** - * The X axis value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the X axis value. - * - * @return X axis value - * @since v1-alpha6 - * -- SETTER -- - * Sets the X axis value. - * - * @param x X axis value - * @since v1-alpha6 - */ - private int x; - - /** - * The Y axis value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the Y axis value. - * - * @return Y axis value - * @since v1-alpha6 - * -- SETTER -- - * Sets the Y axis value. - * - * @param y Y axis value - * @since v1-alpha6 - */ - private int y; - - /** - * The Z axis value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the Z axis value. - * - * @return Z axis value - * @since v1-alpha6 - * -- SETTER -- - * Sets the Z axis value. - * - * @param z Z axis value - * @since v1-alpha6 - */ - private int z; - - /** - * The W axis value. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the W axis value. - * - * @return W axis value - * @since v1-alpha6 - * -- SETTER -- - * Sets the W axis value. - * - * @param w W axis value - * @since v1-alpha6 - */ - private int w; - - /** - * Creates and initializes a new 4D integer vector. - * - * @param x X axis value - * @param y Y axis value - * @param z Z axis value - * @param w W axis value - * @since v1-alpha6 - */ - public Vec4i(int x, int y, int z, int w) { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - /** - * Creates an identical copy of this vector. - * - * @return identical copy - * @since v1-alpha6 - */ - @SneakyThrows - public @NotNull Vec4i clone() { - return (Vec4i) super.clone(); - } - - /** - * Returns a string representation of this vector. - * - * @return string representation - * @since v1-alpha6 - */ - @Override - public @NotNull String toString() { - return (EngineConfiguration.getInstance().isHideFullTypePath() - ? getClass().getName().replace(getClass().getPackage() + ".", "") - : getClass().getName()) - + "(x=" + x + " y=" + y + " z=" + z + " w=" + w + ")"; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/type/vector/package-info.java b/base/src/main/java/de/staropensource/engine/base/type/vector/package-info.java deleted file mode 100644 index 9df746685..000000000 --- a/base/src/main/java/de/staropensource/engine/base/type/vector/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Data types operating with sets of numbers. - * - * @since v1-alpha1 - */ -package de.staropensource.engine.base.type.vector; diff --git a/base/src/main/java/de/staropensource/engine/base/utility/DependencyResolver.java b/base/src/main/java/de/staropensource/engine/base/utility/DependencyResolver.java deleted file mode 100644 index 63f101325..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/DependencyResolver.java +++ /dev/null @@ -1,365 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.utility; - -import de.staropensource.engine.base.exception.dependency.DependencyCycleException; -import de.staropensource.engine.base.exception.dependency.UnmetDependenciesException; -import de.staropensource.engine.base.implementable.VersioningSystem; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.DependencyVector; -import lombok.Getter; -import org.jetbrains.annotations.ApiStatus; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.lang.reflect.InvocationTargetException; -import java.util.*; - -/** - * Resolves dependency vectors. - * - * @since v1-alpha1 - */ -@SuppressWarnings({ "unused", "UnusedReturnValue", "JavadocDeclaration" }) -public final class DependencyResolver { - /** - * List of {@link DependencyVector}s to resolve. - * - * @since v1-alpha1 - */ - @NotNull Set vectors = new HashSet<>(); - - /** - * Contains whether the current {@link DependencyVector} list has been resolved successfully. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns whether the current {@link DependencyVector} list has been resolved successfully. - * - * @return resolved status - * @since v1-alpha1 - */ - @Getter - private boolean resolved = false; - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha1 - */ - public DependencyResolver() {} - - /** - * Adds a {@link DependencyVector}. - * - * @param vector {@link DependencyVector} to add - * @return itself - * @throws IllegalArgumentException if the specified vector has been added already - * @since v1-alpha1 - */ - public synchronized @NotNull DependencyResolver addVector(@NotNull DependencyVector vector) throws IllegalArgumentException { - if (vectors.contains(vector)) - throw new IllegalArgumentException("The specified vector has been added already"); - - try { - vectors.add(vector); - } catch (IllegalArgumentException ignored) {} - resolved = false; - return this; - } - - /** - * Adds multiple dependency vectors. - * - * @param vectors {@link DependencyVector}s to add - * @return itself - * @since v1-alpha1 - */ - public @NotNull DependencyResolver addVectors(@NotNull DependencyVector @NotNull [] vectors) { - return addVectors(Arrays.stream(vectors).toList()); - } - - /** - * Adds multiple dependency vectors. - * - * @param vectors {@link DependencyVector}s to add - * @return itself - * @since v1-alpha1 - */ - public @NotNull DependencyResolver addVectors(@NotNull Collection vectors) { - for (DependencyVector vector : vectors) // thread-safety - addVector(vector); - return this; - } - - /** - * Resolves all dependency vectors. - * Throws an exception when detecting an unmet dependency or a dependency cycle. - * - * @return itself - * @throws IllegalStateException when encountering an invalid vector - * @throws UnmetDependenciesException when dependencies are unmet - * @throws DependencyCycleException when a circular dependency is found - * @since v1-alpha4 - */ - public synchronized @NotNull DependencyResolver resolve() throws IllegalStateException, UnmetDependenciesException { - List<@NotNull String> unmetDependencies = new ArrayList<>(); - List<@NotNull String> output; - - for (DependencyVector vector : vectors) - unmetDependencies.addAll(resolveVector(vector, new LinkedHashSet<>())); - - if (!unmetDependencies.isEmpty()) - throw new UnmetDependenciesException(unmetDependencies); - - resolved = true; - return this; - } - - /** - * Resolves a vector. - * Throws an exception when detecting an unmet dependency or a dependency cycle. - * - * @return list of unmet dependencies - * @throws IllegalStateException when encountering an invalid dependency or provider - * @throws DependencyCycleException when a circular dependency is found - * @throws Exception when some unknown error occurs - * @since v1-alpha4 - */ - private @NotNull List<@NotNull String> resolveVector(@NotNull DependencyVector vector, @NotNull LinkedHashSet<@NotNull String> vectorsDependencyStack) throws IllegalStateException, DependencyCycleException { - List<@NotNull String> unmetDependencies = new ArrayList<>(); - - vectorsDependencyStack.add(vector.getIdentifier()); - - // 0 = identifier - // 1 = version equal - // 2 = version smaller - // 3 = version bigger - int mode; - boolean[] duplicateCheck; - StringBuilder identifier; - StringBuilder versionEqual; - StringBuilder versionSmaller; - StringBuilder versionBigger; - for (String dependency : vector.getDependencies()) { - mode = 0; - duplicateCheck = new boolean[3]; - identifier = new StringBuilder(); - versionEqual = new StringBuilder(); - versionSmaller = new StringBuilder(); - versionBigger = new StringBuilder(); - - // Get variables - for (char character : dependency.toCharArray()) { - switch (character) { - case '=' -> { - // Check for duplicate - if (duplicateCheck[0]) - throw new IllegalStateException("The dependency listing \"" + dependency + "\" cannot include multiple '=' characters"); - - // Update mode - mode = 1; - - continue; - } - case '<' -> { - // Check for duplicate - if (duplicateCheck[1]) - throw new IllegalStateException("The dependency listing \"" + dependency + "\" cannot include multiple '<' characters"); - - // Update mode - mode = 2; - continue; - } - case '>' -> { - // Check for duplicate - if (duplicateCheck[2]) - throw new IllegalStateException("The dependency listing \"" + dependency + "\" cannot include multiple '>' characters"); - - // Update mode - mode = 3; - continue; - } - } - - switch (mode) { - // Identifier - case 0 -> identifier.append(character); - // Version equal - case 1 -> { - duplicateCheck[0] = true; - - // Check for smaller and bigger than - if (duplicateCheck[1] || duplicateCheck[2]) - throw new IllegalStateException("The dependency listing \"" + dependency + "\" cannot require a specific version and have minimum and maximum version specifiers"); - - versionEqual.append(character); - } - // Version smaller - case 2 -> { - duplicateCheck[1] = true; - - // Check for equal - if (duplicateCheck[0]) - throw new IllegalStateException("The dependency listing \"" + dependency + "\" cannot require a specific version and have minimum and maximum version specifiers"); - - versionSmaller.append(character); - } - // Version bigger - case 3 -> { - duplicateCheck[2] = true; - - // Check for equal - if (duplicateCheck[0]) - throw new IllegalStateException("The dependency listing \"" + dependency + "\" cannot require a specific version and have minimum and maximum version specifiers"); - - versionBigger.append(character); - } - } - } - - // Get vector with same identifier - DependencyVector vectorDependency = getMatchingVector(identifier.toString()); - if (vectorDependency == null) { - unmetDependencies.add("Dependency \"" + dependency + "\" is not met: Not found"); - continue; - } - - // Resolve vector - if (vectorsDependencyStack.contains(vectorDependency.getIdentifier())) { - StringBuilder cycle = new StringBuilder(); - - for (String component : vectorsDependencyStack) { - if (!cycle.isEmpty()) - cycle.append(" -> "); - - cycle.append(component); - } - - cycle - .append(" -> ") - .append(identifier); - - throw new DependencyCycleException("Dependency cycle detected: " + cycle); - } else - resolveVector(vectorDependency, vectorsDependencyStack); - - VersioningSystem versioningSystemResolved; - - // Get resolved versioning system - try { - versioningSystemResolved = vectorDependency.getVersioningSystem().getDeclaredConstructor(String.class).newInstance(vectorDependency.getVersion()); - } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException exception) { - Logger.crash("Unable to check version of dependency \"" + dependency + "\": Unable to initialize versioning system " + vectorDependency.getVersioningSystem().getName(), exception); - break; - } - - // Compare - if (!versionEqual.isEmpty()) { // Version equals - VersioningSystem versioningSystemEquals; - - // Get expected VersioningSystem - try { - versioningSystemEquals = vectorDependency.getVersioningSystem().getDeclaredConstructor(String.class).newInstance(versionEqual.toString()); - } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException exception) { - Logger.crash("Unable to check version of dependency \"" + dependency + "\": Unable to initialize versioning system " + vectorDependency.getVersioningSystem().getName(), exception); - break; - } - - // Compare versions - if (versioningSystemResolved.compare(versioningSystemEquals) != 1) - unmetDependencies.add("Dependency \"" + dependency + "\" is not met: Expected version " + versionEqual + " does not match found version " + vector.getVersion()); - } else if (!versionBigger.isEmpty() || !versionSmaller.isEmpty()) { - VersioningSystem versioningSystemSmaller = null; - VersioningSystem versioningSystemBigger = null; - - if (!versionSmaller.isEmpty()) - // Get expected VersioningSystem - try { - versioningSystemSmaller = vectorDependency.getVersioningSystem().getDeclaredConstructor(String.class).newInstance(versionSmaller.toString()); - } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException exception) { - Logger.crash("Unable to check version of dependency \"" + dependency + "\": Unable to initialize versioning system " + vectorDependency.getVersioningSystem().getName(), exception); - break; - } - if (!versionBigger.isEmpty()) - // Get expected VersioningSystem - try { - versioningSystemBigger = vectorDependency.getVersioningSystem().getDeclaredConstructor(String.class).newInstance(versionBigger.toString()); - } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException exception) { - Logger.crash("Unable to check version of dependency \"" + dependency + "\": Unable to initialize versioning system " + vectorDependency.getVersioningSystem().getName(), exception); - break; - } - - // Compare versions - if (versioningSystemSmaller != null && versioningSystemBigger != null) { - if (versioningSystemResolved.compare(versioningSystemSmaller) != 2 || versioningSystemResolved.compare(versioningSystemBigger) != 0) - unmetDependencies.add("Dependency \"" + dependency + "\" is not met: Version " + vector.getVersion() + " is not in range " + versionSmaller + " to " + versionBigger); - } else { - if (versioningSystemSmaller != null) - if (versioningSystemResolved.compare(versioningSystemSmaller) != 2) - unmetDependencies.add("Dependency \"" + dependency + "\" is not met: Version " + vector.getVersion() + " is bigger than " + versionSmaller); - if (versioningSystemBigger != null) - if (versioningSystemResolved.compare(versioningSystemBigger) != 0) - unmetDependencies.add("Dependency \"" + dependency + "\" is not met: Version " + vector.getVersion() + " is smaller than " + versionBigger); - } - } - } - - vectorsDependencyStack.remove(vector.getIdentifier()); - return unmetDependencies; - } - - /** - * Searches all registered {@link DependencyVector}s for the specified identifier - * and returns the first matching one. - * - * @return matching vector or {@code null} if not found - * @since v1-alpha4 - */ - private @Nullable DependencyVector getMatchingVector(@NotNull String identifier) { - for (DependencyVector vector : vectors) { - if (vector.getIdentifier().equals(identifier)) { - return vector; - } else { - // Search 'provides' for matches - for (String provider : vector.getProvides()) - if (provider.substring(0, provider.indexOf("=")).equals(identifier)) - return vector; - } - } - - return null; - } - - /** - * Returns the correct order which stuff needs to be loaded/done in. - * - * @return {@link LinkedList} with dependencies first and dependents last - * @throws IllegalStateException when the current dependency vector list has not been resolved yet. in this case, just invoke {@code resolve()} - * @since v1-alpha1 - */ - @ApiStatus.Experimental() // TODO - public LinkedList getOrder() throws IllegalStateException { - if (!resolved) - throw new IllegalStateException("The current dependency vector list has not been resolved yet"); - - return new LinkedList<>(); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/utility/FileAccess.java b/base/src/main/java/de/staropensource/engine/base/utility/FileAccess.java deleted file mode 100644 index 5cece01d0..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/FileAccess.java +++ /dev/null @@ -1,1170 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.utility; - -import de.staropensource.engine.base.Engine; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.EngineState; -import de.staropensource.engine.base.utility.misc.Miscellaneous; -import lombok.Getter; -import org.jetbrains.annotations.ApiStatus; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.net.URI; -import java.nio.charset.Charset; -import java.nio.charset.StandardCharsets; -import java.nio.file.*; -import java.nio.file.attribute.BasicFileAttributes; -import java.nio.file.attribute.PosixFilePermissions; -import java.util.*; -import java.util.stream.Stream; - -/** - * Provides a simplified way of - * accessing files and directories. - * - * @since v1-alpha8 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration", "unused" }) -public final class FileAccess { - // -----> Static variables - /** - * Contains a list of all files and directories - * which should be deleted at shutdown. - *

- * While this feature is built into Java, in - * our testing it did not seem to work correctly. - * That's why we're implementing it here. - * - * @since v1-alpha8 - */ - private static @NotNull Path[] scheduledDeletion = new Path[0]; - - /** - * Contains a {@link FileAccess} instance to - * a temporary cache directory provided by the engine. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns a {@link FileAccess} instance to - * a temporary cache directory provided by the engine. - * - * @return temporary cache directory - * @since v1-alpha9 - */ - @Getter - private static FileAccess temporaryCacheDirectory; - - /** - * Contains a {@link FileAccess} instance to - * the persistent cache directory of the system. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns a {@link FileAccess} instance to - * the persistent cache directory of the system. - * - * @return persistent cache directory - * @since v1-alpha9 - */ - @Getter - private static FileAccess persistentCacheDirectory; - - /** - * Contains a {@link FileAccess} instance - * to the user's home directory. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns a {@link FileAccess} instance - * to the user's home directory. - * - * @return home directory - * @since v1-alpha9 - */ - @Getter - private static FileAccess homeDirectory; - - /** - * Contains a {@link FileAccess} instance - * to the user's configuration directory. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns a {@link FileAccess} instance - * to the user's configuration directory. - * - * @return configuration directory - * @since v1-alpha9 - */ - @Getter - private static FileAccess configDirectory; - - /** - * Contains a {@link FileAccess} instance - * to the user's data directory. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns a {@link FileAccess} instance - * to the user's data directory. - * - * @return data directory - * @since v1-alpha9 - */ - @Getter - private static FileAccess dataDirectory; - - // -----> Instance variables - /** - * Contains the {@link Path} to this file or directory. - * - * @since v1-alpha8 - * -- GETTER -- - * Returns the {@link Path} to this file or directory. - *

- * Please only use this method when you have to. - * Use the methods in this class instead, if you can. - * - * @return associated {@link Path} instance - * @since v1-alpha8 - */ - private final @NotNull Path path; - - /** - * Contains the {@link File} to this file or directory. - * - * @since v1-alpha8 - * -- GETTER -- - * Returns the {@link File} to this file or directory. - *

- * Please only use this method when you have to. - * Use the methods in this class instead, if you can. - * - * @return associated {@link File} instance - * @since v1-alpha8 - */ - private final @NotNull File file; - - // -----> Constructors - /** - * Creates and initializes an instance of this class. - * - * @param path path you wish to access - * @throws InvalidPathException if a {@link Path} cannot be created (see {@link FileSystem#getPath(String, String...)}) - * @since v1-alpha8 - */ - public FileAccess(@NotNull String path) throws InvalidPathException { - this.path = formatPath(path).toAbsolutePath(); - this.file = new File(path); - } - - /** - * Creates and initializes an instance of this class. - * - * @param path path you wish to access - * @since v1-alpha8 - */ - public FileAccess(@NotNull Path path) { - this.path = path.toAbsolutePath(); - this.file = this.path.toFile(); - } - - /** - * Creates and initializes an instance of this class. - * - * @param file {@link File} to the path you wish to access - * @throws InvalidPathException if a {@link Path} cannot be created (see {@link FileSystem#getPath(String, String...)}) - * @since v1-alpha8 - */ - public FileAccess(@NotNull File file) throws InvalidPathException { - this.path = file.toPath().toAbsolutePath(); - this.file = file; - } - - /** - * Creates and initializes an instance of this class. - * - * @param uri {@link URI} to the path you wish to access - * @throws FileSystemNotFoundException if the filesystem is not supported by Java - * @throws IllegalArgumentException if the URI is improperly formatted - * @since v1-alpha8 - */ - public FileAccess(@NotNull URI uri) throws FileSystemNotFoundException, IllegalArgumentException { - this.path = Path.of(uri); - this.file = new File(uri); - } - - - // -----> Static instance initialization - /** - * Initializes all uninitialized static - * {@link FileAccess} instances. - *

- * Only works during early engine startup. - * - * @throws IOException on an IO error - * @since v1-alpha8 - */ - public static void initializeInstances() throws IOException { - // TODO add support for non-default and/or non-unix directories here - - if (Engine.getInstance().getState() == EngineState.EARLY_STARTUP) { - temporaryCacheDirectory = new FileAccess(System.getProperties().getProperty("java.io.tmpdir") + "/sosengine-cache-" + ProcessHandle.current().pid()).createDirectory().deleteOnShutdown(); - homeDirectory = new FileAccess(System.getProperties().getProperty("user.home")).createDirectory(); - persistentCacheDirectory = homeDirectory.traverse( ".cache").createDirectory(); - configDirectory = homeDirectory.traverse(".config").createDirectory(); - dataDirectory = homeDirectory.traverse(".local/share").createDirectory(); - } - } - /** - * Deletes all files scheduled for deletion. - *

- * Only works during engine shutdown. - * - * @since v1-alpha8 - */ - public static void deleteScheduled() { - if (Engine.getInstance().getState() == EngineState.SHUTDOWN || Engine.getInstance().getState() == EngineState.CRASHED) { - Logger.verb("Deleting files scheduled for deletion on shutdown"); - - for (Path path : scheduledDeletion) - try (Stream stream = Files.walk(path)) { - Logger.diag("Deleting file or directory '" + path + "'"); - //noinspection ResultOfMethodCallIgnored - stream.sorted(Comparator.reverseOrder()).map(Path::toFile).forEach(File::delete); - - if (Files.exists(path)) - Logger.error("Deleting file or directory '" + path + "' failed"); - } catch (Exception exception) { - Logger.error("File or directory '" + path + "' could not be deleted\n" + Miscellaneous.throwableHeader(exception) + "\n" + Miscellaneous.stacktraceAsString(exception, true)); - } - } - } - - - // -----> Path formatting - /** - * Formats the path into a {@link Path} instance. - * - * @param path path to format - * @return formatted {@link Path} - * @since v1-alpha8 - */ - public static @NotNull Path formatPath(@NotNull String path) { - return Path.of( - path - .replace("\\", "/") - .replace("/./", "/") - .replace("/", File.separator) - ); - } - - /** - * Unformats the a {@link Path} instance into a string. - * - * @param path {@link Path} to unformat - * @return unformatted path - * @since v1-alpha8 - */ - public static @NotNull String unformatPath(@NotNull Path path) { - return path - .toString() - .replace(File.separator, "/"); - } - - - // -----> File getters & setters - /** - * Returns the absolute path of this file. - *

- * This method returns the path with - * {@code /} (slash) separators. - * - * @return absolute path - * @see #getPath() - * @since v1-alpha8 - */ - public @NotNull String getPath() { - return unformatPath(path); - } - - /** - * Returns the absolute path of this file. - *

- * This method returns the path with - * {@code /} (slash) separators. - * - * @return absolute path - * @see #getPath() - * @since v1-alpha8 - */ - @Override - public @NotNull String toString() { - return getPath(); - } - - /** - * Returns the absolute path of this file. - *

- * This method returns the path as seen - * by the operating system and JVM (i.e. - * with {@link File#separator} separators) - * - * @return absolute path - * @see #getPath() - * @since v1-alpha9 - */ - public @NotNull String getRawPath() { - return path.toString(); - } - - /** - * Returns the file name. - * - * @param excludeExtension if to remove the extension (e.g. {@code .txt}, {@code .java}) - * @return file name - * @since v1-alpha8 - */ - public @NotNull String getFileName(boolean excludeExtension) { - if (excludeExtension) - return file.getName().replaceFirst("[.][^.]+$", ""); - else - return file.getName(); - } - - /** - * Returns whether or not this file exists. - * - * @return exists? - * @since v1-alpha8 - */ - public boolean exists() { - return Files.exists(path); - } - - /** - * Returns the type of this file. - * - * @return file type - * @since v1-alpha8 - */ - public @NotNull FileAccess.Type getType() { - if (!exists()) - return Type.VOID; - else if (Files.isRegularFile(path)) - return Type.FILE; - else if (Files.isDirectory(path)) - return Type.DIRECTORY; - else - return Type.UNKNOWN; - } - - /** - * Returns whether or not this file is a symbolic link. - * - * @return symbolic link? - * @since v1-alpha8 - */ - public boolean isSymbolicLink() { - return Files.isSymbolicLink(path); - } - - /** - * Returns whether or not the file is hidden. - * - * @return is hidden? - * @throws IOException on an IO error - * @since v1-alpha8 - */ - public boolean isHidden() throws IOException { - return Files.isHidden(path); - } - - /** - * Returns the names of all files and - * directories in this directory. - * - * @return array of file and directory names - * @throws UnsupportedOperationException if this file isn't a directory - * @throws IOException on an IO error - * @since v1-alpha8 - */ - public @NotNull String @NotNull [] list() throws UnsupportedOperationException, IOException { - if (getType() != Type.DIRECTORY) - throw new UnsupportedOperationException("The file '" + path + "' is not a directory"); - - String[] list = file.list(); - - if (list == null) - throw new IOException("list is null (isn't a directory although it should be one)"); - else - return list; - } - - /** - * Returns the names of all files - * in this directory. - * - * @return array of file names - * @throws UnsupportedOperationException if this file isn't a directory - * @throws IOException on an IO error - * @since v1-alpha8 - */ - public @NotNull String @NotNull [] listFiles() throws UnsupportedOperationException, IOException { - if (getType() != Type.DIRECTORY) - throw new UnsupportedOperationException("The file '" + path + "' is not a directory"); - - String[] listArray = file.list(); - List<@NotNull String> list = new ArrayList<>(); - - if (listArray == null) - throw new IOException("list is null (isn't a directory although it should be one)"); - - for (String item : listArray) - if (path.resolve(item).toFile().isFile()) - list.add(item); - - return list.toArray(new String[0]); - } - - /** - * Returns the names of all - * directories in this directory. - * - * @return array of directory names - * @throws UnsupportedOperationException if this file isn't a directory - * @throws IOException on an IO error - * @since v1-alpha8 - */ - public @NotNull String @NotNull [] listDirectories() throws UnsupportedOperationException, IOException { - if (getType() != Type.DIRECTORY) - throw new UnsupportedOperationException("The file '" + path + "' is not a directory"); - - String[] listArray = file.list(); - List<@NotNull String> list = new ArrayList<>(); - - if (listArray == null) - throw new IOException("list is null (isn't a directory although it should be one)"); - - for (String item : listArray) - if (path.resolve(item).toFile().isDirectory()) - list.add(item); - - return list.toArray(new String[0]); - } - - /** - * Returns the destination of the symbolic link. - * - * @return file type - * @throws UnsupportedOperationException if the file is not a symbolic link - * @throws IOException on an IO error - * @since v1-alpha8 - */ - public @NotNull String getLinkDestination() throws IOException { - if (!isSymbolicLink()) - throw new UnsupportedOperationException("The file '" + path + "' is not a symbolic link"); - return unformatPath(Files.readSymbolicLink(path)); - } - - // -----> Permissions - /** - * Returns whether or not the file can be read from. - * - * @return can be read? - * @since v1-alpha8 - */ - public boolean isReadable() { - return Files.isReadable(path); - } - - /** - * Returns whether or not the file can be written to. - * - * @return can be written? - * @since v1-alpha8 - */ - public boolean isWritable() { - return Files.isWritable(path); - } - - /** - * Returns whether or not the file can be executed. - * - * @return can be executed? - * @since v1-alpha8 - */ - public boolean isExecutable() { - return Files.isExecutable(path); - } - - /** - * Returns the file's permissions the - * POSIX {@code rwxrwxrwx} format. - * - * @return POSIX permissions format - * @throws IOException on an IO error - * @since v1-alpha8 - */ - public @NotNull String getPosixPermissions() throws IOException { - try { - return PosixFilePermissions.toString(Files.getPosixFilePermissions(path)); - } catch (UnsupportedOperationException exception) { - // POSIX permissions are not supported - // For the Macrohard Windoze users under us - StringBuilder output = new StringBuilder(); - - if (isReadable()) - output.append("r"); - if (isWritable()) - output.append("w"); - if (isExecutable()) - output.append("x"); - - // Repeat the same thing two times - output.repeat(output, 2); - - return output.toString(); - } - } - - /** - * Returns the file's permissions the - * POSIX {@code rwxrwxrwx} format. - * - * @param permissions POSIX {@code rwxrwxrwx} permission format - * @return this instance - * @throws IllegalArgumentException if the format of the {@code permissions} argument is invalid - * @throws IOException on an IO error - * @since v1-alpha8 - */ - @SuppressWarnings({ "RegExpSingleCharAlternation", "ResultOfMethodCallIgnored" }) - public @NotNull FileAccess setPosixPermissions(@NotNull String permissions) throws IllegalArgumentException, IOException { - if ( - permissions.length() != 9 - || !permissions.matches("^(r|-)(w|-)(x|-)(r|-)(w|-)(x|-)(r|-)(w|-)(x|-)$") - ) - throw new IllegalArgumentException("Invalid permission format: " + permissions); - - try { - Logger.diag("Setting POSIX file permissions for '" + path + "' to '" + permissions + "'"); - Files.setPosixFilePermissions(path, PosixFilePermissions.fromString(permissions)); - } catch (UnsupportedOperationException exception) { - Logger.diag("Setting POSIX file permissions for '" + path + "' to '" + permissions.substring(0, 2) + "'"); - char @NotNull [] chars = permissions.toCharArray(); - - for (int permission = 0; permission < 3; permission++) { - boolean enabled = chars[permission] != '-'; - - switch (permission) { - case 0 -> file.setReadable(enabled); - case 1 -> file.setWritable(enabled); - case 2 -> file.setExecutable(enabled); - } - } - } - - return this; - } - - - // -----> Filesystem information - /** - * Returns the filesystem of this file. - * - * @return filesystem - * @since v1-alpha8 - */ - public @NotNull FileSystem getFilesystem() { - return path.getFileSystem(); - } - /** - * Returns whether or not the filesystem is POSIX-compliant. - * - * @return POSIX compliant? - * @since v1-alpha8 - */ - public boolean isFilesystemPosixCompliant() { - return path.getFileSystem().supportedFileAttributeViews().contains("posix"); - } - - /** - * Returns all forbidden file names. - *

- * The required functionality is not yet - * implemented. As such, this method - * will just return an empty array. - * - * @return forbidden file names - * @since v1-alpha8 - */ - @ApiStatus.Experimental - public @NotNull String @NotNull [] getRestrictedFileNames() { - return new String[0]; - } - - /** - * Returns all forbidden characters in file names. - *

- * The required functionality is not yet - * implemented. As such, this method - * will just return an empty array. - * - * @return forbidden characters - * @since v1-alpha8 - */ - @ApiStatus.Experimental - public char @NotNull [] getRestrictedCharacters() { - return new char[0]; - } - - - // -----> Directory traversal - /** - * Returns the parent directory. - * - * @return new {@link FileAccess} instance to the parent directory - * @since v1-alpha8 - */ - public @NotNull FileAccess parent() { - return new FileAccess(path.getParent()); - } - - /** - * Traverses through directories and files. - * - * @param path path to traverse - * @return new {@link FileAccess} instance - * @since v1-alpha8 - */ - public @NotNull FileAccess traverse(@NotNull String path) { - return new FileAccess(this.path.resolve(formatPath(path))); - } - - /** - * Traverses through directories and files. - * - * @param path path to traverse - * @return new {@link FileAccess} instance - * @throws FileNotFoundException if the specified path does not exist - * @since v1-alpha8 - */ - public @NotNull FileAccess traverseIfExists(@NotNull String path) throws FileNotFoundException { - Path pathResolved = this.path.resolve(formatPath(path)); - - if (!Files.exists(pathResolved)) - throw new FileNotFoundException("Traversal failed as relative path '" + path + "' does not exist from absolute path '" + path + "'"); - - return new FileAccess(pathResolved); - } - - - // -----> File/Directory creation, moving, copying and deletion - /** - * Creates the file. - * If it already exists, nothing will be done. - * - * @return this instance - * @throws IOException on an IO error - * @since v1-alpha8 - */ - @SuppressWarnings({"UnusedReturnValue", "ResultOfMethodCallIgnored"}) - public @NotNull FileAccess createFile() throws IOException { - if (!exists()) { - Logger.diag("Creating a file at '" + path + "'"); - file.getParentFile().mkdirs(); - file.createNewFile(); - } - - return this; - } - - /** - * Creates the directory recursively. - * If it already exists, nothing will be done. - * - * @return this instance - * @throws IOException on an IO error - * @since v1-alpha8 - */ - public @NotNull FileAccess createDirectory() throws IOException { - if (!exists()) { - Logger.diag("Creating a directory at '" + path + "'"); - if (!file.mkdirs()) - throw new IOException("Creating directory '" + path + "' recursively failed"); - } - - return this; - } - - /** - * Creates a symbolic link at this location. - * If it already exists, nothing will be done. - * - * @param hard creates a hard link if {@code true} or a symbolic link if {@code false} - * @param destination destination of the new link - * @return this instance - * @throws IOException on an IO error - * @since v1-alpha8 - */ - @SuppressWarnings("UnusedReturnValue") - public @NotNull FileAccess createLink(boolean hard, @NotNull String destination) throws IOException { - if (!exists()) { - Logger.diag("Creating a " + (hard ? "hard" : "symbolic") + " link at '" + path + "'"); - - if (hard) - Files.createLink(path, formatPath(destination)); - else - Files.createSymbolicLink(path, formatPath(destination)); - } - - return this; - } - - /** - * Moves this file. - * - * @param destination destination to move this file to - * @return supplied destination - * @throws IOException on an IO error - * @since v1-alpha9 - */ - public @NotNull FileAccess move(@NotNull FileAccess destination) throws IOException { - Logger.diag("Moving '" + path + "' to '" + destination.path + "'"); - Files.move(path, destination.path, StandardCopyOption.REPLACE_EXISTING); - return destination; - } - - /** - * Copies this file. - * - * @param destination destination to copy this file to - * @return this instance - * @throws IOException on an IO error - * @since v1-alpha9 - */ - public @NotNull FileAccess copy(@NotNull FileAccess destination) throws IOException { - Logger.diag("Copying '" + path + "' to '" + destination.path + "'"); - if (file.isDirectory()) - Files.walkFileTree(path, new CopyDirectoryVisitor(path, destination.path)); - else - Files.copy(path, destination.path, StandardCopyOption.REPLACE_EXISTING); - return this; - } - - /** - * Deletes this file. - * If it doesn't exist, nothing will be done. - * - * @return this instance - * @throws IOException on an IO error - * @since v1-alpha8 - */ - public @NotNull FileAccess delete() throws IOException { - if (exists()) { - Logger.diag("Deleting '" + path + "'"); - - // Recursively delete if directory - if (getFile().isDirectory()) - Files.walkFileTree(path, new DeleteDirectoryVisitor(path)); - - //noinspection ResultOfMethodCallIgnored - file.delete(); - } - return this; - } - - /** - * Marks this file for deletion at engine shutdown. - * - * @return this instance - * @see Engine#shutdown() - * @see Engine#shutdown(int) - * @since v1-alpha8 - */ - public @NotNull FileAccess deleteOnShutdown() { - Logger.diag("Marking '" + path + "' for deletion at engine shutdown"); - - // Append path to scheduledDeletion array - List<@NotNull Path> scheduledDeletionList = new ArrayList<>(Arrays.stream(scheduledDeletion).toList()); - scheduledDeletionList.add(path); - scheduledDeletion = scheduledDeletionList.toArray(new Path[0]); - - return this; - } - - - // -----> File locking - /** - * Returns whether or not this file is locked. - * - * @return is locked? - * @since v1-alpha8 - */ - public boolean isLocked() { - return false; - } - - /** - * Locks this file. - * - * @return this instance - * @since v1-alpha8 - */ - public @NotNull FileAccess lock() { - return this; - } - - /** - * Unlocks this file. - * - * @return this instance - * @since v1-alpha8 - */ - public @NotNull FileAccess unlock() { - return this; - } - - - // -----> Content reading - /** - * Returns the contents of this file. - *

- * Returns an empty array if this file - * is not of type {@link Type#FILE}. - * - * @return file contents in bytes - * @throws IOException on an IO error - * @throws OutOfMemoryError if the file is larger than the allocated amount of memory - * @since v1-alpha8 - */ - public byte @NotNull [] readBytes() throws IOException, OutOfMemoryError { - if (getType() != Type.FILE) - return new byte[0]; - - Logger.diag("Reading file '" + path + "' (bytes)"); - return Files.readAllBytes(path); - } - - /** - * Returns the contents of this file. - *

- * Returns an empty list if this file - * is not of type {@link Type#FILE}. - * - * @return file contents in bytes - * @throws IOException on an IO error - * @throws OutOfMemoryError if the file is larger than the allocated amount of memory - * @since v1-alpha8 - */ - public @NotNull List<@NotNull String> readLines() throws IOException, OutOfMemoryError { - if (getType() != Type.FILE) - return new ArrayList<>(); - - Logger.diag("Reading file '" + path + "' (lines)"); - return Files.readAllLines(path); - } - - /** - * Returns the contents of this file. - * This method will decode the bytes using the - * {@link StandardCharsets#UTF_8} character set. - *

- * Returns an empty string if this file - * is not of type {@link Type#FILE}. - * - * @return file contents as a string - * @throws IOException on an IO error - * @throws OutOfMemoryError if the file is larger than the allocated amount of memory - * @since v1-alpha8 - */ - public @NotNull String readContent() throws IOException, OutOfMemoryError { - return readContent(StandardCharsets.UTF_8); - } - - /** - * Returns the contents of this file. - *

- * Returns an empty string if this file - * is not of type {@link Type#FILE}. - * - * @param charset charset to decode the bytes with - * @return file contents as a string - * @throws IOException on an IO error - * @throws OutOfMemoryError if the file is larger than the allocated amount of memory - * @since v1-alpha8 - */ - public @NotNull String readContent(@NotNull Charset charset) throws IOException, OutOfMemoryError { - if (getType() != Type.FILE) - return ""; - - Logger.diag("Reading file '" + path + "' (string)"); - return Files.readString(path, charset); - } - - - // -----> Content writing - /** - * Writes the specified bytes into this file. - * - * @param bytes bytes to write - * @param async allows the operating system to decide when to flush the file to disk if {@code true}, flushes the data to disk immediately if {@code false} - * @throws UnsupportedOperationException if the type of this file is neither {@link Type#VOID} or {@link Type#FILE} - * @throws IOException on an IO error - * @return this instance - */ - public @NotNull FileAccess writeBytes(byte @NotNull [] bytes, boolean async) throws UnsupportedOperationException, IOException { - if (getType() == Type.VOID) - createFile(); - else if (getType() != Type.FILE) - throw new UnsupportedOperationException("File '" + path + "' is not of type Type.VOID or Type.FILE"); - - createFile(); - Logger.diag("Writing file '" + path + "' (bytes, " + (async ? "async" : "dsync") + ")"); - Files.write(path, bytes, StandardOpenOption.WRITE, async ? StandardOpenOption.DSYNC : StandardOpenOption.SYNC); - return this; - } - - /** - * Writes the specified bytes into this file. - * This method will encode the string using the - * {@link StandardCharsets#UTF_8} character set. - * - * @param string string to write - * @param async allows the operating system to decide when to flush the file to disk if {@code true}, flushes the data to disk immediately if {@code false} - * @throws UnsupportedOperationException if the type of this file is neither {@link Type#VOID} or {@link Type#FILE} - * @throws IOException on an IO error - * @return this instance - */ - public @NotNull FileAccess writeString(@NotNull String string, boolean async) throws UnsupportedOperationException, IOException { - return writeString(string, StandardCharsets.UTF_8, async); - } - - /** - * Writes the specified bytes into this file. - * - * @param string string to write - * @param charset charset to encode the string in - * @param async allows the operating system to decide when to flush the file to disk if {@code true}, flushes the data to disk immediately if {@code false} - * @throws UnsupportedOperationException if the type of this file is neither {@link Type#VOID} or {@link Type#FILE} - * @throws IOException on an IO error - * @return this instance - */ - public @NotNull FileAccess writeString(@NotNull String string, @NotNull Charset charset, boolean async) throws UnsupportedOperationException, IOException { - if (getType() == Type.VOID) - createFile(); - else if (getType() != Type.FILE) - throw new UnsupportedOperationException("File '" + path + "' is not of type Type.VOID or Type.FILE"); - - Logger.diag("Writing file '" + path + "' (string, " + (async ? "async" : "dsync") + ")"); - Files.writeString(path, string, charset, StandardOpenOption.WRITE, async ? StandardOpenOption.DSYNC : StandardOpenOption.SYNC); - return this; - } - - - // -----> Content appending - /** - * Appends the specified bytes to this file. - * - * @param bytes bytes to append - * @param async allows the operating system to decide when to flush the file to disk if {@code true}, flushes the data to disk immediately if {@code false} - * @throws UnsupportedOperationException if the type of this file is neither {@link Type#VOID} or {@link Type#FILE} - * @throws IOException on an IO error - * @return this instance - */ - public @NotNull FileAccess appendBytes(byte @NotNull [] bytes, boolean async) throws UnsupportedOperationException, IOException { - if (getType() == Type.VOID) - createFile(); - else if (getType() != Type.FILE) - throw new UnsupportedOperationException("File '" + path + "' is not of type Type.VOID or Type.FILE"); - - Logger.diag("Appending file '" + path + "' (bytes, " + (async ? "async" : "dsync") + ")"); - Files.write(path, bytes, StandardOpenOption.APPEND, async ? StandardOpenOption.DSYNC : StandardOpenOption.SYNC); - return this; - } - - /** - * Appends the specified string to this file. - * This method will encode the string using the - * {@link StandardCharsets#UTF_8} character set. - * - * @param string string to append - * @param async allows the operating system to decide when to flush the file to disk if {@code true}, flushes the data to disk immediately if {@code false} - * @throws UnsupportedOperationException if the type of this file is neither {@link Type#VOID} or {@link Type#FILE} - * @throws IOException on an IO error - * @return this instance - */ - public @NotNull FileAccess appendString(@NotNull String string, boolean async) throws UnsupportedOperationException, IOException { - return appendString(string, StandardCharsets.UTF_8, async); - } - - /** - * Appends the specified string to this file. - * - * @param string string to append - * @param charset charset to encode the string in - * @param async allows the operating system to decide when to flush the file to disk if {@code true}, flushes the data to disk immediately if {@code false} - * @throws UnsupportedOperationException if the type of this file is neither {@link Type#VOID} or {@link Type#FILE} - * @throws IOException on an IO error - * @return this instance - */ - public @NotNull FileAccess appendString(@NotNull String string, @NotNull Charset charset, boolean async) throws UnsupportedOperationException, IOException { - if (getType() == Type.VOID) - createFile(); - else if (getType() != Type.FILE) - throw new UnsupportedOperationException("File '" + path + "' is not of type Type.VOID or Type.FILE"); - - Logger.diag("Appending file '" + path + "' (string, " + (async ? "async" : "dsync") + ")"); - Files.writeString(path, string, charset, StandardOpenOption.APPEND, async ? StandardOpenOption.DSYNC : StandardOpenOption.SYNC); - return this; - } - - - // -----> Inner classes - /** - * Represents various file types. - * - * @since v1-alpha8 - */ - public enum Type { - /** - * The path does not exist. - * - * @since v1-alpha8 - */ - VOID, - - /** - * It's a regular file. - * - * @since v1-alpha8 - */ - FILE, - - /** - * It's a directory containing files. - * - * @since v1-alpha8 - */ - DIRECTORY, - - /** - * The file type is unknown to the sos!engine. - * - * @since v1-alpha8 - */ - UNKNOWN - } - - /** - * {@link FileVisitor} instance for - * copying directories recursively. - * - * @param source source to copy from - * @param destination destination to copy to - * @since v1-alpha9 - */ - private record CopyDirectoryVisitor(@NotNull Path source, @NotNull Path destination) implements FileVisitor<@NotNull Path> { - /** - * Creates and initializes an - * instance of this class. - * - * @since v1-alpha9 - */ - private CopyDirectoryVisitor {} - @Override - public @NotNull FileVisitResult preVisitDirectory(Path path, @NotNull BasicFileAttributes attributes) throws IOException { - Files.createDirectories(destination.resolve(source.relativize(path))); - return FileVisitResult.CONTINUE; - } - - /** {@inheritDoc} */ - @Override - public @NotNull FileVisitResult visitFile(Path path, @NotNull BasicFileAttributes attributes) throws IOException { - Files.copy(path, destination.resolve(source.relativize(path))); - return FileVisitResult.CONTINUE; - } - - /** {@inheritDoc} */ - @Override - public @NotNull FileVisitResult visitFileFailed(Path path, @NotNull IOException exception) throws IOException { - throw exception; - } - - /** {@inheritDoc} */ - @Override - public @NotNull FileVisitResult postVisitDirectory(Path path, @Nullable IOException exception) throws IOException { - if (exception != null) - throw exception; - - return FileVisitResult.CONTINUE; - } - } - - /** - * {@link FileVisitor} instance for - * delete directories recursively. - * - * @param directory directory to delete - * @since v1-alpha9 - */ - private record DeleteDirectoryVisitor(@NotNull Path directory) implements FileVisitor<@NotNull Path> { - /** - * Creates and initializes an - * instance of this class. - * - * @since v1-alpha9 - */ - private DeleteDirectoryVisitor {} - @Override - public @NotNull FileVisitResult preVisitDirectory(Path path, @NotNull BasicFileAttributes attributes) { - return FileVisitResult.CONTINUE; - } - - /** {@inheritDoc} */ - @Override - public @NotNull FileVisitResult visitFile(Path path, @NotNull BasicFileAttributes attributes) throws IOException { - Files.delete(path); - return FileVisitResult.CONTINUE; - } - - /** {@inheritDoc} */ - @Override - public @NotNull FileVisitResult visitFileFailed(Path path, @NotNull IOException exception) throws IOException { - throw exception; - } - - /** {@inheritDoc} */ - @Override - public @NotNull FileVisitResult postVisitDirectory(Path path, @Nullable IOException exception) throws IOException { - if (exception != null) - throw exception; - - Files.delete(path); - return FileVisitResult.CONTINUE; - } - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/utility/PlaceholderEngine.java b/base/src/main/java/de/staropensource/engine/base/utility/PlaceholderEngine.java deleted file mode 100644 index c6f34cd37..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/PlaceholderEngine.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.utility; - -import de.staropensource.engine.base.Engine; -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.internal.implementation.placeholder.*; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; - -import java.util.ArrayList; -import java.util.List; - -/** - * A modular and extensible placeholder engine. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "JavadocDeclaration" }) -public final class PlaceholderEngine { - /** - * Contains the class instance. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the class instance. - * - * @return class instance unless {@link Engine} is uninitialized - * @since v1-alpha0 - */ - @Getter - private static PlaceholderEngine instance; - - /** - * Contains all global placeholders. - * - * @see Placeholder - * @since v1-alpha0 - * -- GETTER -- - * Returns the list containing all global placeholders. - * - * @return list of all global placeholders - * @since v1-alpha0 - */ - @Getter - @SuppressWarnings("FieldMayBeFinal") - private @NotNull List<@NotNull Placeholder> placeholders = new ArrayList<>(); - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha6 - */ - private PlaceholderEngine() { - // Add default placeholders. - // date_* - placeholders.add(new DateDay()); - placeholders.add(new DateMonth()); - placeholders.add(new DateYear()); - // engine_dependency_* - placeholders.add(new EngineDependencyJansi()); - placeholders.add(new EngineDependencyLwjgl()); - placeholders.add(new EngineDependencyReflections()); - placeholders.add(new EngineDependencySlf4j()); - // engine_git_* - placeholders.add(new EngineGitBranch()); - placeholders.add(new EngineGitCommitHeader()); - placeholders.add(new EngineGitCommitIdLong()); - placeholders.add(new EngineGitCommitIdShort()); - placeholders.add(new EngineGitCommits()); - placeholders.add(new EngineGitCommitterEmail()); - placeholders.add(new EngineGitCommitterName()); - placeholders.add(new EngineGitCommitTimeDay()); - placeholders.add(new EngineGitCommitTimeHour()); - placeholders.add(new EngineGitCommitTimeMinute()); - placeholders.add(new EngineGitCommitTimeMonth()); - placeholders.add(new EngineGitCommitTimeSecond()); - placeholders.add(new EngineGitCommitTimeYear()); - placeholders.add(new EngineGitDirty()); - // engine_version* - placeholders.add(new EngineVersion()); - placeholders.add(new EngineVersionCodename()); - placeholders.add(new EngineVersionVersion()); - placeholders.add(new EngineVersionType()); - placeholders.add(new EngineVersionTyperelease()); - placeholders.add(new EngineVersionFork()); - // jvm_* - placeholders.add(new JvmArguments()); - placeholders.add(new JvmJava()); - placeholders.add(new JvmUptime()); - // jvm_implementation_* - placeholders.add(new JvmImplementationName()); - placeholders.add(new JvmImplementationVendor()); - placeholders.add(new JvmImplementationVersion()); - // time_* - placeholders.add(new TimeEpoch()); - placeholders.add(new TimeHour()); - placeholders.add(new TimeMinute()); - placeholders.add(new TimeSecond()); - placeholders.add(new TimeZone()); - } - - /** - * Creates and initializes a new instance - * of this class if none already exists. - * - * @since v1-alpha6 - */ - public static void initialize() { - if (instance == null) - instance = new PlaceholderEngine(); - } - - /** - * Process all placeholders for a given {@code text}. - * - * @param text text to process - * @param temporaryPlaceholders placeholders to process only for this run - * @return the processed text - * @since v1-alpha0 - */ - public @NotNull String process(@NotNull String text, @NotNull List<@NotNull Placeholder> temporaryPlaceholders) { - // Process temporary placeholders - for (Placeholder temporaryPlaceholder : temporaryPlaceholders) - text = temporaryPlaceholder.replace(text); - - // Process normal placeholders - for (Placeholder placeholder : placeholders) - text = placeholder.replace(text); - - return text; - } - - /** - * Process all placeholders for a given {@code text}. - * - * @param text text to process - * @return the processed text - * @since v1-alpha0 - */ - public @NotNull String process(@NotNull String text) { - return process(text, new ArrayList<>()); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/utility/PropertiesReader.java b/base/src/main/java/de/staropensource/engine/base/utility/PropertiesReader.java deleted file mode 100644 index 0a82d3bba..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/PropertiesReader.java +++ /dev/null @@ -1,301 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.utility; - -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.Tristate; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; - -import java.util.Properties; - -/** - * Allows reading and converting properties into various other data types. - * - * @see Properties - * @since v1-alpha0 - */ -@SuppressWarnings({ "JavadocDeclaration" }) -public final class PropertiesReader { - /** - * Contains an instance providing access to the system properties. - * - * @see System#getProperties() - * @since v1-alpha0 - * -- GETTER -- - * Returns an instance providing access to the system properties. - * - * @return instance using the JVM-wide properties - * @see System#getProperties() - * @since v1-alpha0 - */ - @Getter - private static final @NotNull PropertiesReader instance = new PropertiesReader(System.getProperties()); - - /** - * Contains the {@link Properties} used by this parser instance to read properties. - * - * @see Properties - * @since v1-alpha0 - * -- GETTER -- - * Returns the {@link Properties} used by this parser instance to read properties. - * - * @return {@link Properties} associated with this reader instance - * @see Properties - * @since v1-alpha0 - */ - @Getter - private final @NotNull Properties properties; - - /** - * Creates and initializes an instance of this class. - * - * @param properties {@link Properties} to use - * @since v1-alpha0 - */ - public PropertiesReader(@NotNull Properties properties) { - this.properties = properties; - } - - /** - * Just returns the property value. - * - * @param name property name - * @return a {@link String} - * @throws NullPointerException if the specified property could not be found - * @see String - * @since v1-alpha0 - */ - public @NotNull String getString(@NotNull String name) throws NullPointerException { - if (properties.getProperty(name) == null) { - Logger.sarn("Unable to get String from property '" + name + "': Property does not exist"); - throw new NullPointerException("Unable to get String from property '" + name + "': Property does not exist"); - } - return properties.getProperty(name); - } - - /** - * Parses a property as a {@link Boolean}. - * - * @param name property name - * @return a {@link Boolean} - * @throws NullPointerException if the specified property could not be found - * @see Boolean - * @since v1-alpha0 - */ - public boolean getBoolean(@NotNull String name) throws NullPointerException { - if (properties.getProperty(name) == null) { - Logger.sarn("Unable to get Boolean from property '" + name + "': Property does not exist"); - throw new NullPointerException("Unable to get Boolean from property '" + name + "': Property does not exist"); - } - - switch (properties.getProperty(name)) { - case "1", "true", "yes", "y" -> { - return Boolean.TRUE; - } - case null, default -> { - return Boolean.FALSE; - } - } - } - - /** - * Parses a property as a {@link Tristate}. - * - * @param name property name - * @return a {@link Tristate} - * @throws NullPointerException if the specified property could not be found - * @see Tristate - * @since v1-alpha1 - */ - public @NotNull Tristate getTristate(@NotNull String name) throws NullPointerException { - if (properties.getProperty(name) == null) { - Logger.sarn("Unable to get Tristate from property '" + name + "': Property does not exist"); - throw new NullPointerException("Unable to get Tristate from property '" + name + "': Property does not exist"); - } - - switch (properties.getProperty(name)) { - case "1", "true", "yes", "y" -> { - return Tristate.TRUE; - } - case "0", "false", "no", "n" -> { - return Tristate.FALSE; - } - case null, default -> { - return Tristate.UNSET; - } - } - } - - /** - * Parses a property as a {@link Byte}. - * - * @param name property name - * @return a {@link Byte} - * @throws NullPointerException if the specified property could not be found - * @throws NumberFormatException if the specified property cannot be parsed as a {@link Byte} - * @see Byte - * @since v1-alpha0 - */ - public byte getByte(@NotNull String name) throws NullPointerException, NumberFormatException { - if (properties.getProperty(name) == null) { - Logger.sarn("Unable to get Byte from property '" + name + "': Property does not exist"); - throw new NullPointerException("Unable to get Byte from property '" + name + "': Property does not exist"); - } - - try { - return Byte.parseByte(properties.getProperty(name)); - } catch (NumberFormatException exception) { - Logger.sarn("Unable to get Byte from property '" + name + "': String cannot be parsed as a Byte."); - throw exception; - } - } - - /** - * Parses a property as a {@link Short}. - * - * @param name property name - * @return a {@link Short} - * @throws NullPointerException if the specified property could not be found - * @throws NumberFormatException if the specified property cannot be parsed as a {@link Short} - * @see Short - * @since v1-alpha0 - */ - public short getShort(@NotNull String name) throws NullPointerException, NumberFormatException { - if (properties.getProperty(name) == null) { - Logger.sarn("Unable to get Short from property '" + name + "': Property does not exist"); - throw new NullPointerException("Unable to get Short from property '" + name + "': Property does not exist"); - } - - try { - return Short.parseShort(properties.getProperty(name)); - } catch (NumberFormatException exception) { - Logger.sarn("Unable to get Short from property '" + name + "': String cannot be parsed as a Short."); - throw exception; - } - } - - /** - * Parses a property as an {@link Integer}. - * - * @param name property name - * @param unsigned determines if the {@link Integer} is unsigned - * @return an {@link Integer} - * @throws NullPointerException if the specified property could not be found - * @throws NumberFormatException if the specified property cannot be parsed as an {@link Integer} - * @see Integer - * @since v1-alpha0 - */ - public int getInteger(@NotNull String name, boolean unsigned) throws NullPointerException, NumberFormatException { - if (properties.getProperty(name) == null) { - Logger.sarn("Unable to get Integer from property '" + name + "': Property does not exist"); - throw new NullPointerException("Unable to get Integer from property '" + name + "': Property does not exist"); - } - - try { - if (unsigned) - return Integer.parseUnsignedInt(properties.getProperty(name)); - else - return Integer.parseInt(properties.getProperty(name)); - } catch (NumberFormatException exception) { - Logger.sarn("Unable to get Integer from property '" + name + "': String cannot be parsed as an Integer."); - throw exception; - } - } - - /** - * Parses a property as a {@link Long}. - * - * @param name property name - * @param unsigned determines if the {@link Long} is unsigned - * @return a {@link Long} - * @throws NullPointerException if the specified property could not be found - * @throws NumberFormatException if the specified property cannot be parsed as an {@link Long} - * @see Long - * @since v1-alpha0 - */ - public long getLong(@NotNull String name, boolean unsigned) throws NullPointerException, NumberFormatException { - if (properties.getProperty(name) == null) { - Logger.sarn("Unable to get Long from property '" + name + "': Property does not exist"); - throw new NullPointerException("Unable to get Long from property '" + name + "': Property does not exist"); - } - - try { - if (unsigned) - return Long.parseUnsignedLong(properties.getProperty(name)); - else - return Long.parseLong(properties.getProperty(name)); - } catch (NumberFormatException exception) { - Logger.sarn("Unable to get Long from property '" + name + "': String cannot be parsed as a Long."); - throw exception; - } - } - - /** - * Parses a property as a {@link Float}. - * - * @param name property name - * @return a {@link Float} - * @throws NullPointerException if the specified property could not be found - * @throws NumberFormatException if the specified property cannot be parsed as an {@link Float} - * @see Float - * @since v1-alpha0 - */ - public float getFloat(@NotNull String name) throws NullPointerException, NumberFormatException { - if (properties.getProperty(name) == null) { - Logger.sarn("Unable to get Float from property '" + name + "': Property does not exist"); - throw new NullPointerException("Unable to get Float from property '" + name + "': Property does not exist"); - } - - try { - return Float.parseFloat(properties.getProperty(name)); - } catch (NumberFormatException exception) { - Logger.sarn("Unable to get Float from property '" + name + "': String cannot be parsed as a Float."); - throw exception; - } - } - - /** - * Parses a property as a {@link Double}. - * - * @param name property name - * @return a {@link Double} - * @throws NullPointerException if the specified property could not be found - * @throws NumberFormatException if the specified property cannot be parsed as an {@link Double} - * @see Double - * @since v1-alpha0 - */ - public double getDouble(@NotNull String name) throws NullPointerException, NumberFormatException { - if (properties.getProperty(name) == null) { - Logger.sarn("Unable to get Double from property '" + name + "': Property does not exist"); - throw new NullPointerException("Unable to get Double from property '" + name + "': Property does not exist"); - } - - try { - return Double.parseDouble(properties.getProperty(name)); - } catch (NullPointerException exception) { - Logger.sarn("Unable to get Double from property '" + name + "': String is null."); - throw exception; - } catch (NumberFormatException exception) { - Logger.sarn("Unable to get Double from property '" + name + "': String cannot be parsed as a Double."); - throw exception; - } - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/utility/information/EngineInformation.java b/base/src/main/java/de/staropensource/engine/base/utility/information/EngineInformation.java deleted file mode 100644 index 50c1f6fca..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/information/EngineInformation.java +++ /dev/null @@ -1,425 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.utility.information; - -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.VersionType; -import de.staropensource.engine.base.utility.PropertiesReader; -import lombok.Getter; - -import java.io.IOException; -import java.io.InputStream; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.time.ZonedDateTime; -import java.util.Date; -import java.util.GregorianCalendar; -import java.util.Locale; -import java.util.Properties; - -/** - * Provides build information about the engine. - * - * @since v1-alpha0 - */ -@SuppressWarnings({ "JavadocDeclaration" }) -public final class EngineInformation { - /** - * Contains the engine's version codename. - * - * @since v1-alpha2 - * -- GETTER -- - * Returns the engine's version codename. - * - * @return engine version codename - * @since v1-alpha2 - */ - @Getter - private static String versioningCodename; - - /** - * Contains the engine's version. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the engine's version. - * - * @return engine version - * @since v1-alpha0 - */ - @Getter - private static int versioningVersion; - - /** - * Contains the engine's version type. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the engine's version type. - * - * @return engine version type - * @since v1-alpha0 - */ - @Getter - private static VersionType versioningType; - - /** - * Contains the engine's typerelease. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the engine's typerelease. - * - * @return engine typerelease - * @since v1-alpha0 - */ - @Getter - private static int versioningTyperelease; - - /** - * Contains the engine's fork identifier. - *

- * Likely empty. If not, prefixed with a dash. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the engine's fork identifier. - *

- * Likely empty. If not, prefixed with a dash. - * - * @return engine fork identifier - * @since v1-alpha0 - */ - @Getter - private static String versioningFork; - - /** - * Contains the engine's full version string. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the engine's full version string. - * - * @return engine version string - * @since v1-alpha1 - */ - @Getter - private static String versioningString; - - - /** - * Contains the Java version of the engine source. - * - * @since v1-alpha4 - * -- GETTER -- - * Returns the Java version of the engine source. - * - * @return java version of engine source - * @since v1-alpha4 - */ - @Getter - private static short javaSource; - - /** - * Contains the Java version the engine was compiled against. - * - * @since v1-alpha4 - * -- GETTER -- - * Returns the Java version the engine was compiled against. - * - * @return java version compiled against - * @since v1-alpha4 - */ - @Getter - private static short javaTarget; - - - /** - * Contains the {@code dirty} value (i.e. if the source tree has been modified). - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the {@code dirty} value (i.e. if the source tree has been modified). - * - * @return git dirty value - * @since v1-alpha1 - */ - @Getter - private static boolean gitDirty; - - /** - * Contains the branch the engine was built on. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the branch the engine was built on. - * - * @return git branch - * @since v1-alpha1 - */ - @Getter - private static String gitBranch; - - /** - * Contains the commit count. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the commit count. - * - * @return git commit count - * @since v1-alpha1 - */ - @Getter - private static int gitCommitCount; - - /** - * Contains the commit identifier (short form). - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the commit identifier (short form). - * - * @return git long commit id - * @since v1-alpha1 - */ - @Getter - private static String gitCommitIdentifierShort; - - /** - * Contains the commit identifier (long form). - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the commit identifier (long form). - * - * @return git long commit id - * @since v1-alpha1 - */ - @Getter - private static String gitCommitIdentifierLong; - - /** - * Contains the commit header. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the commit header. - * - * @return git commit header - * @since v1-alpha1 - */ - @Getter - private static String gitCommitHeader; - - /** - * Contains the commit time. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the commit time. - * - * @return git commit time - * @since v1-alpha1 - */ - @Getter - private static ZonedDateTime gitCommitTime; - - /** - * Contains the commiter's name. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the commiter's name. - * - * @return git committer name - * @since v1-alpha1 - */ - @Getter - private static String gitCommitterName; - - /** - * Contains the commiter's email. - * - * @since v1-alpha1 - * -- GETTER -- - * Returns the commiter's email. - * - * @return git committer email - * @since v1-alpha1 - */ - @Getter - private static String gitCommitterEmail; - - - /** - * Contains the version of the dependency {@code Jansi}. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the version of the dependency {@code Jansi}. - * - * @return Jansi dependency version - * @since v1-alpha0 - */ - @Getter - private static String dependencyJansi; - - /** - * Contains the version of the dependency {@code Reflections}. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the version of the dependency {@code Reflections}. - * - * @return Reflections dependency version - * @since v1-alpha0 - */ - @Getter - private static String dependencyReflections; - - /** - * Contains the version of the dependency {@code SLF4J}. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the version of the dependency {@code SLF4J}. - * - * @return SLF4J dependency version - * @since v1-alpha0 - */ - @Getter - private static String dependencySlf4j; - - /** - * Contains the version of the dependency {@code LWJGL}. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the version of the dependency {@code LWJGL}. - * - * @return LWJGL dependency version - * @since v1-alpha0 - */ - @Getter - private static String dependencyLwjgl; - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha6 - */ - private EngineInformation() {} - - /** - * Updates all variables. - *

- * This method does not need to be invoked manually, as the information provided by - * this class is static (does not change) and is already populated at engine startup. - * - * @since v1-alpha1 - */ - public static synchronized void update() { - Logger.diag("Updating engine information"); - - // Load properties from bundled gradle.properties - Properties gradleProperties = new Properties(); - InputStream gradleStream = EngineInformation.class.getClassLoader().getResourceAsStream("sosengine-gradle.properties"); - - if (gradleStream == null) { - Logger.crash("Unable to load build information: The bundled gradle.properties file could not be found."); - return; - } - - try { - gradleProperties.load(gradleStream); - gradleStream.close(); - } catch (IOException exception) { - Logger.crash("Unable to load build information: InputStream 'gradleStream' failed", exception); - return; - } - - // Load properties from bundled git.properties - // or fill in blank information if file missing - Properties gitProperties = new Properties(); - InputStream gitStream = EngineInformation.class.getClassLoader().getResourceAsStream("sosengine-git.properties"); - if (gitStream == null) { - Logger.error("Unable to load build information: The bundled git.properties file could not be found. Did you download a tarball?"); - - // Fake information - gitProperties.setProperty("git.total.commit.count", "0"); - gitProperties.setProperty("git.dirty", "true"); - gitProperties.setProperty("git.branch", "/git.properties is missing/"); - gitProperties.setProperty("git.commit.id", "########################################"); - gitProperties.setProperty("git.commit.id.abbrev", "#######"); - gitProperties.setProperty("git.commit.message.short", "git.properties file is missing :/"); - gitProperties.setProperty("git.commit.time", "1970-01-01T00:00+0000"); - gitProperties.setProperty("git.commit.user.name", "git.properties file is missing :/"); - gitProperties.setProperty("git.commit.user.email", "git.properties-is-missing@example.com"); - } else { - // Load real information from git.properties file - try { - gitProperties.load(gitStream); - gitStream.close(); - } catch (IOException exception) { - Logger.crash("Unable to load build information: InputStream 'gitStream' failed", exception); - return; - } - } - - // Create new PropertyParsers - PropertiesReader gradleParser = new PropertiesReader(gradleProperties); - PropertiesReader gitParser = new PropertiesReader(gitProperties); - - // Apply properties to fields - versioningCodename = gradleParser.getString("versioningCodename"); - versioningVersion = gradleParser.getInteger("versioningVersion", true); - versioningType = VersionType.valueOf(gradleParser.getString("versioningType").toUpperCase()); - versioningTyperelease = gradleParser.getInteger("versioningTyperelease", true); - versioningFork = gradleParser.getString("versioningFork"); - versioningString = "v" + versioningVersion + "-" + (versioningType == VersionType.RELEASE_CANDIDATE ? "releasecandidate" : versioningType.name().toLowerCase(Locale.ROOT)) + versioningTyperelease + versioningFork; - - javaSource = gradleParser.getShort("javaSource"); - javaTarget = gradleParser.getShort("javaTarget"); - - dependencyJansi = gradleParser.getString("dependencyJansi"); - dependencyReflections = gradleParser.getString("dependencyReflections"); - dependencySlf4j = gradleParser.getString("dependencySlf4j"); - dependencyLwjgl = gradleParser.getString("dependencyLwjgl"); - - gitDirty = gitParser.getBoolean("git.dirty"); - gitBranch = gitParser.getString("git.branch"); - gitCommitCount = gitParser.getInteger("git.total.commit.count", true); - gitCommitIdentifierShort = gitParser.getString("git.commit.id.abbrev"); - gitCommitIdentifierLong = gitParser.getString("git.commit.id"); - gitCommitHeader = gitParser.getString("git.commit.message.short"); - try { - Date date = new SimpleDateFormat("yyyy-MM-dd'T'HH:mmZ").parse(gitParser.getString("git.commit.time")); - GregorianCalendar calendar = new GregorianCalendar(); - calendar.setTime(date); - gitCommitTime = calendar.toZonedDateTime(); - } catch (ParseException exception) { - Logger.crash("Unable to load build information: Can't parse \"" + gitParser.getString("git.commit.time") + "\" using format \"yyyy-MM-dd'T'HH:mmZ\"", exception); - return; - } - gitCommitterName = gitParser.getString("git.commit.user.name"); - gitCommitterEmail = gitParser.getString("git.commit.user.email"); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/utility/information/JvmInformation.java b/base/src/main/java/de/staropensource/engine/base/utility/information/JvmInformation.java deleted file mode 100644 index 76d0b470b..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/information/JvmInformation.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.utility.information; - -import de.staropensource.engine.base.logging.Logger; -import org.jetbrains.annotations.NotNull; - -import java.lang.management.ManagementFactory; -import java.lang.management.MemoryUsage; -import java.util.Collections; -import java.util.List; - -/** - * Provides information about the running Java Virtual Machine. - * - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class JvmInformation { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha6 - */ - private JvmInformation() {} - - /** - * Returns the Java version this JVM implements. - * - * @return Java version - * @throws NumberFormatException on integer conversion failure - * @since v1-alpha0 - */ - public static int getJavaVersion() throws NumberFormatException { - String version = System.getProperty("java.version"); - - if (version.startsWith("1.")) // Omit "1." (if present) - version = version.substring(2, 3); - else { - if (version.contains(".")) // Only get MAJOR version - version = version.substring(0, version.indexOf(".")); - } - - try { - return Integer.parseInt(version); - } catch (NumberFormatException exception) { - Logger.crash("Could not parse Java version: Integer conversion failed for string \"" + version + "\"", exception, true); - throw exception; - } - } - - /** - * Returns the JVM implementation name. - * - * @return implementation name - * @since v1-alpha0 - */ - public static @NotNull String getImplementationName() { - return ManagementFactory.getRuntimeMXBean().getVmName(); - } - - /** - * Returns the JVM implementation version. - * - * @return implementation version - * @since v1-alpha0 - */ - public static @NotNull String getImplementationVersion() { - return ManagementFactory.getRuntimeMXBean().getVmVersion(); - } - - /** - * Returns the JVM implementation vendor. - * - * @return implementation vendor - * @since v1-alpha0 - */ - public static @NotNull String getImplementationVendor() { - return ManagementFactory.getRuntimeMXBean().getVmVendor(); - } - - /** - * Returns the uptime of the JVM. - * - * @return uptime in milliseconds - * @since v1-alpha0 - */ - public static long getUptime() { - return ManagementFactory.getRuntimeMXBean().getUptime(); - } - - /** - * Returns all arguments passed to the JVM. - * This excludes all arguments passed to the application. - * - * @return immutable list with all JVM arguments - * @since v1-alpha0 - */ - public static @NotNull List<@NotNull String> getArguments() { - return Collections.unmodifiableList(ManagementFactory.getRuntimeMXBean().getInputArguments()); - } - - /** - * Returns the estimated total amount of memory used the running application and JVM. - * - * @return estimated total amount of used memory - * @since v1-alpha1 - */ - public static long getMemoryTotal() { - return Runtime.getRuntime().totalMemory(); - } - - /** - * Returns the maximum amount of memory which can be used by the running application. - * - * @return maximum amount of memory usable in bytes - * @since v1-alpha1 - */ - public static long getMemoryLimit() { - return Runtime.getRuntime().maxMemory(); - } - - /** - * Returns the amount of free memory available to the running application. - * - * @return amount of free memory in bytes - * @since v1-alpha1 - */ - public static long getMemoryFree() { - return Runtime.getRuntime().freeMemory(); - } - - /** - * Returns the amount of memory used by the running application. - * - * @return amount of used memory in bytes - * @since v1-alpha1 - */ - public static long getMemoryUsed() { - return getMemoryLimit() - getMemoryFree(); - } - - /** - * Returns the size of heap memory. - * - * @return heap memory size - * @since v1-alpha1 - */ - public static @NotNull MemoryUsage getMemoryHeap() { - return ManagementFactory.getMemoryMXBean().getHeapMemoryUsage(); - } - - /** - * Returns size of stack memory. - * - * @return stack memory size - * @since v1-alpha1 - */ - public static @NotNull MemoryUsage getMemoryStack() { - return ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage(); - } - - /** - * Returns the amount of processors available to the JVM. - *

- * Note: The amount of available processors may change rapidly. - * If your application scales resources based on the output of - * this method, consider checking it's output often and scaling - * resources accordingly. - * - * @return amount of available processors - * @since v1-alpha1 - */ - public static int getAvailableProcessors() { - return Runtime.getRuntime().availableProcessors(); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/utility/information/package-info.java b/base/src/main/java/de/staropensource/engine/base/utility/information/package-info.java deleted file mode 100644 index 9d6808750..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/information/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Classes which can be used to retrieve information about the execution environment. - * - * @since v1-alpha0 - */ -package de.staropensource.engine.base.utility.information; diff --git a/base/src/main/java/de/staropensource/engine/base/utility/misc/ArrayUtil.java b/base/src/main/java/de/staropensource/engine/base/utility/misc/ArrayUtil.java deleted file mode 100644 index c732fc71a..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/misc/ArrayUtil.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.utility.misc; - -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.util.Arrays; -import java.util.Collections; - -/** - * Manipulates arrays. - * - * @since v1-alpha9 - */ -public final class ArrayUtil { - /** - * Creates and initializes an - * instance of this class. - * - * @since v1-alpha9 - */ - private ArrayUtil() {} - - /** - * Removes the first {@code n} elements - * from the specified array. - *

- * If {@code n} is bigger than the - * amount of elements in the - * specified array, an empty array - * will be returned. - * - * @param type - * @param array array to operate on - * @param n amount to remove - * @return array with the first elements removed - * @since v1-alpha9 - */ - public static @Nullable T @NotNull [] removeFirst(@Nullable T @NotNull [] array, int n) { - try { - return Arrays.copyOfRange(array, n, array.length); - } catch (ArrayIndexOutOfBoundsException | IllegalArgumentException exception) { - return Collections.emptyList().toArray(array); - } - } - - /** - * Removes the last {@code n} elements - * from the specified array. - *

- * If {@code n} is bigger than the - * amount of elements in the - * specified array, an empty array - * will be returned. - * - * @param type - * @param array array to operate on - * @param n amount to remove - * @return array with the last elements removed - * @since v1-alpha9 - */ - public static @Nullable T @NotNull [] removeLast(@Nullable T @NotNull [] array, int n) { - try { - return Arrays.copyOfRange(array, 0, array.length-n); - } catch (ArrayIndexOutOfBoundsException | IllegalArgumentException exception) { - return Collections.emptyList().toArray(array); - } - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/utility/misc/ListFormatter.java b/base/src/main/java/de/staropensource/engine/base/utility/misc/ListFormatter.java deleted file mode 100644 index f7bf98be3..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/misc/ListFormatter.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.utility.misc; - -import org.jetbrains.annotations.NotNull; - -import java.util.Collection; -import java.util.Map; - -/** - * Converts arrays, arrays and maps to look like - * nicely formatted lists (as {@link String}s). - * - * @since v1-alpha9 - */ -public final class ListFormatter { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha9 - */ - private ListFormatter() {} - - /** - * Converts the specified array to a {@link String}. - *

- * For {@code formatArray(array, ", ", " & ")} the - * something like following string will be returned: - * {@code element 1, element 2, element 3 & element 4} - * - * @param array array to convert - * @param itemSeparator string used to separate two items - * @param finalSeparator string used to separate the final two items - * @return formatted string - * @since v1-alpha9 - */ - public static @NotNull String formatArray(@NotNull Object @NotNull [] array, @NotNull String itemSeparator, @NotNull String finalSeparator) { - StringBuilder output = new StringBuilder(); - - for (int index = 0; index < array.length; index++) { - if (!output.isEmpty()) - if (index == array.length - 1) - output.append(finalSeparator); - else - output.append(itemSeparator); - - output.append(array[index]); - } - - return output.toString(); - } - - /** - * Converts the specified array to a {@link String}. - *

- * This will produce something like this: - * {@code element 1, element 2, element 3 & element 4} - * - * @param array array to convert - * @return formatted string - * @since v1-alpha9 - */ - public static @NotNull String formatArray(@NotNull Object @NotNull [] array) { - return formatArray(array, ", ", " & "); - } - - /** - - /** - * Converts the specified array to a {@link String}. - *

- * For {@code formatArray(array, ", ", " & ")} the - * something like following string will be returned: - * {@code element 1, element 2, element 3 & element 4} - * - * @param collection collection to convert - * @param itemSeparator string used to separate two items - * @param finalSeparator string used to separate the final two items - * @return formatted string - * @since v1-alpha9 - */ - public static @NotNull String formatCollection(@NotNull Collection collection, @NotNull String itemSeparator, @NotNull String finalSeparator) { - return formatArray(collection.toArray(), itemSeparator, finalSeparator); - } - - /** - * Converts the specified {@link Collection} to a {@link String}. - *

- * This will produce something like this: - * {@code element 1, element 2, element 3 & element 4} - * - * @param collection collection to convert - * @return formatted string - * @since v1-alpha9 - */ - public static @NotNull String formatCollection(@NotNull Collection collection) { - return formatArray(collection.toArray()); - } - - /** - * Converts a {@link Map} to a {@link String}. - * - * @param map map to convert - * @return formatted string - * @since v1-alpha9 - */ - public static @NotNull String formatMap(@NotNull Map map) { - StringBuilder output = new StringBuilder(); - - int index = 0; - for (Object key : map.keySet()) { - if (!output.isEmpty()) - if (index == map.size() - 1) - output.append(" & "); - else - output.append(", "); - - output - .append(key) - .append("=") - .append(map.get(key)); - } - - return output.toString(); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/utility/misc/Miscellaneous.java b/base/src/main/java/de/staropensource/engine/base/utility/misc/Miscellaneous.java deleted file mode 100644 index 5fe8394ef..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/misc/Miscellaneous.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.utility.misc; - -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.lang.ref.WeakReference; -import java.lang.reflect.InvocationTargetException; -import java.util.*; -import java.util.stream.Collectors; - -/** - * Contains the most miscellaneous of all miscellaneous methods. - * - * @since v1-alpha9 - */ -@SuppressWarnings({ "unused" }) -public final class Miscellaneous { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha9 - */ - private Miscellaneous() {} - - /** - * Searches for a value in a {@link Map}. - * - * @param map map to use - * @param value value to search for - * @return all keys matching the specified value - * @since v1-alpha9 - */ - public static Set searchForValueInMap(@NotNull Map map, @Nullable Object value) { - return map - .entrySet().stream() - .filter(entry -> Objects.equals(entry.getValue(), value)) - .map(Map.Entry::getKey) - .collect(Collectors.toSet()); - } - - /** - * Measures the execution time of - * the specified {@link Runnable}. - * - * @param runnable {@link Runnable} to execute - * @return execution time in milliseconds - * @see Runnable - * @since v1-alpha9 - */ - public static long measureExecutionTime(@NotNull Runnable runnable) { - long initTime = System.currentTimeMillis(); - runnable.run(); - return System.currentTimeMillis() - initTime; - } - - /** - * Forcefully invokes the garbage collector - * and blocks execution until finished. - * If you want to run it in parallel to your - * program, consider running it in a thread. - *

- * This method does not guarantee full garbage collection, - * as the JVM only hints the garbage collector to do it's - * job. All garbage collectors are non-deterministic and - * cannot be invoked by force. And even if this method - * manages to invoke the garbage collector, a full garbage - * collection likely will never be archived. This is because - * the garbage collector will never throw everything into - * the trash. In addition, this method will only return if - * it's {@link WeakReference} becomes null. The garbage - * collector may or may not do more afterwards. This method - * just exists if someone wants to at least try to - * forcefully invoke the garbage collector. If you want - * a somewhat more reliable method, use Java Agents. - * - * @since v1-alpha9 - */ - @SuppressWarnings("UnusedAssignment") - public static void invokeGarbageCollector() { - Object object = new Object(); - WeakReference weakReference = new WeakReference<>(object); - object = null; - while(weakReference.get() != null) System.gc(); - } - - /** - * Returns if the code it is invoked by - * is running on the Java main thread. - * - * @return running on main thread? - * @since v1-alpha9 - */ - public static boolean onMainThread() { - return Thread.currentThread().threadId() == 1; - } - - /** - * Returns the {@code Caused by} message - * usually found in JVM stack traces. - * - * @param throwable {@link Throwable} to use - * @return {@link Throwable} header - * @since v1-alpha9 - */ - public static @NotNull String throwableHeader(@NotNull Throwable throwable) { - return "Caused by: " + throwable.getClass().getName() + (throwable.getMessage() == null ? "" : ": " + throwable.getMessage()); - } - - /** - * Converts an array of {@link StackTraceElement}s into a regular string. - * - * @param stacktrace array of {@link StackTraceElement}s to convert - * @param indent if all lines shall be indented with a single tab. - * Enabling this will cause the output of this method - * to mimic the JVM's throwable handling output. - * @return specified stack trace as a String - * @since v1-alpha9 - */ - public static @NotNull String stacktraceAsString(@NotNull StackTraceElement @NotNull [] stacktrace, boolean indent) { - StringBuilder output = new StringBuilder(); - - for (StackTraceElement element : stacktrace) { - if (!output.isEmpty()) - output.append("\n"); - if (indent) - output.append("\t"); - - output.append("at ").append(element); - } - - return output.toString(); - } - - /** - * Converts an array of {@link StackTraceElement}s into a regular string. - * - * @param throwable throwable to derive the stacktrace from - * @param indent if all lines shall be indented with a single tab. - * Enabling this will cause the output of this method - * to mimic the JVM's throwable handling output. - * @return specified stack trace as a String - * @since v1-alpha9 - */ - public static @NotNull String stacktraceAsString(@NotNull Throwable throwable, boolean indent) { - return stacktraceAsString(throwable.getStackTrace(), indent); - } - - /** - * Returns the full stack trace of a {@link Throwable}. - *

- * This method recursively resolves, converts and then - * returns every {@link Throwable} and stacktrace found. - * - * @param throwable throwable to recursively convert - * @param indent if all lines shall be indented with a single tab. - * Enabling this will cause the output of this method - * to mimic the JVM's throwable handling output. - * @param includeHeader if to include the throwable header (see {@link #throwableHeader(Throwable)}) - * @return full stack trace - * @since v1-alpha9 - */ - public static @NotNull String stacktraceAsStringRecursive(@NotNull Throwable throwable, boolean indent, boolean includeHeader) { - StringBuilder output = new StringBuilder(); - - // Append header and stacktrace - if (includeHeader) - output - .append(throwableHeader(throwable)) - .append("\n"); - output.append(stacktraceAsString(throwable, indent)); - - // Process recursively - if (throwable.getCause() != null) - output - .append("\n") - .append(stacktraceAsStringRecursive(throwable.getCause(), indent, includeHeader)); - if (throwable instanceof ClassNotFoundException exception && exception.getException() != null) - output - .append("\n") - .append(stacktraceAsStringRecursive(exception.getException(), indent, includeHeader)); - if (throwable instanceof ExceptionInInitializerError exception && exception.getException() != null) - output - .append("\n") - .append(stacktraceAsStringRecursive(exception.getException(), indent, includeHeader)); - if (throwable instanceof InvocationTargetException exception && exception.getTargetException() != null) - output - .append("\n") - .append(stacktraceAsStringRecursive(exception.getTargetException(), indent, includeHeader)); - - return output.toString(); - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/utility/misc/NumberUtil.java b/base/src/main/java/de/staropensource/engine/base/utility/misc/NumberUtil.java deleted file mode 100644 index 3bc9b5dc0..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/misc/NumberUtil.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.utility.misc; - -import org.jetbrains.annotations.NotNull; - -import java.util.Collection; -import java.util.LinkedList; - -/** - * Utility class for math operations. - * - * @since v1-alpha9 - */ -// All mean and double methods have been sourced -// from https://stackoverflow.com/a/4191729, tysm! -@SuppressWarnings({ "unused" }) -public final class NumberUtil { - /** - * Creates and initializes an instance of this class - * - * @since v1-alpha9 - */ - private NumberUtil() {} - - /** - * Adds padding zeros to a number. - *

- * Example: - * {@code padNumbers(505L, 5) = "00505"} - * - * @param number number - * @param length length - * @return the padded number - * @since v1-alpha9 - */ - public static @NotNull String padNumbers(long number, int length) { - return String.format("%0" + length + "d", number); - } - - - // -----> Number limiting - /** - * Ensures the integer is inside the - * specified bounds. If not, the - * integer will be corrected. - * - * @param min minimum value - * @param max maximum value - * @param value value - * @return number in threshold - * @throws IndexOutOfBoundsException if the minimum value is bigger than the maximum value - * @since v1-alpha9 - */ - public static int limitNumber(int min, int max, int value) throws IndexOutOfBoundsException { - if (min > max) - throw new IndexOutOfBoundsException(); - - if (value < min) - value = min; - else if (value > max) - value = max; - - return value; - } - - /** - * Ensures the float is inside the - * specified bounds. If not, the - * float will be corrected. - * - * @param min minimum value - * @param max maximum value - * @param value value - * @return number in threshold - * @throws IndexOutOfBoundsException if the minimum value is bigger than the maximum value - * @since v1-alpha9 - */ - public static float limitNumber(float min, float max, float value) throws IndexOutOfBoundsException { - if (min > max) - throw new IndexOutOfBoundsException(); - - if (value < min) - value = min; - else if (value > max) - value = max; - - return value; - } - - /** - * Ensures the double is inside the - * specified bounds. If not, the - * double will be corrected. - * - * @param min minimum value - * @param max maximum value - * @param value value - * @return number in threshold - * @throws IndexOutOfBoundsException if the minimum value is bigger than the maximum value - * @since v1-alpha9 - */ - public static double limitNumber(double min, double max, double value) throws IndexOutOfBoundsException { - if (min > max) - throw new IndexOutOfBoundsException(); - - if (value < min) - value = min; - else if (value > max) - value = max; - - return value; - } - - - // -----> Means and medians - /** - * Returns the mean of a collection of numbers. - * - * @param collection collection of {@code double}s - * @return mean - * @since v1-alpha9 - */ - public static double calculateMeanDouble(@NotNull Collection<@NotNull Double> collection) { - double sum = 0; - - for (double number : collection) - sum += number; - - return sum / collection.size(); - } - - /** - * Returns the mean of a collection of numbers. - * - * @param collection collection of {@code float}s - * @return mean - * @since v1-alpha9 - */ - public static double calculateMeanFloat(@NotNull Collection<@NotNull Float> collection) { - double sum = 0; - - for (float number : collection) - sum += number; - - return sum / collection.size(); - } - - /** - * Returns the mean of a collection of numbers. - * - * @param collection collection of {@code long}s - * @return mean - * @since v1-alpha9 - */ - public static double calculateMeanLong(@NotNull Collection<@NotNull Long> collection) { - double sum = 0; - - for (long number : collection) - sum += number; - - return sum / collection.size(); - } - - /** - * Returns the mean of a collection of numbers. - * - * @param collection collection of {@code int}s - * @return mean - * @since v1-alpha9 - */ - public static double calculateMeanInt(@NotNull Collection<@NotNull Integer> collection) { - double sum = 0; - - for (int number : collection) - sum += number; - - return sum / collection.size(); - } - - /** - * Returns the median of a linked list of numbers. - * - * @param list linked list of {@code double}s - * @return median - * @since v1-alpha9 - */ - public static double calculateMedianDouble(@NotNull LinkedList<@NotNull Double> list) { - int middle = list.size() / 2; - if (list.size() % 2 == 1) - return list.get(middle); - else - return list.get(middle - 1) / 2.0 + list.get(middle) / 2.0; - } - - /** - * Returns the median of a linked list of numbers. - * - * @param list linked list of {@code float}s - * @return median - * @since v1-alpha9 - */ - public static double calculateMedianFloat(@NotNull LinkedList<@NotNull Float> list) { - int middle = list.size() / 2; - if (list.size() % 2 == 1) - return list.get(middle); - else - return list.get(middle - 1) / 2.0 + list.get(middle) / 2.0; - } - - /** - * Returns the median of a linked list of numbers. - * - * @param list linked list of {@code long}s - * @return median - * @since v1-alpha9 - */ - public static double calculateMedianLong(@NotNull LinkedList<@NotNull Long> list) { - int middle = list.size() / 2; - if (list.size() % 2 == 1) - return list.get(middle); - else - return list.get(middle - 1) / 2.0 + list.get(middle) / 2.0; - } - - /** - * Returns the median of a linked list of numbers. - * - * @param list linked list of {@code int}s - * @return median - * @since v1-alpha9 - */ - public static double calculateMedianInt(@NotNull LinkedList<@NotNull Integer> list) { - int middle = list.size() / 2; - if (list.size() % 2 == 1) - return list.get(middle); - else - return list.get(middle - 1) / 2.0 + list.get(middle) / 2.0; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/utility/misc/StringUtil.java b/base/src/main/java/de/staropensource/engine/base/utility/misc/StringUtil.java deleted file mode 100644 index 292eecc25..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/misc/StringUtil.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.utility.misc; - -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -/** - * Manipulates strings and characters. - * - * @since v1-alpha9 - */ -public final class StringUtil { - /** - * Creates and initializes an - * instance of this class. - * - * @since v1-alpha9 - */ - private StringUtil() {} - - /** - * Counts the number of occurrences of the specified substring inside the specified string. - * - * @param string string to search in - * @param substring substring to count occurrences for - * @return number of times the specified substring was found inside the specified string - * @since v1-alpha9 - */ - public static long count(@NotNull String string, @NotNull String substring) { - return (string.length() - string.replace(substring, "").length()) / substring.length(); - } - - /** - * Searches for the specified separators - * in the specified string and returns - * the first separator which matches the - * specified amount of required occurrences. - * - * @param string string to operate on - * @param separators separators to check for - * @param requiredOccurrences exact amount of occurrences for a separator to be deemed valid - * @return separator to use or {@code null} - * @since v1-alpha9 - */ - public static @Nullable String getSeparatorRequired(@NotNull String string, @NotNull String @NotNull [] separators, int requiredOccurrences) { - if (string.isBlank() || separators.length == 0 || requiredOccurrences == 0) - return null; - - for (String separator : separators) - if (count(string, separator) == requiredOccurrences) - return separator; - - return null; - } - - /** - * Searches for the specified separators - * in the specified string and returns - * the first separator which matches the - * specified amount of minimum occurrences. - * - * @param string string to operate on - * @param separators separators to check for - * @param minimumOccurrences minimum amount of occurrences for a separator to be deemed valid - * @return separator to use or {@code null} - * @since v1-alpha9 - */ - public static @Nullable String getSeparatorMinimum(@NotNull String string, @NotNull String @NotNull [] separators, int minimumOccurrences) { - for (String separator : separators) - if (count(string, separator) >= minimumOccurrences) - return separator; - - return null; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/utility/misc/TypeConversion.java b/base/src/main/java/de/staropensource/engine/base/utility/misc/TypeConversion.java deleted file mode 100644 index d227f7789..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/misc/TypeConversion.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.utility.misc; - -import de.staropensource.engine.base.type.Tristate; -import org.jetbrains.annotations.Range; - -/** - * Converts various data types into other data types. - * - * @since v1-alpha9 - */ -public final class TypeConversion { - /** - * Creates and initializes an - * instance of this class. - * - * @since v1-alpha9 - */ - private TypeConversion() {} - - /** - * Converts a boolean into an integer. - * - * @param bool boolean to convert - * @return converted integer - * @since v1-alpha9 - */ - @Range(from = 0, to = 1) - public static int booleanToInteger(boolean bool) { - return bool ? 1 : 0; - } - - /** - * Converts an integer into a {@link Tristate} and then into a boolean. - * - * @param integer integer to convert - * @return booleanized integer - * @since v1-alpha9 - */ - public static boolean integerToBoolean(@Range(from = 0, to = 1) int integer) throws IndexOutOfBoundsException { - return integer != 0; - } -} diff --git a/base/src/main/java/de/staropensource/engine/base/utility/misc/package-info.java b/base/src/main/java/de/staropensource/engine/base/utility/misc/package-info.java deleted file mode 100644 index 8529f47d0..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/misc/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Miscellaneous utility classes. - * - * @since v1-alpha9 - */ -package de.staropensource.engine.base.utility.misc; diff --git a/base/src/main/java/de/staropensource/engine/base/utility/package-info.java b/base/src/main/java/de/staropensource/engine/base/utility/package-info.java deleted file mode 100644 index 8b58afdc9..000000000 --- a/base/src/main/java/de/staropensource/engine/base/utility/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Provides (utility) classes specifically made for one task. - * - * @see de.staropensource.engine.base.utility.misc.Miscellaneous - * @since v1-alpha0 - */ -package de.staropensource.engine.base.utility; diff --git a/base/src/main/java/de/staropensource/engine/dynamic/package-info.java b/base/src/main/java/de/staropensource/engine/dynamic/package-info.java deleted file mode 100644 index 11d9243cf..000000000 --- a/base/src/main/java/de/staropensource/engine/dynamic/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * A namespace for various things, - * not really specified what though. - * - * @since v1-alpha5 - */ -package de.staropensource.engine.dynamic; diff --git a/base/src/main/java/module-info.java b/base/src/main/java/module-info.java deleted file mode 100644 index 71de19600..000000000 --- a/base/src/main/java/module-info.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - * The core of the StarOpenSource Engine. - * - * @since v1-alpha1 - */ -module sosengine.base { - // Dependencies - // -> Java - requires transitive java.management; - // -> Dependencies - requires transitive static lombok; - requires transitive org.jetbrains.annotations; - requires org.reflections; - - // API access - exports de.staropensource.engine.base; - exports de.staropensource.engine.base.annotation; - exports de.staropensource.engine.base.implementable; - exports de.staropensource.engine.base.implementable.helper; - exports de.staropensource.engine.base.utility.information; - exports de.staropensource.engine.base.implementation.shortcode; - exports de.staropensource.engine.base.implementation.versioning; - exports de.staropensource.engine.base.event; - exports de.staropensource.engine.base.exception; - exports de.staropensource.engine.base.exception.dependency; - exports de.staropensource.engine.base.exception.reflection; - exports de.staropensource.engine.base.exception.versioning; - exports de.staropensource.engine.base.logging; - exports de.staropensource.engine.base.implementation.logging; - exports de.staropensource.engine.base.reflection; - exports de.staropensource.engine.base.type; - exports de.staropensource.engine.base.type.logging; - exports de.staropensource.engine.base.type.reflection; - exports de.staropensource.engine.base.type.vector; - exports de.staropensource.engine.base.utility; - exports de.staropensource.engine.base.utility.misc; - - // Reflection access - opens de.staropensource.engine.base; - opens de.staropensource.engine.base.annotation; - opens de.staropensource.engine.base.implementable; - opens de.staropensource.engine.base.implementable.helper; - opens de.staropensource.engine.base.utility.information; - opens de.staropensource.engine.base.implementation.shortcode; - opens de.staropensource.engine.base.implementation.versioning; - opens de.staropensource.engine.base.event; - opens de.staropensource.engine.base.exception; - opens de.staropensource.engine.base.exception.dependency; - opens de.staropensource.engine.base.exception.reflection; - opens de.staropensource.engine.base.exception.versioning; - opens de.staropensource.engine.base.logging; - opens de.staropensource.engine.base.implementation.logging; - opens de.staropensource.engine.base.reflection; - opens de.staropensource.engine.base.type; - opens de.staropensource.engine.base.type.logging; - opens de.staropensource.engine.base.type.reflection; - opens de.staropensource.engine.base.type.vector; - opens de.staropensource.engine.base.utility; - opens de.staropensource.engine.base.utility.misc; -} diff --git a/base/src/main/javadoc/overview.html b/base/src/main/javadoc/overview.html deleted file mode 100644 index 9b60f7224..000000000 --- a/base/src/main/javadoc/overview.html +++ /dev/null @@ -1,22 +0,0 @@ - - -

Welcome to the sos!engine API documentation!
- You are currently in the documentation for the base subsystem, the core of the engine.

- diff --git a/base/src/main/javadoc/theme.css b/base/src/main/javadoc/theme.css deleted file mode 120000 index 681484a8e..000000000 --- a/base/src/main/javadoc/theme.css +++ /dev/null @@ -1 +0,0 @@ -../../../../src/main/javadoc/theme.css \ No newline at end of file diff --git a/base/src/main/java/de/staropensource/engine/base/exception/IllegalAccessException.java b/base/src/main/kotlin/de/staropensource/engine/base/Engine.kt similarity index 57% rename from base/src/main/java/de/staropensource/engine/base/exception/IllegalAccessException.java rename to base/src/main/kotlin/de/staropensource/engine/base/Engine.kt index 3e61ddedf..cc1e4809b 100644 --- a/base/src/main/java/de/staropensource/engine/base/exception/IllegalAccessException.java +++ b/base/src/main/kotlin/de/staropensource/engine/base/Engine.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,30 +18,40 @@ * along with this program. If not, see . */ -package de.staropensource.engine.base.exception; +package de.staropensource.engine.base -import org.jetbrains.annotations.NotNull; +import de.staropensource.engine.logging.Logger /** - * Thrown the throwing method is not allowed to be called. + * Primary class of the engine. * - * @since v1-alpha4 + * This class is responsible for starting + * and shutting the engine up or down. + * + * @since v1-alpha10 */ -public class IllegalAccessException extends RuntimeException { +class Engine { /** - * Creates and initializes an instance of this exception. + * Companion class of [Engine]. * - * @since v1-alpha2 + * @since v1-alpha10 */ - public IllegalAccessException() {} + companion object { + /** + * Initializes the engine. + * + * @since v1-alpha10 + */ + @JvmStatic + fun initialize() { + Logger.instance.info("Initializing") + } + } /** - * Creates and initializes an instance of this exception. + * Initializes this class. * - * @param message message - * @since v1-alpha2 + * @since v1-alpha10 */ - public IllegalAccessException(@NotNull String message) { - super(message); - } + private constructor() } diff --git a/base/src/main/java/de/staropensource/engine/package-info.java b/base/src/main/kotlin/de/staropensource/engine/package-info.kt similarity index 81% rename from base/src/main/java/de/staropensource/engine/package-info.java rename to base/src/main/kotlin/de/staropensource/engine/package-info.kt index a88743616..e2ab43835 100644 --- a/base/src/main/java/de/staropensource/engine/package-info.java +++ b/base/src/main/kotlin/de/staropensource/engine/package-info.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -18,8 +19,11 @@ */ /** - * Contains the code for the sos!engine and it's official subsystems. + * The StarOpenSource Engine codebase. * - * @since v1-alpha0 + * In this package you can find the entire + * codebase of the StarOpenSource Engine. + * + * @since v1-alpha10 */ package de.staropensource.engine; diff --git a/base/src/main/resources/.gitignore b/base/src/main/resources/.gitignore deleted file mode 100644 index 0567e2019..000000000 --- a/base/src/main/resources/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.properties diff --git a/base/src/test/java/de/staropensource/engine/base/srctests/EngineConfigurationTest.java b/base/src/test/java/de/staropensource/engine/base/srctests/EngineConfigurationTest.java deleted file mode 100644 index 8fd6d362b..000000000 --- a/base/src/test/java/de/staropensource/engine/base/srctests/EngineConfigurationTest.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.srctests; - -import de.staropensource.engine.base.EngineConfiguration; -import de.staropensource.engine.base.type.logging.LogLevel; -import de.staropensource.engine.testing.TestBase; -import org.jetbrains.annotations.NotNull; -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.api.Test; - -import java.util.HashMap; -import java.util.Map; -import java.util.Properties; -import java.util.Set; - -import static org.junit.jupiter.api.Assertions.*; - -/** - * Tests the class {@link EngineConfiguration}. - */ -@DisplayName("EngineConfiguration") -class EngineConfigurationTest extends TestBase { - /** - * Tests the method {@code loadConfiguration}. - */ - @Test - @DisplayName("Method loadConfiguration") - void testLoadConfiguration() { - if (performMethodCalls("testLoadConfiguration")) - return; - - Map<@NotNull String, @NotNull Object[]> settings = new HashMap<>(); - Map<@NotNull String, @NotNull Object> defaultValues = new HashMap<>(); - - // Format: value (string), expected value - settings.put("debug", new Object[]{ "true", Boolean.TRUE }); - settings.put("debugEvents", new Object[]{ "true", Boolean.TRUE }); - settings.put("errorShortcodeParser", new Object[]{ "false", Boolean.FALSE }); - settings.put("logLevel", new Object[]{ "verbose", LogLevel.VERBOSE }); - settings.put("logFeatures", new Object[]{ "formatting,runtime,time", Set.of("formatting", "runtime", "time") }); - settings.put("logForceStandardOutput", new Object[]{ "true", Boolean.TRUE }); - settings.put("logPollingSpeed", new Object[]{ "9999", 9999 }); - settings.put("optimizeLogging", new Object[]{ "false", Boolean.FALSE }); - settings.put("optimizeEvents", new Object[]{ "false", Boolean.FALSE }); - - // Load default configuration - EngineConfiguration.getInstance().loadDefaultConfiguration(); - - // Save default values - for (String setting : settings.keySet()) { - if (EngineConfiguration.getInstance().getSetting(setting) == null) { - assertTrue(true, "Setting \"" + setting + "\" does not exist"); - } - - //noinspection DataFlowIssue // we do check getSetting you dumb ass - defaultValues.put(setting, EngineConfiguration.getInstance().getSetting(setting)); - } - - // Load custom configuration - Properties properties = new Properties(); - - for (String setting : settings.keySet()) - properties.setProperty(EngineConfiguration.getInstance().getGroup() + setting, (String) settings.get(setting)[0]); - - EngineConfiguration.getInstance().loadConfiguration(properties); - - // Compare custom values against default ones - for (String setting : settings.keySet()) { - Object defaultValue = defaultValues.get(setting); - Object customValue = EngineConfiguration.getInstance().getSetting(setting); - - getLogger().diag("Comparing setting " + setting + "(not equals defaultValue)"); - assertNotEquals(defaultValue, customValue); - getLogger().diag("Comparing setting " + setting + "(equals expected value)"); - assertEquals(settings.get(setting)[1], customValue); - } - } -} diff --git a/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/FourNumberVersioningSystemTest.java b/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/FourNumberVersioningSystemTest.java deleted file mode 100644 index 8f0904f3f..000000000 --- a/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/FourNumberVersioningSystemTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.srctests.implementation.versioning; - -import de.staropensource.engine.base.implementation.versioning.FourNumberVersioningSystem; -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import de.staropensource.engine.testing.TestBase; -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.CsvSource; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.fail; - -/** - * Tests the class {@link FourNumberVersioningSystem}. - */ -@DisplayName("FourNumberVersioningSystem") -public class FourNumberVersioningSystemTest extends TestBase { - /** - * Tests the method {@code compare}. - */ - @ParameterizedTest - @DisplayName("compare") - @CsvSource({ - "1.1.0.0, 1.0.0.1, 0", - "1.1.0.0, 1.0.1.0, 0", - "1.1.0.0, 1.0.1.1, 0", - "1.1.0.0, 1.1.0.0, 1", - "1.1.0.0, 1.1.0.1, 2", - "1.1.0.0, 1.1.1.0, 2", - "1.1.0.0, 1.1.1.1, 2", - }) - void testCompare(String a, String b, int expected) throws Throwable { - if (performMethodCalls("testCompare", a, b, expected)) - return; - - try { - assertEquals(expected, new FourNumberVersioningSystem(a).compare(new FourNumberVersioningSystem(b))); - } catch (InvalidVersionStringException exception) { - getLogger().error("Got InvalidVersionStringException: " + exception.getMessage()); - if (exception.getThrowable() != null) { - getLogger().error("Original stack trace:"); - throw exception.getThrowable(); - } - fail("Got InvalidVersionStringException"); - } - } -} diff --git a/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/OneNumberVersioningSystemTest.java b/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/OneNumberVersioningSystemTest.java deleted file mode 100644 index 2c5275807..000000000 --- a/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/OneNumberVersioningSystemTest.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.srctests.implementation.versioning; - -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import de.staropensource.engine.base.implementation.versioning.OneNumberVersioningSystem; -import de.staropensource.engine.testing.TestBase; -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.CsvSource; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.fail; - -/** - * Tests the class {@link OneNumberVersioningSystem}. - */ -@DisplayName("OneNumberVersioningSystem") -public class OneNumberVersioningSystemTest extends TestBase { - /** - * Tests the method {@code compare}. - */ - @ParameterizedTest - @DisplayName("compare") - @CsvSource({ - "1, 0, 0", - "1, 1, 1", - "1, 2, 2", - }) - void testCompare(String a, String b, int expected) throws Throwable { - if (performMethodCalls("testCompare", a, b, expected)) - return; - - try { - assertEquals(expected, new OneNumberVersioningSystem(a).compare(new OneNumberVersioningSystem(b))); - } catch (InvalidVersionStringException exception) { - getLogger().error("Got InvalidVersionStringException: " + exception.getMessage()); - if (exception.getThrowable() != null) { - getLogger().error("Original stack trace:"); - throw exception.getThrowable(); - } - fail("Got InvalidVersionStringException"); - } - } -} diff --git a/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/SemanticVersioningSystemTest.java b/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/SemanticVersioningSystemTest.java deleted file mode 100644 index 9b128aecc..000000000 --- a/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/SemanticVersioningSystemTest.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.srctests.implementation.versioning; - -import de.staropensource.engine.base.implementation.versioning.SemanticVersioningSystem; -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import de.staropensource.engine.testing.TestBase; -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.CsvSource; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.fail; - -/** - * Tests the class {@link SemanticVersioningSystem}. - */ -@DisplayName("SemanticVersioningSystem") -public class SemanticVersioningSystemTest extends TestBase { - /** - * Tests the method {@code compare}. - */ - @ParameterizedTest - @DisplayName("compare") - @CsvSource({ - "1.1.0, 1.0.1, 0", - "1.1.0-beta, 1.1.0-alpha, 0", - "1.1.0-beta+2, 1.1.0-alpha+2, 0", - "1.1.0+4, 1.1.0+3, 0", - "1.1.0, 1.1.0, 1", - "1.1.0-rc, 1.1.0-rc, 1", - "1.1.0-rc+6, 1.1.0-rc+6, 1", - "1.1.0+4, 1.1.0+4, 1", - "1.1.0, 1.1.1, 2", - "1.1.0-alpha, 1.1.0-beta, 2", - "1.1.0-alpha+2, 1.1.0-alpha+3, 2", - "1.1.0+5, 1.1.0+6, 2", - }) - void testCompare(String a, String b, int expected) throws Throwable { - if (performMethodCalls("testCompare", a, b, expected)) - return; - - try { - assertEquals(expected, new SemanticVersioningSystem(a).compare(new SemanticVersioningSystem(b))); - } catch (InvalidVersionStringException exception) { - getLogger().error("Got InvalidVersionStringException: " + exception.getMessage()); - if (exception.getThrowable() != null) { - getLogger().error("Original stack trace:"); - throw exception.getThrowable(); - } - fail("Got InvalidVersionStringException"); - } - } -} diff --git a/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/StarOpenSourceVersioningSystemTest.java b/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/StarOpenSourceVersioningSystemTest.java deleted file mode 100644 index 6101cbd32..000000000 --- a/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/StarOpenSourceVersioningSystemTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.srctests.implementation.versioning; - -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import de.staropensource.engine.base.implementation.versioning.StarOpenSourceVersioningSystem; -import de.staropensource.engine.testing.TestBase; -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.CsvSource; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.fail; - -/** - * Tests the class {@link StarOpenSourceVersioningSystem}. - */ -@DisplayName("StarOpenSourceVersioningSystem") -public class StarOpenSourceVersioningSystemTest extends TestBase { - /** - * Tests the method {@code compare}. - */ - @ParameterizedTest - @DisplayName("compare") - @CsvSource({ - "v1-releasecandidate7, v1-beta5, 0", - "v2-release5, v2-release4, 0", - "v4-alpha0, v3-alpha0, 0", - "v1-release5, v1-release5, 1", - "v5-beta0-somefork, v5-beta0, 1", - "v1-beta0+companion, v1-beta0-fork, 1", - "v9-beta6-fork+comp, v9-beta6-dork+homp, 1", - "v5-beta5, v5-beta6, 2", - "v6-release0, v7-release0, 2", - "v9-beta5, v9-releasecandidate1, 2", - }) - void testCompare(String a, String b, int expected) throws Throwable { - if (performMethodCalls("testCompare", a, b, expected)) - return; - - try { - assertEquals(expected, new StarOpenSourceVersioningSystem(a).compare(new StarOpenSourceVersioningSystem(b))); - } catch (InvalidVersionStringException exception) { - getLogger().error("Got InvalidVersionStringException: " + exception.getMessage()); - if (exception.getThrowable() != null) { - getLogger().error("Original stack trace:"); - throw exception.getThrowable(); - } - fail("Got InvalidVersionStringException"); - } - } -} diff --git a/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/ThreeNumberVersioningSystemTest.java b/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/ThreeNumberVersioningSystemTest.java deleted file mode 100644 index 9ba368cce..000000000 --- a/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/ThreeNumberVersioningSystemTest.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.srctests.implementation.versioning; - -import de.staropensource.engine.base.implementation.versioning.ThreeNumberVersioningSystem; -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import de.staropensource.engine.testing.TestBase; -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.CsvSource; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.fail; - -/** - * Tests the class {@link ThreeNumberVersioningSystem}. - */ -@DisplayName("ThreeNumberVersioningSystem") -public class ThreeNumberVersioningSystemTest extends TestBase { - /** - * Tests the method {@code compare}. - */ - @ParameterizedTest - @DisplayName("compare") - @CsvSource({ - "1.1.0, 1.0.1, 0", - "1.1.0, 1.1.0, 1", - "1.1.0, 1.1.1, 2", - }) - void testCompare(String a, String b, int expected) throws Throwable { - if (performMethodCalls("testCompare", a, b, expected)) - return; - - try { - assertEquals(expected, new ThreeNumberVersioningSystem(a).compare(new ThreeNumberVersioningSystem(b))); - } catch (InvalidVersionStringException exception) { - getLogger().error("Got InvalidVersionStringException: " + exception.getMessage()); - if (exception.getThrowable() != null) { - getLogger().error("Original stack trace:"); - throw exception.getThrowable(); - } - fail("Got InvalidVersionStringException"); - } - } -} diff --git a/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/TwoNumberVersioningSystemTest.java b/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/TwoNumberVersioningSystemTest.java deleted file mode 100644 index 72a9b1d41..000000000 --- a/base/src/test/java/de/staropensource/engine/base/srctests/implementation/versioning/TwoNumberVersioningSystemTest.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.srctests.implementation.versioning; - -import de.staropensource.engine.base.implementation.versioning.TwoNumberVersioningSystem; -import de.staropensource.engine.base.exception.versioning.InvalidVersionStringException; -import de.staropensource.engine.testing.TestBase; -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.CsvSource; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.fail; - -/** - * Tests the class {@link TwoNumberVersioningSystem}. - */ -@DisplayName("TwoNumberVersioningSystem") -public class TwoNumberVersioningSystemTest extends TestBase { - /** - * Tests the method {@code compare}. - */ - @ParameterizedTest - @DisplayName("compare") - @CsvSource({ - "1.5, 1.0, 0", - "1.5, 1.5, 1", - "1.5, 2.0, 2", - }) - void testCompare(String a, String b, int expected) throws Throwable { - if (performMethodCalls("testCompare", a, b, expected)) - return; - - try { - assertEquals(expected, new TwoNumberVersioningSystem(a).compare(new TwoNumberVersioningSystem(b))); - } catch (InvalidVersionStringException exception) { - getLogger().error("Got InvalidVersionStringException: " + exception.getMessage()); - if (exception.getThrowable() != null) { - getLogger().error("Original stack trace:"); - throw exception.getThrowable(); - } - fail("Got InvalidVersionStringException"); - } - } -} diff --git a/base/src/test/java/de/staropensource/engine/base/srctests/utility/DependencyResolverTest.java b/base/src/test/java/de/staropensource/engine/base/srctests/utility/DependencyResolverTest.java deleted file mode 100644 index a3d5e50bc..000000000 --- a/base/src/test/java/de/staropensource/engine/base/srctests/utility/DependencyResolverTest.java +++ /dev/null @@ -1,629 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.srctests.utility; - -import de.staropensource.engine.base.exception.dependency.DependencyCycleException; -import de.staropensource.engine.base.exception.dependency.UnmetDependenciesException; -import de.staropensource.engine.base.implementation.versioning.OneNumberVersioningSystem; -import de.staropensource.engine.testing.TestBase; -import de.staropensource.engine.base.type.DependencyVector; -import de.staropensource.engine.base.utility.DependencyResolver; -import org.jetbrains.annotations.NotNull; -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.ValueSource; - -import java.util.HashSet; -import java.util.Set; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests the class {@link DependencyResolver}. - */ -@DisplayName("DependencyResolver") -class DependencyResolverTest extends TestBase { - @ParameterizedTest - @DisplayName("resolve") - @ValueSource(ints = { - 0, 1, 2, 3 - }) - void testResolve(int layers) { - if (performMethodCalls("testResolve", layers)) - return; - - DependencyResolver resolver = new DependencyResolver(); - Set<@NotNull DependencyVector> vectors = new HashSet<>(); - Set<@NotNull String> dependencies = new HashSet<>(); - - switch (layers) { - case 0 -> { - // Vector 0 - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test0") - .setVersion("1") - .setVersioningSystem(OneNumberVersioningSystem.class) - .build() - ); - // Vector 1 - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test1") - .setVersion("55") - .setVersioningSystem(OneNumberVersioningSystem.class) - .build() - ); - } - case 1 -> { - // Vector 0 - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test0") - .setVersion("49") - .setVersioningSystem(OneNumberVersioningSystem.class) - .build() - ); - // Vector 1 - dependencies.add("test0"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test1") - .setVersion("999") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - - // Vector 2 - dependencies = new HashSet<>(); - dependencies.add("test0=49"); - dependencies.add("test1=999"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test2") - .setVersion("666") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 3 - dependencies.add("test0>30<50"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test3") - .setVersion("6978") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - } - case 2 -> { - // Vector 0 - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test0") - .setVersion("49") - .setVersioningSystem(OneNumberVersioningSystem.class) - .build() - ); - // Vector 1 - dependencies.add("test0"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test1") - .setVersion("999") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 2 - dependencies = new HashSet<>(); - dependencies.add("test1"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test2") - .setVersion("666") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - - // Vector 3 - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test3") - .setVersion("49") - .setVersioningSystem(OneNumberVersioningSystem.class) - .build() - ); - // Vector 4 - dependencies = new HashSet<>(); - dependencies.add("test3=49"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test4") - .setVersion("999") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 5 - dependencies = new HashSet<>(dependencies); - dependencies.add("test4>998<1000"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test5") - .setVersion("6978") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - } - case 3 -> { - // Vector 0 - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test0") - .setVersion("49") - .setVersioningSystem(OneNumberVersioningSystem.class) - .build() - ); - // Vector 1 - dependencies.add("test0"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test1") - .setVersion("999") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 2 - dependencies = new HashSet<>(); - dependencies.add("test1"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test2") - .setVersion("666") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 3 - dependencies = new HashSet<>(); - dependencies.add("test2<700"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test3") - .setVersion("666") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - - // Vector 4 - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test4") - .setVersion("49") - .setVersioningSystem(OneNumberVersioningSystem.class) - .build() - ); - // Vector 5 - dependencies = new HashSet<>(); - dependencies.add("test4=49"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test5") - .setVersion("999") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 6p - dependencies = new HashSet<>(dependencies); - dependencies.add("test5>998<1000"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test6") - .setVersion("6978") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 7 - dependencies = new HashSet<>(dependencies); - dependencies.add("test6<7900"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test7") - .setVersion("110") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - } - default -> { - getLogger().error("layers=" + layers + " is unimplemented in testResolve()"); - throw new IllegalStateException("layers=" + layers + " is unimplemented in testResolve()"); - } - } - - resolver.addVectors(vectors); - try { - resolver.resolve(); - } catch (UnmetDependenciesException exception) { - getLogger().error("Dependency resolution failed in testResolve(layers=" + layers + "):"); - for (String error : exception.getUnmetDependencies()) - getLogger().error("-> " + error); - - assertEquals("Please ignore this, this just exists to trigger an error", "", "Dependency resolution failed in testResolve(layers=" + layers + "): See logs"); - } catch (DependencyCycleException exception) { - getLogger().error("Dependency resolution failed because of circular dependencies in testResolve(layers=" + layers + "): " + exception.getMessage()); - assertEquals("Please ignore this, this just exists to trigger an error", "", "Dependency resolution failed in testResolve(layers=" + layers + "): See logs"); - } - } - - @ParameterizedTest - @DisplayName("resolve (failures)") - @ValueSource(ints = { - 1, 2, 3 - }) - void testResolveWithFailure(int layers) { - if (performMethodCalls("testResolveWithFailure", layers)) - return; - - DependencyResolver resolver = new DependencyResolver(); - Set<@NotNull DependencyVector> vectors = new HashSet<>(); - Set<@NotNull String> dependencies = new HashSet<>(); - - switch (layers) { - case 1 -> { - // Vector 0 - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test0") - .setVersion("49") - .setVersioningSystem(OneNumberVersioningSystem.class) - .build() - ); - // Vector 1 - dependencies.add("test0>49"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test1") - .setVersion("999") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - - // Vector 2 - dependencies = new HashSet<>(); - dependencies.add("test0=48"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test2") - .setVersion("666") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 3 - dependencies = new HashSet<>(dependencies); - dependencies.add("test2>600<650"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test3") - .setVersion("6978") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - } - case 2 -> { - // Vector 0 - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test0") - .setVersion("49") - .setVersioningSystem(OneNumberVersioningSystem.class) - .build() - ); - // Vector 1 - dependencies.add("testNULL"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test1") - .setVersion("999") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 2 - dependencies = new HashSet<>(dependencies); - dependencies.add("test1>999"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test2") - .setVersion("666") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - - // Vector 3 - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test3") - .setVersion("49") - .setVersioningSystem(OneNumberVersioningSystem.class) - .build() - ); - // Vector 4 - dependencies = new HashSet<>(); - dependencies.add("test3=50"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test4") - .setVersion("999") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 5 - dependencies = new HashSet<>(dependencies); - dependencies.add("test4<998>990"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test5") - .setVersion("6978") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - } - case 3 -> { - // Vector 0 - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test0") - .setVersion("49") - .setVersioningSystem(OneNumberVersioningSystem.class) - .build() - ); - // Vector 1 - dependencies.add("shrek"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test1") - .setVersion("999") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 2 - dependencies = new HashSet<>(); - dependencies.add("test1"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test2") - .setVersion("666") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 3 - dependencies = new HashSet<>(); - dependencies.add("test2<600"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test3") - .setVersion("666") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - - // Vector 4 - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test4") - .setVersion("49") - .setVersioningSystem(OneNumberVersioningSystem.class) - .build() - ); - // Vector 5 - dependencies = new HashSet<>(); - dependencies.add("test4>50"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test5") - .setVersion("999") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 6 - dependencies = new HashSet<>(dependencies); - dependencies.add("test5>998<100"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test6") - .setVersion("6978") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 7 - dependencies = new HashSet<>(dependencies); - dependencies.add("test6>7900"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test7") - .setVersion("110") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - } - default -> { - getLogger().error("layers=" + layers + " is unimplemented in testResolveWithFailure()"); - throw new IllegalStateException("layers=" + layers + " is unimplemented in testResolveWithFailure()"); - } - } - - resolver.addVectors(vectors); - try { - resolver.resolve(); - } catch (UnmetDependenciesException exception) { - getLogger().error("Dependency resolution failed in testResolve(layers=" + layers + ") (great!):"); - for (String error : exception.getUnmetDependencies()) - getLogger().error("-> " + error); - - return; - } catch (DependencyCycleException exception) { - getLogger().error("Dependency resolution failed because of circular dependencies in testResolveWithFailure(layers=" + layers + "): " + exception.getMessage()); - assertEquals("Please ignore this, this just exists to trigger an error", "", "Dependency resolution failed testResolveWithFailure(layers=" + layers + "): See logs"); - } - - assertEquals("Please ignore this, this just exists to trigger an error", "", "Dependency resolution succeeded testResolveWithFailure(layers=" + layers + ")"); - } - - @Test - @DisplayName("resolve (dependency cycle)") - void testResolveDependencyCycle() { - if (performMethodCalls("testResolveDependencyCycle")) - return; - - DependencyResolver resolver = new DependencyResolver(); - Set<@NotNull DependencyVector> vectors = new HashSet<>(); - Set<@NotNull String> dependencies = new HashSet<>(); - - // Vector 0 - dependencies.add("test7=110"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test0") - .setVersion("49") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 1 - dependencies = new HashSet<>(); - dependencies.add("test0"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test1") - .setVersion("999") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 2 - dependencies = new HashSet<>(); - dependencies.add("test1"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test2") - .setVersion("666") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 3 - dependencies = new HashSet<>(); - dependencies.add("test2<700"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test3") - .setVersion("666") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - - // Vector 4 - dependencies = new HashSet<>(); - dependencies.add("test3=666"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test4") - .setVersion("49") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 5 - dependencies = new HashSet<>(); - dependencies.add("test4<50"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test5") - .setVersion("999") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 6 - dependencies = new HashSet<>(); - dependencies.add("test5>990<1000"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test6") - .setVersion("6978") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - // Vector 7 - dependencies = new HashSet<>(); - dependencies.add("test6<7900"); - vectors.add( - new DependencyVector.Builder() - .setIdentifier("test7") - .setVersion("110") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setDependencies(dependencies) - .build() - ); - - resolver.addVectors(vectors); - try { - resolver.resolve(); - } catch (UnmetDependenciesException exception) { - getLogger().error("Dependency resolution failed in testResolveDependencyCycle():"); - for (String error : exception.getUnmetDependencies()) - getLogger().error("-> " + error); - - assertEquals("Please ignore this, this just exists to trigger an error", "", "Dependency resolution failed in testResolveDependencyCycle(): See logs"); - } catch (DependencyCycleException exception) { - getLogger().error("Dependency resolution failed because of circular dependencies in testResolveDependencyCycle() (great!):"); - getLogger().error(exception.getMessage()); - - return; - } - - assertEquals("Please ignore this, this just exists to trigger an error", "", "Dependency resolution succeeded in testResolveDependencyCycle()"); - } -} diff --git a/base/src/test/java/de/staropensource/engine/base/srctests/utility/MiscellaneousTest.java b/base/src/test/java/de/staropensource/engine/base/srctests/utility/MiscellaneousTest.java deleted file mode 100644 index 04b7dd968..000000000 --- a/base/src/test/java/de/staropensource/engine/base/srctests/utility/MiscellaneousTest.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.srctests.utility; - -import de.staropensource.engine.testing.TestBase; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import de.staropensource.engine.base.utility.misc.Miscellaneous; -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.CsvSource; -import org.junit.jupiter.params.provider.ValueSource; - -import java.util.HashMap; -import java.util.Map; -import java.util.Set; - -import static org.junit.jupiter.api.Assertions.*; - -/** - * Tests the class {@link Miscellaneous}. - */ -@DisplayName("Miscellaneous") -public class MiscellaneousTest extends TestBase { - /** - * Used for testing the method {@code executeSafely}. - */ - private static boolean throwableCaught; - - /** - * Tests the method {@code padNumbers}. - */ - @ParameterizedTest - @DisplayName("padNumbers") - @CsvSource({ - "5, 3, 005", - "15, 2, 15", - "666, 2, 666", - "5918, 6, 005918", - "5819853, 10, 0005819853" - }) - void testPadNumbers(int number, int length, String expected) { - if (performMethodCalls("testPadNumbers", number, length, expected)) - return; - - String result = NumberUtil.padNumbers(number, length); - assertEquals(expected, result, "Result \"" + result + "\" does not match expected output \"" + expected + "\""); - } - - /** - * Tests the method {@code measureExecutionTime}. - */ - @ParameterizedTest - @DisplayName("measureExecutionTime") - @ValueSource(ints = { - 100, 250, 500 - }) - void testMeasureExecutionTime(int sleepingDuration) { - if (performMethodCalls("testMeasureExecutionTime")) - return; - - long executionTime = Miscellaneous.measureExecutionTime(() -> { - try { - Thread.sleep(sleepingDuration); - } catch (InterruptedException e) { - getLogger().error("Sleep was interrupted, test may fail"); - } - }); - - assertTrue(executionTime >= sleepingDuration, "Execution time is " + (sleepingDuration - executionTime) + " below the sleeping duration of " + sleepingDuration); - } - - /** - * Tests the method {@code getMapValues}. - */ - @Test - @DisplayName("getMapValues") - void testSearchForValueInMap() { - if (performMethodCalls("testGetMapValues")) - return; - - Map testMap = new HashMap<>(); - testMap.put("key1", "this is the first value"); - testMap.put("keytwo", "this value exists twice"); - testMap.put("keydrei", "this value exists twice"); - testMap.put("keylast", "this is the last value"); - testMap.put("keylast2", "this is the last value"); - - Set output = Miscellaneous.searchForValueInMap(testMap, "this value exists twice"); - - assertTrue(output.contains("keytwo"), "Map key \"keytwo\" not found in output Set"); - assertTrue(output.contains("keydrei"), "Map key \"keydrei\" not found in output Set"); - assertEquals(2, output.size(), "There are more or less than two keys in the output Set"); - } -} diff --git a/base/src/test/java/de/staropensource/engine/base/srctests/utility/PlaceholderEngineTest.java b/base/src/test/java/de/staropensource/engine/base/srctests/utility/PlaceholderEngineTest.java deleted file mode 100644 index 9aa8e567a..000000000 --- a/base/src/test/java/de/staropensource/engine/base/srctests/utility/PlaceholderEngineTest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.srctests.utility; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.testing.TestBase; -import de.staropensource.engine.base.utility.PlaceholderEngine; -import org.jetbrains.annotations.NotNull; -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.CsvSource; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests the class {@link PlaceholderEngine}. - */ -@DisplayName("PlaceholderEngine") -class PlaceholderEngineTest extends TestBase { - /** - * Tests the method {@code process}. - */ - @ParameterizedTest - @DisplayName("process") - @CsvSource({ - "Test placeholder %test%, Test placeholder TEST", - "%invalid% must be invalid, %invalid% must be invalid", - "This %status%!, This works!", - }) - void testProcess(String text, String expected) { - if (performMethodCalls("testProcess", text, expected)) - return; - - List<@NotNull Placeholder> placeholders = new ArrayList<>(); - placeholders.add(new Placeholder() { - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%test%", "TEST"); - } - }); - placeholders.add(new Placeholder() { - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%status%", "works"); - } - }); - - text = PlaceholderEngine.getInstance().process(text, placeholders); - - assertEquals(expected, text, "Result \"" + text + "\" does not match expected output \"" + expected + "\""); - } -} diff --git a/base/src/test/java/de/staropensource/engine/base/srctests/utility/PropertiesReaderTest.java b/base/src/test/java/de/staropensource/engine/base/srctests/utility/PropertiesReaderTest.java deleted file mode 100644 index 84a6b46e8..000000000 --- a/base/src/test/java/de/staropensource/engine/base/srctests/utility/PropertiesReaderTest.java +++ /dev/null @@ -1,237 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.base.srctests.utility; - -import de.staropensource.engine.testing.TestBase; -import de.staropensource.engine.base.utility.PropertiesReader; -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.CsvSource; - -import java.util.Properties; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests the class {@link PropertiesReader}. - */ -@DisplayName("PropertiesReader") -class PropertiesReaderTest extends TestBase { - /** - * Tests the method {@code getString}. - */ - @ParameterizedTest - @DisplayName("getString") - @CsvSource({ - "testprop, success :)", - "very_nice_test, indeed", - "hello, Hello World!", - "a.property.mightLookLikeThis, some value" - }) - void testGetString(String propertyName, String propertyValue) { - if (performMethodCalls("testGetString", propertyName, propertyValue)) - return; - - Properties properties = new Properties(); - properties.setProperty(propertyName, propertyValue); - - String result = new PropertiesReader(properties).getString(propertyName); - assertEquals(propertyValue, result, "Result \"" + result + "\" does not match expected output \"" + propertyValue + "\""); - } - - /** - * Tests the method {@code getBoolean}. - */ - @ParameterizedTest - @DisplayName("getBoolean") - @CsvSource({ - "should.be.true, true, true", - "falsified, false, false", - "bit_no, 0, false", - "bit_yes, 1, true", - "no_a_bit, 2, false", - "yeah, yes, true", - "nah, no, false", - }) - void testGetBoolean(String propertyName, String propertyValue, boolean expected) { - if (performMethodCalls("testGetBoolean", propertyName, propertyValue, expected)) - return; - - Properties properties = new Properties(); - properties.setProperty(propertyName, propertyValue); - - Boolean result = new PropertiesReader(properties).getBoolean(propertyName); - assertEquals(expected, result, "Result \"" + result + "\" does not match expected output \"" + expected + "\""); - } - - /** - * Tests the method {@code getByte}. - */ - @ParameterizedTest - @DisplayName("getByte") - @CsvSource({ - "should.be.zero, 0, 0", - "max value, 127, 127", - "uwu, 69, 69", - "i'm ~non~ binary, 21, 21", - "happy birthday, 03, 3", - "maybe a year, 21, 21", - "he's a 1 but he likes 0s, 1, 1", - }) - void testGetByte(String propertyName, String propertyValue, byte expected) { - if (performMethodCalls("testGetByte", propertyName, propertyValue, expected)) - return; - - Properties properties = new Properties(); - properties.setProperty(propertyName, propertyValue); - - Byte result = new PropertiesReader(properties).getByte(propertyName); - assertEquals(expected, result, "Result \"" + result + "\" does not match expected output \"" + expected + "\""); - } - - /** - * Tests the method {@code getShort}. - */ - @ParameterizedTest - @DisplayName("getShort") - @CsvSource({ - "should.be.zero, 0, 0", - "max value, 255, 255", - "uwu, 69, 69", - "i'm ~non~ binary, 21, 21", - "happy birthday, 03, 3", - "maybe a year, 21, 21", - "he's a 1 but he likes 0s, 1, 1", - }) - void testGetShort(String propertyName, String propertyValue, short expected) { - if (performMethodCalls("testGetShort", propertyName, propertyValue, expected)) - return; - - Properties properties = new Properties(); - properties.setProperty(propertyName, propertyValue); - - Short result = new PropertiesReader(properties).getShort(propertyName); - assertEquals(expected, result, "Result \"" + result + "\" does not match expected output \"" + expected + "\""); - } - - /** - * Tests the method {@code getInteger}. - */ - @ParameterizedTest - @DisplayName("getInteger") - @CsvSource({ - "should.be.zero, 0, 0", - "max value, 2147483647, 2147483647", - "min value, -2147483648, -2147483648", - "uwu, 69, 69", - "i'm ~non~ binary, 21, 21", - "happy birthday, 03, 3", - "probably a year, 2021, 2021", - "he's a 10 but he likes 69, 10, 10", - }) - void testGetInteger(String propertyName, String propertyValue, int expected) { - if (performMethodCalls("testGetInteger", propertyName, propertyValue, expected)) - return; - - Properties properties = new Properties(); - properties.setProperty(propertyName, propertyValue); - - Integer result = new PropertiesReader(properties).getInteger(propertyName, false); - assertEquals(expected, result, "Result \"" + result + "\" does not match expected output \"" + expected + "\""); - } - - /** - * Tests the method {@code getLong}. - */ - @ParameterizedTest - @DisplayName("getLong") - @CsvSource({ - "should.be.zero, 0, 0", - "max value, 9223372036854775807, 9223372036854775807", - "min value, -9223372036854775808, -9223372036854775808", - "uwu, 69, 69", - "i'm ~non~ binary, 21, 21", - "happy birthday, 03, 3", - "probably a year, 2021, 2021", - "he's a 10 but he likes 69, 10, 10", - }) - void testGetLong(String propertyName, String propertyValue, long expected) { - if (performMethodCalls("testGetLong", propertyName, propertyValue, expected)) - return; - - Properties properties = new Properties(); - properties.setProperty(propertyName, propertyValue); - - Long result = new PropertiesReader(properties).getLong(propertyName, false); - assertEquals(expected, result, "Result \"" + result + "\" does not match expected output \"" + expected + "\""); - } - - /** - * Tests the method {@code getFloat}. - */ - @ParameterizedTest - @DisplayName("getFloat") - @CsvSource({ - "should.be.zero, 0, 0", - "max value, 340282350000000000000000000000000000000, 340282350000000000000000000000000000000", - "min value, -1400000000000000000000000000000000000000000000, -1400000000000000000000000000000000000000000000", - "uwu, 69, 69", - "i'm ~non~ binary, 21, 21", - "happy birthday, 03, 3", - "probably a year, 2021, 2021", - "new year, 31.12, 31.12", - "he's a 10 but he likes 69, 10.69, 10.69", - }) - void testGetFloat(String propertyName, String propertyValue, float expected) { - if (performMethodCalls("testGetFloat", propertyName, propertyValue, expected)) - return; - - Properties properties = new Properties(); - properties.setProperty(propertyName, propertyValue); - - Float result = new PropertiesReader(properties).getFloat(propertyName); - assertEquals(expected, result, "Result \"" + result + "\" does not match expected output \"" + expected + "\""); - } - - /** - * Tests the method {@code getDouble}. - */ - @ParameterizedTest - @DisplayName("getDouble") - @CsvSource({ - "should.be.zero, 0, 0", - "uwu, 69, 69", - "i'm ~non~ binary, 21, 21", - "happy birthday, 03, 3", - "probably a year, 2021, 2021", - "new year, 31.12, 31.12", - "he's a 10 but he likes 69, 10.69, 10.69", - }) - void testGetDouble(String propertyName, String propertyValue, double expected) { - if (performMethodCalls("testGetDouble", propertyName, propertyValue, expected)) - return; - - Properties properties = new Properties(); - properties.setProperty(propertyName, propertyValue); - - Double result = new PropertiesReader(properties).getDouble(propertyName); - assertEquals(expected, result, "Result \"" + result + "\" does not match expected output \"" + expected + "\""); - } -} diff --git a/build.gradle b/build.gradle deleted file mode 100644 index 5cf71bb66..000000000 --- a/build.gradle +++ /dev/null @@ -1,102 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -// Plugins -plugins { - id("java") - id("io.freefair.lombok") version("${pluginLombok}") -} - -// Register task for Javadoc generation for all subsystems -tasks.register("javadocAll", Javadoc) { - // Subprojects to exclude - def subprojects = [ - ":base", - ":ansi", - ":slf4j-compat", - ":rendering", - ":notification", - ] - - // Task metadata - setDescription("Generates Javadoc API documentation for all subprojects.") - setGroup("documentation") - - // Make sure the source is delomboked first - for (String subproject : subprojects) - dependsOn(project(subproject).getTasks().named("delombok")) - - // Set output directory, source and classpath - setSource(subprojects.collect({ project(it).projectDir.getPath() + "/build/generated/sources/delombok/java/main/" })) - setClasspath(files(subprojects.collect({ project(it).sourceSets.main.compileClasspath }))) - setDestinationDir(file("build/docs/javadoc")) - - options { - if (new File(projectDir, "src/main/javadoc/theme.css").exists()) - stylesheetFile = new File(projectDir, "src/main/javadoc/theme.css") // Theming is cool :3 - setMemberLevel(JavadocMemberLevel.PUBLIC) // Only display public stuff - setOverview("src/main/javadoc/overview.html") // We want a custom overview page to greet the visitor - setLocale("en_US") // 你好 - addStringOption("Xwerror", "-quiet") // Fail build on warning - - setJFlags([ - "-Duser.language=en_US" // See above - ]) - } - - // Fix module collisions - doFirst { - getLogger().log(LogLevel.WARN, "If this task fails, make sure to reset all module-info.java files using git or you may encounter issues.") - - for (String subproject : subprojects) { - File source = new File(project(subproject).projectDir.getPath() + "/src/main/java/module-info.java") - File target = new File(project(subproject).projectDir.getPath() + "/src/main/module-info.java") - - if (source.exists()) { - target.delete() - source.renameTo(target) - } - } - } - doLast { - for (String subproject : subprojects) { - File source = new File(project(subproject).projectDir.getPath() + "/src/main/module-info.java") - File target = new File(project(subproject).projectDir.getPath() + "/src/main/java/module-info.java") - - if (source.exists()) { - target.delete() - source.renameTo(target) - } - } - } -} - -// Set group, version and repositories for all projects -allprojects { - version = project.versioningVersion + "-" + project.versioningType + project.versioningTyperelease + project.versioningFork - - java { - setSourceCompatibility(JavaVersion.valueOf("VERSION_" + project.javaSource)) - setTargetCompatibility(JavaVersion.valueOf("VERSION_" + project.javaTarget)) - } - - repositories { - mavenCentral() - } -} diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 000000000..cab65ede3 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,154 @@ +import org.jetbrains.dokka.DokkaConfiguration +import org.jetbrains.dokka.gradle.DokkaTask +import java.net.URI + +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +// Buildscript +buildscript { + // Repositories + repositories { + mavenLocal() + mavenCentral() + gradlePluginPortal() + } +} + +// Plugins +plugins { + id("java-library") + id("maven-publish") + + // Kotlin support + id("org.jetbrains.kotlin.jvm") version("2.0.0") + + // Dokka + id("org.jetbrains.dokka") version("1.9.20") + + // Git properties + id("com.gorylenko.gradle-git-properties") version("2.4.2") +} + +allprojects { + // Plugins + apply(plugin = "java") + apply(plugin = "java-library") + apply(plugin = "maven-publish") + apply(plugin = "org.jetbrains.kotlin.jvm") + apply(plugin = "org.jetbrains.dokka") + apply(plugin = "com.gorylenko.gradle-git-properties") + + // Version + version = property("versionRelease") as String + "-" + property("versionType") as String + property("versionTyperelease") as String + if (property("versionFork") != "") + version = version as String + "-" + property("versionFork") as String + if (property("versionCompanion") != "") + version = version as String + "+" + property("versionCompanion") as String + + // Repositories + repositories { + mavenLocal() + mavenCentral() + } + + // Dependencies + dependencies { + // Kotlin support + kotlin(property("dependencyKotlinStdIdentifier") as String) + kotlin(property("dependencyKotlinStdJavaIdentifier") as String) + } + + kotlin.sourceSets.main { + dependencies { + implementation(property("dependencyKotlinReflectIdentifier") as String + ":" + property("dependencyKotlinReflectVersion") as String) + implementation(property("dependencyKotlinDateTimeIdentifier") as String + ":" + property("dependencyKotlinDateTimeVersion") as String) + } + } + + // Java + java { + // Java version + sourceCompatibility = JavaVersion.valueOf("VERSION_" + property("java") as String) + targetCompatibility = JavaVersion.valueOf("VERSION_" + property("java") as String) + + toolchain { + languageVersion = JavaLanguageVersion.of(property("java") as String) + } + } + + // Dokka + // -> Register jar generation tasks + // See https://kotlinlang.org/docs/dokka-gradle.html#build-javadoc-jar + tasks.register("dokkaHtmlJar") { + dependsOn(tasks.dokkaHtml) + from(tasks.dokkaHtml.flatMap { it.outputDirectory }) + archiveClassifier.set("html-docs") + } + + tasks.register("dokkaJavadocJar") { + dependsOn(tasks.dokkaJavadoc) + from(tasks.dokkaJavadoc.flatMap { it.outputDirectory }) + archiveClassifier.set("javadoc") + } + + // -> Configure Dokka + tasks.withType().configureEach { + // Styling + val dokkaBaseConfiguration = """ + { + "_customAssets": ["${file("assets/my-image.png")}"], + "_customStyleSheets": ["${file("assets/my-styles.css")}"], + "footerMessage": "© 2024 The StarOpenSource Engine Authors. Licensed under the GNU Affero General Public License v3", + "_separateInheritedMembers": false, + "_templatesDir": "${file("dokka/templates")}", + "_mergeImplicitExpectActualDeclarations": false + } + """ + + pluginsMapConfiguration = mapOf( + "org.jetbrains.dokka.base.DokkaBase" to dokkaBaseConfiguration + ) + + // Configuration + moduleName = rootProject.name + moduleVersion = "v" + rootProject.version as String + failOnWarning = true + suppressObviousFunctions = true + suppressInheritedMembers = true + + dokkaSourceSets.configureEach { + // Metadata + displayName = project.name + documentedVisibilities = setOf(DokkaConfiguration.Visibility.PUBLIC, DokkaConfiguration.Visibility.PROTECTED) + reportUndocumented = false + skipEmptyPackages = false + skipDeprecated = false + jdkVersion = 21 + + // Source link + sourceLink { + localDirectory = projectDir.resolve("src") + remoteUrl = URI("https://git.staropensource.de/StarOpenSource/Engine/src/branch/develop/" + project.name.replace(":", "/") + "/src").toURL() + remoteLineSuffix = "#L" + } + } + } +} diff --git a/dist/detekt.yml b/dist/detekt.yml new file mode 100644 index 000000000..4fc3eed65 --- /dev/null +++ b/dist/detekt.yml @@ -0,0 +1,40 @@ +# This configuration file should be used in +# conjunction with detekt's default config. +# Check the "Build rules upon the default +# configuration" setting somewhere in your +# IDE settings or pass the +# '--build-upon-default-config' argument to Detekt. + +config: + validation: true + warningsAsErrors: false + +console-reports: + active: true + +build: + maxIssues: 10 + +complexity: + TooManyFunctions: + active: false + +naming: + MemberNameEqualsClassName: + active: false + +exceptions: + SwallowedException: + active: false + TooGenericExceptionCaught: + active: false + ThrowingExceptionsWithoutMessageOrCause: + active: false + +style: + MaxLineLength: + active: false + UnusedPrivateMember: + active: false + UnusedParameter: + active: false diff --git a/dist/readme/application-architecture.svg b/dist/readme/application-architecture.svg deleted file mode 100644 index 032adf2b0..000000000 --- a/dist/readme/application-architecture.svg +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - sos!engine base - - Graphicssubsystem - - Audiosubsystem - - Inputsubsystem - - ...subsystem - - diff --git a/dist/template-subproject/README.md b/dist/template-subproject/README.md new file mode 100644 index 000000000..8792f6808 --- /dev/null +++ b/dist/template-subproject/README.md @@ -0,0 +1,2 @@ +# `/dist/template-subproject` +This is a template subproject, simply existing to ease the process of creating a new Gradle subproject. diff --git a/base/src/main/java/de/staropensource/engine/base/utility/information/EnvironmentInformation.java b/dist/template-subproject/build.gradle.kts similarity index 75% rename from base/src/main/java/de/staropensource/engine/base/utility/information/EnvironmentInformation.java rename to dist/template-subproject/build.gradle.kts index d6dd0752a..bc133dc3b 100644 --- a/base/src/main/java/de/staropensource/engine/base/utility/information/EnvironmentInformation.java +++ b/dist/template-subproject/build.gradle.kts @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,13 +18,12 @@ * along with this program. If not, see . */ -//package de.staropensource.engine.base.utility.information; +// Dependencies +dependencies { + // Kotlin support + kotlin(property("dependencyKotlinStdIdentifier") as String) -/** - * Provides information about the environment - * ie. the operating system, paths, etc.. - * - * @since v1-alpha8 - */ -//public final class EnvironmentInformation { -//} + // sos!engine + implementation(project(":logging")) + implementation(project(":base")) +} diff --git a/base/src/main/java/de/staropensource/engine/base/exception/package-info.java b/dist/template-subproject/src/main/kotlin/de/staropensource/engine/newsubprj/Example.kt similarity index 79% rename from base/src/main/java/de/staropensource/engine/base/exception/package-info.java rename to dist/template-subproject/src/main/kotlin/de/staropensource/engine/newsubprj/Example.kt index e70ab804b..7d2e34085 100644 --- a/base/src/main/java/de/staropensource/engine/base/exception/package-info.java +++ b/dist/template-subproject/src/main/kotlin/de/staropensource/engine/newsubprj/Example.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,9 +18,13 @@ * along with this program. If not, see . */ -/** - * Exceptions thrown by the engine, subsystems and applications. - * - * @since v1-alpha1 - */ -package de.staropensource.engine.base.exception; +package de.staropensource.engine.newsubprj; + +class Example { + /** + * Initializes this class. + * + * @since v1-alpha10 + */ + private constructor() +} diff --git a/docs/.gitignore b/docs/.gitignore deleted file mode 100644 index dc5eab17c..000000000 --- a/docs/.gitignore +++ /dev/null @@ -1,15 +0,0 @@ -/node_modules -/out -.docusaurus -.cache-loader - -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local -pnpm-lock.yaml - -npm-debug.log* -yarn-debug.log* -yarn-error.log* diff --git a/docs/Makefile b/docs/Makefile deleted file mode 100644 index 05c505027..000000000 --- a/docs/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -.PHONY: dist help - -dist: help -help: - @echo "make install-deps -> Install all dependencies" - @echo " update-deps -> Update all dependencies" - @echo " test -> Start a web server for development" - @echo " build -> Build static files" - @echo " clean -> Clean directory" - @echo " clean-extra -> Clean directory with extra directories/files" -install-deps: - pnpm install -update-deps: - pnpm install @docusaurus/{core,plugin-client-redirects,plugin-content-docs,plugin-sitemap,preset-classic,module-type-aliases,tsconfig,types}@latest -test: - pnpm run start --hot-only --no-open -build: - pnpm run build --out-dir out -clean: - pnpm run clear - rm -rf "out" ".docusaurus" ".cache-loader" -clean-extra: clean - rm -rf "node_modules" "pnpm-lock.yaml" - -# The nuclear option, dunno why I made this -clean-ultra: clean-extra - rm -rf "~/.cache/pnpm" "~/.local/share/pnpm" "~/.local/state/pnpm" diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index 66329663e..000000000 --- a/docs/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# sos!engine documentation -The StarOpenSource Project uses [Docusaurus](https://docusaurus.io) for generating sos!engine's documentation. - -# Commands -```bash -# Installs all required dependencies -make install-deps - -# Starts a development server with support for hot reloading -make test - -# Build the documentation to 'out/' -make build - -# Remove 'out/' directory as well as some of Docusaurus' files -make clean - -# If you want to remove node_modules and other pnpm stuff execute this -make clean-extra -``` diff --git a/docs/babel.config.js b/docs/babel.config.js deleted file mode 100644 index e00595dae..000000000 --- a/docs/babel.config.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - presets: [require.resolve('@docusaurus/core/lib/babel/preset')], -}; diff --git a/docs/docs/getting-started/_category_.json b/docs/docs/getting-started/_category_.json deleted file mode 100644 index 7bff476fc..000000000 --- a/docs/docs/getting-started/_category_.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "label": "Getting started", - "position": 2, - "link": { - "type": "generated-index", - "description": "Provides a complete guide on how to get started with the StarOpenSource Engine." - } -} diff --git a/docs/docs/getting-started/initializing.md b/docs/docs/getting-started/initializing.md deleted file mode 100644 index 43fe15f87..000000000 --- a/docs/docs/getting-started/initializing.md +++ /dev/null @@ -1,73 +0,0 @@ ---- -sidebar_position: 1 -title: Initializing the engine ---- - -# Initializing the engine -To initialize the sos!engine, simply add this to the initialization code of your application: -```java -Engine.initialize(); -``` -... or if you want error handling (recommended): -```java -try { - Engine.initialize(); -} catch (Exception exception) { - // Make sure this kills your - // game or application. This - // example is assuming that this - // code lives inside a Main class. - return; -} -``` - -This is enough to initialize the core engine and all subsystems found in the classpath. No need to manually initialize them. - -## Printing something -Now you'll probably want to print some log output. Before you try using `System.out#println`, -`java.util.logging`, Log4J, SLF4J or some other logging library, please don't! The engine -provides it's own logging implementation and is HIGHLY recommended to be used over other implementations. - -There are eight log levels you can use: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
LEVELMETHOD NAMEDESCRIPTION
`DIAGNOSTIC``diag`Detailed information about what is happening
`VERBOSE``verb`Additional information about what is happening
`SILENT_WARNING``sarn`Less important warnings. Useful for logging parsing errors and such
`INFORMATIONAL``info`Useful information about what is happening
`WARNING``warn`Warnings about dangerous, deprecated or weird behaviour
`ERROR``error`Non-fatal errors
`CRASH``crash`Fatal errors which may or may not halt the running program (see below)
diff --git a/docs/docs/getting-started/installing.mdx b/docs/docs/getting-started/installing.mdx deleted file mode 100644 index 604989240..000000000 --- a/docs/docs/getting-started/installing.mdx +++ /dev/null @@ -1,147 +0,0 @@ ---- -sidebar_position: 0 -title: Installing the engine ---- - -# Installing the engine - -```mdx-code-block -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; -``` - -## Gradle -Add StarOpenSource's maven repository to your `build.gradle` file first: - - -```groovy -repositories { - mavenCentral() - - // sos!engine maven repository - maven { - name "staropensource-engine" - url "https://mvn.staropensource.de/engine" - } -} -``` - - -```kotlin -repositories { - mavenCentral() - - // sos!engine maven repository - maven { - name = "staropensource-engine" - url = uri("https://mvn.staropensource.de/engine") - } -} -``` - - - -After that declare the engine as a dependency to your project in the `build.gradle` file: - - -```groovy -dependencies { - // sos!engine base - implementation 'de.staropensource.engine:base:' + project.dependencyStarOpenSourceEngine - - // sos!engine subsystems - //implementation 'de.staropensource.engine:ansi:' + project.dependencyStarOpenSourceEngine // nice logging and ANSI support in your application - //compileOnly 'de.staropensource.engine:ansi:' + project.dependencyStarOpenSourceEngine // nice logging only - //compileOnly 'de.staropensource.engine:slf4j-compat:' + project.dependencyStarOpenSourceEngine // SLF4J compatibility - //implementation 'de.staropensource.engine:windowing:' + project.dependencyStarOpenSourceEngine // creating and managing windows, requires a Windowing API implementation - //compileOnly 'de.staropensource.engine:glfw:' + project.dependencyStarOpenSourceEngine // Windowing API implementation using GLFW - //implementation 'de.staropensource.engine:notification:' + project.dependencyStarOpenSourceEngine // sending and receiving notifications inside your application -} -``` - - -```kotlin -dependencies { - // sos!engine base - implementation("de.staropensource.engine:base:" + project.dependencyStarOpenSourceEngine) - - // sos!engine subsystems - //implementation ("de.staropensource.engine:ansi:" + project.dependencyStarOpenSourceEngine) // nice logging and ANSI support in your application - //compileOnly ("de.staropensource.engine:ansi:" + project.dependencyStarOpenSourceEngine) // nice logging only - //compileOnly ("de.staropensource.engine:slf4j-compat:" + project.dependencyStarOpenSourceEngine) // SLF4J compatibility - //implementation ("de.staropensource.engine:windowing:' + project.dependencyStarOpenSourceEngine) // creating and managing windows, requires a Windowing API implementation - //compileOnly ("de.staropensource.engine:glfw:' + project.dependencyStarOpenSourceEngine) // Windowing API implementation using GLFW - //implementation ("de.staropensource.engine:notification:' + project.dependencyStarOpenSourceEngine) // sending and receiving notifications inside your application -} -``` - - - -... and add this property to the `settings.gradle` file: -```properties -# Set this to the engine version you want to use -dependencyStarOpenSourceEngine=1-alpha8 -``` - -## Maven -Add StarOpenSource's maven repository to your `pom.xml` file first: -```xml - - - - staropensource-engine - staropensource-engine - https://mvn.staropensource.de/engine - - -``` - -After that declare the engine as a dependency in your project: - -```xml - - - - de.staropensource.engine - base - 1-alpha8 - - - - - - - - - -``` diff --git a/docs/docs/javadoc.md b/docs/docs/javadoc.md deleted file mode 100644 index b829f76c8..000000000 --- a/docs/docs/javadoc.md +++ /dev/null @@ -1,87 +0,0 @@ ---- -sidebar_position: 1 -title: Javadoc ---- - -# API Documentation -The engine API documentation covers the core engine and all official subsystems. - -- Latest commit (updates every hour) - - [All subsystems](https://jd.engine.staropensource.de/develop/all/) - - [base](https://jd.engine.staropensource.de/develop/base/) - - [ansi](https://jd.engine.staropensource.de/develop/ansi/) - - [slf4j-compat](https://jd.engine.staropensource.de/develop/slf4j-compat/) - - [windowing](https://jd.engine.staropensource.de/develop/windowing/) - - [windowing:glfw](https://jd.engine.staropensource.de/develop/windowing:glfw/) - - [notification](https://jd.engine.staropensource.de/develop/notification/) -- v1-alpha0 - - [All subsystems](https://jd.engine.staropensource.de/v1-alpha0/all/) - - [base](https://jd.engine.staropensource.de/v1-alpha0/base/) -- v1-alpha1 - - [All subsystem](https://jd.engine.staropensource.de/v1-alpha1/all/) - - [base](https://jd.engine.staropensource.de/v1-alpha1/base/) - - [slf4j-compat](https://jd.engine.staropensource.de/v1-alpha1/slf4j-compat/) - - [graphics](https://jd.engine.staropensource.de/v1-alpha1/graphics/) - - [graphics:opengl](https://jd.engine.staropensource.de/v1-alpha1/graphics:opengl/) - - [graphics:vulkan](https://jd.engine.staropensource.de/v1-alpha1/graphics:vulkan/) -- v1-alpha2 - - [All subsystem](https://jd.engine.staropensource.de/v1-alpha2/all/) - - [base](https://jd.engine.staropensource.de/v1-alpha2/base/) - - [ansi](https://jd.engine.staropensource.de/v1-alpha2/ansi/) - - [slf4j-compat](https://jd.engine.staropensource.de/v1-alpha2/slf4j-compat/) - - [graphics](https://jd.engine.staropensource.de/v1-alpha2/graphics/) - - [graphics:glfw](https://jd.engine.staropensource.de/v1-alpha2/graphics:glfw/) - - [graphics:opengl](https://jd.engine.staropensource.de/v1-alpha2/graphics:opengl/) - - [graphics:vulkan](https://jd.engine.staropensource.de/v1-alpha2/graphics:vulkan/) -- v1-alpha3 - - [All subsystem](https://jd.engine.staropensource.de/v1-alpha3/all/) - - [base](https://jd.engine.staropensource.de/v1-alpha3/base/) - - [ansi](https://jd.engine.staropensource.de/v1-alpha3/ansi/) - - [slf4j-compat](https://jd.engine.staropensource.de/v1-alpha3/slf4j-compat/) - - [graphics](https://jd.engine.staropensource.de/v1-alpha3/graphics/) - - [graphics:glfw](https://jd.engine.staropensource.de/v1-alpha3/graphics:glfw/) - - [graphics:opengl](https://jd.engine.staropensource.de/v1-alpha3/graphics:opengl/) - - [graphics:vulkan](https://jd.engine.staropensource.de/v1-alpha3/graphics:vulkan/) -- v1-alpha4 - - [All subsystem](https://jd.engine.staropensource.de/v1-alpha4/all/) - - [base](https://jd.engine.staropensource.de/v1-alpha4/base/) - - [testing](https://jd.engine.staropensource.de/v1-alpha4/testing/) - - [ansi](https://jd.engine.staropensource.de/v1-alpha4/ansi/) - - [slf4j-compat](https://jd.engine.staropensource.de/v1-alpha4/slf4j-compat/) - - [windowing](https://jd.engine.staropensource.de/v1-alpha4/windowing/) - - [windowing:glfw](https://jd.engine.staropensource.de/v1-alpha4/windowing:glfw/) -- v1-alpha5 - - [All subsystem](https://jd.engine.staropensource.de/v1-alpha5/all/) - - [base](https://jd.engine.staropensource.de/v1-alpha5/base/) - - [testing](https://jd.engine.staropensource.de/v1-alpha5/testing/) - - [ansi](https://jd.engine.staropensource.de/v1-alpha5/ansi/) - - [slf4j-compat](https://jd.engine.staropensource.de/v1-alpha5/slf4j-compat/) - - [windowing](https://jd.engine.staropensource.de/v1-alpha5/windowing/) - - [windowing:glfw](https://jd.engine.staropensource.de/v1-alpha5/windowing:glfw/) -- v1-alpha6 - - [All subsystem](https://jd.engine.staropensource.de/v1-alpha6/all/) - - [base](https://jd.engine.staropensource.de/v1-alpha6/base/) - - [testing](https://jd.engine.staropensource.de/v1-alpha6/testing/) - - [ansi](https://jd.engine.staropensource.de/v1-alpha6/ansi/) - - [slf4j-compat](https://jd.engine.staropensource.de/v1-alpha6/slf4j-compat/) - - [windowing](https://jd.engine.staropensource.de/v1-alpha6/windowing/) - - [windowing:glfw](https://jd.engine.staropensource.de/v1-alpha6/windowing:glfw/) - - [notification](https://jd.engine.staropensource.de/v1-alpha6/notification/) -- v1-alpha7 - - [All subsystem](https://jd.engine.staropensource.de/v1-alpha7/all/) - - [base](https://jd.engine.staropensource.de/v1-alpha7/base/) - - [testing](https://jd.engine.staropensource.de/v1-alpha7/testing/) - - [ansi](https://jd.engine.staropensource.de/v1-alpha7/ansi/) - - [slf4j-compat](https://jd.engine.staropensource.de/v1-alpha7/slf4j-compat/) - - [windowing](https://jd.engine.staropensource.de/v1-alpha7/windowing/) - - [windowing:glfw](https://jd.engine.staropensource.de/v1-alpha7/windowing:glfw/) - - [notification](https://jd.engine.staropensource.de/v1-alpha7/notification/) -- v1-alpha8 - - [All subsystem](https://jd.engine.staropensource.de/v1-alpha8/all/) - - [base](https://jd.engine.staropensource.de/v1-alpha8/base/) - - [testing](https://jd.engine.staropensource.de/v1-alpha8/testing/) - - [ansi](https://jd.engine.staropensource.de/v1-alpha8/ansi/) - - [slf4j-compat](https://jd.engine.staropensource.de/v1-alpha8/slf4j-compat/) - - [windowing](https://jd.engine.staropensource.de/v1-alpha8/windowing/) - - [windowing:glfw](https://jd.engine.staropensource.de/v1-alpha8/windowing:glfw/) - - [notification](https://jd.engine.staropensource.de/v1-alpha8/notification/) diff --git a/docs/docs/welcome.md b/docs/docs/welcome.md deleted file mode 100644 index 6b4b934d9..000000000 --- a/docs/docs/welcome.md +++ /dev/null @@ -1,93 +0,0 @@ ---- -sidebar_position: 0 -title: Welcome ---- - -# sos!engine documentation -Welcome to the documentation for the StarOpenSource Engine! - - - - - - -## What is it? -The StarOpenSource Engine (or **sos!engine** for short) is a modular, extensible and easy to use Java game and application engine. \ -It is responsible for printing log messages, providing utility methods, creating and managing windows, playing audio and much more. - -## There are `n` different game engines and application frameworks. Why another one? -True, there are many game engines and application frameworks out there. -I ([JeremyStarTM](https://git.staropensource.de/JeremyStarTM)) however have never seen an engine or framework be modular, -extendable and easy to configure at the same time. Additionally, we intend on -supporting applications and games. This means that you don't need to remember -different APIs for your different projects and can instead focus on just one, -perfecting your skills along the way. - -## Why Java? -Java. Some say it's an awful language. We disagree, strongly. - -While it has some pitfalls, it's almost the embodiment of -[OOP](https://en.wikipedia.org/wiki/Object-oriented_programming), -providing the perfect base for creating a modular engine -and framework like the sos!engine. - -Additionally, because of it's interpreted nature it's easy to -modify the bytecode at runtime and perform various things -to it before it's executed. This isn't really doable in other -programming languages easily. Just see what Minecraft modders are doing -to the game using the [Mixin](https://github.com/SpongePowered/Mixin) -framework. It's a perfect example. - -Also important to note is Java's portability. -Yes, it has it's constrains in some cases (like when accessing files), -but these can be worked around easily (see our `FileAccess` class for an example). -But generally, the code is portable. There's no need to cross-compile for -different CPU architectures and operating systems. You don't have to deal with -compilers and their 581^51 ways of configuring them. Just `javac` your source tree, -pack your compiled bytecode into a `.jar` and you're good to go. - -Lastly, you can use and mix various languages and compile them to different things. -Have Groovy code and want it to interact with Java code? That works! -You want to use Ruby to create a game using the sos!engine? -[You could do that](https://jruby.org). Want to compile your entire Java codebase -to JavaScript for usable on the web? [TeaVM has you covered](https://teavm.org/). -Want to compile your Java code into binaries for fast execution? -[There exists GraalVM native-image](https://www.graalvm.org/latest/reference-manual/native-image/). -Once you've written your Java code you can compile and interact with it however you like. -As far as I know no language is as good in this aspect as Java. - -And these are the reasons as to why we use Java over C++, Rust or other languages for example. -While yes, performance naturally suffers a bit, the JVM and computers in general have improved -heavily in performance over the years. From the slow thing Java once was it's almost as fast as -compiled code on modern machines. Most of the time you don't notice the difference. And if -performance is your concern, use GraalVM native-image as described above (note: the StarOpenSource Engine -does not yet support native-image, see [#3](https://git.staropensource.de/StarOpenSource/Engine/issues/3)). - -## Architecture of the engine -The engine is built as a modular system, containing the core engine (called `base`) -and various different subsystems. - -The job of the core engine is to provide a logging system, utility methods, ways -for subsystems to seamlessly function and much more required for building applications. - -Subsystems on the other hand usually handle complex tasks. -They usually provide abstractions for libraries or handle complicated tasks. -"But why are there so many of them?" you might ask. Good question! Subsystems -are intended to [do one thing and do it well](https://en.wikipedia.org/wiki/Unix_philosophy). -This avoids unnecessary bloat, having too many dependencies in your project while reducing the -size and memory footprint of your project. - -## Official subsystems -Besides the `base` engine, there are two stable subsystem and two experimental subsystems. - -There may be other subsystems out there. Please note though that they are not maintained -by the StarOpenSource Project directly and are not automatically updated with the engine. -### Stable -- [`ansi`](https://git.staropensource.de/StarOpenSource/Engine/src/branch/develop/ansi): Provides an ANSI logger and a ShortcodeParserSkeleton implementation for all your terminal formatting needs -- [`slf4j-compat`](https://git.staropensource.de/StarOpenSource/Engine/src/branch/develop/slf4j-compat): Provides a [SLF4J](https://slf4j.org/) compatibility logger for redirecting all log calls to the engine's logging system -### Experimental -- [`rendering`](https://git.staropensource.de/StarOpenSource/Engine/src/branch/develop/rendering): Provides an API for creating, managing and rendering windows -- [`notification`](https://git.staropensource.de/StarOpenSource/Engine/src/branch/develop/notification): Provides an API for sending and receiving notifications inside a program - -## API documentation -To read the engine API documentation, visit [jd.engine.staropensource.de](https://jd.engine.staropensource.de). diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts deleted file mode 100644 index a0b5f3f24..000000000 --- a/docs/docusaurus.config.ts +++ /dev/null @@ -1,139 +0,0 @@ -import {themes as prismThemes} from "prism-react-renderer"; -import type {Config} from "@docusaurus/types"; -import type * as Preset from "@docusaurus/preset-classic"; - -const config: Config = { - title: "StarOpenSource Engine", - url: "https://engine.staropensource.de", - baseUrl: "/", - - favicon: "dist/core.png", - trailingSlash: true, - i18n: { - defaultLocale: "en", - locales: [ "en" ], - }, - noIndex: false, - onBrokenLinks: "throw", - onBrokenAnchors: "throw", - onBrokenMarkdownLinks: "throw", - onDuplicateRoutes: "warn", - /* - onBrokenLinks: "ignore", - onBrokenAnchors: "ignore", - onBrokenMarkdownLinks: "ignore", - onDuplicateRoutes: "ignore", - */ - tagline: "A modular, extensible and easy to use Java game and application engine.", - - themeConfig: { - docs: { - sidebar: { - hideable: true, - autoCollapseCategories: true, - }, - }, - navbar: { - title: "sos!engine", - logo: { - alt: "Engine Logo", - src: "dist/engine.png", - href: '/welcome', - }, - items: [ - { - type: "docSidebar", - sidebarId: "sidebar", - label: "Documentation", - position: "left", - }, - { - href: "https://jd.engine.staropensource.de", - label: "JavaDoc", - position: "left", - }, - { - href: "https://develop.engine.staropensource.de", - label: "Development documentation", - position: "right", - }, - { - href: "https://git.staropensource.de/StarOpenSource/Engine", - label: "Source code", - position: "right", - }, - ], - }, - footer: { - style: "dark", - copyright: `Copyright (c) ${new Date().getFullYear()} The StarOpenSource Project & Contributors
Licensed under the GNU Affero General Public License version 3
Documentation generated with Docusaurus`, - }, - prism: { - theme: prismThemes.github, - darkTheme: prismThemes.dracula, - additionalLanguages: [ - 'java', - 'kotlin', - 'groovy' - ], - }, - } satisfies Preset.ThemeConfig, - - presets: [ - [ - "classic", { - debug: false, - - docs: { - path: "docs", - editUrl: "https://git.staropensource.de/StarOpenSource/Engine/_edit/develop/docs/", - editLocalizedFiles: false, - editCurrentVersion: true, - routeBasePath: "", - tagsBasePath: 'tags', - sidebarPath: "./sidebars.ts", - sidebarCollapsible: false, - sidebarCollapsed: false, - showLastUpdateAuthor: true, - showLastUpdateTime: true, - breadcrumbs: true, - includeCurrentVersion: true, - }, - sitemap: { - changefreq: "monthly", - priority: 0.5, - filename: "sitemap.xml", - }, - theme: { - customCss: "./src/css/custom.css", - }, - } satisfies Preset.Options, - ], - ], - - plugins: [ - [ - "@docusaurus/plugin-client-redirects", - { - fromExtensions: ["html", "htm", "php"], - redirects: [ - { - from: ["/", "/index"], - to: "/welcome", - }, - ], - }, - ], - ], - - markdown: { - format: "detect", - mermaid: false, - }, - - staticDirectories: ["static"], - titleDelimiter: "»", - baseUrlIssueBanner: true, -}; - -export default config; diff --git a/docs/package-lock.json b/docs/package-lock.json deleted file mode 100644 index 48bf87653..000000000 --- a/docs/package-lock.json +++ /dev/null @@ -1,14636 +0,0 @@ -{ - "name": "docs", - "version": "0.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "docs", - "version": "0.0.0", - "dependencies": { - "@docusaurus/core": "3.1.0", - "@docusaurus/preset-classic": "3.1.0", - "@mdx-js/react": "^3.0.0", - "clsx": "^2.0.0", - "prism-react-renderer": "^2.3.0", - "react": "^18.0.0", - "react-dom": "^18.0.0" - }, - "devDependencies": { - "@docusaurus/module-type-aliases": "3.1.0", - "@docusaurus/tsconfig": "3.1.0", - "@docusaurus/types": "3.1.0", - "typescript": "~5.2.2" - }, - "engines": { - "node": ">=18.0" - } - }, - "node_modules/@algolia/autocomplete-core": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.9.3.tgz", - "integrity": "sha512-009HdfugtGCdC4JdXUbVJClA0q0zh24yyePn+KUGk3rP7j8FEe/m5Yo/z65gn6nP/cM39PxpzqKrL7A6fP6PPw==", - "dependencies": { - "@algolia/autocomplete-plugin-algolia-insights": "1.9.3", - "@algolia/autocomplete-shared": "1.9.3" - } - }, - "node_modules/@algolia/autocomplete-plugin-algolia-insights": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-plugin-algolia-insights/-/autocomplete-plugin-algolia-insights-1.9.3.tgz", - "integrity": "sha512-a/yTUkcO/Vyy+JffmAnTWbr4/90cLzw+CC3bRbhnULr/EM0fGNvM13oQQ14f2moLMcVDyAx/leczLlAOovhSZg==", - "dependencies": { - "@algolia/autocomplete-shared": "1.9.3" - }, - "peerDependencies": { - "search-insights": ">= 1 < 3" - } - }, - "node_modules/@algolia/autocomplete-preset-algolia": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.9.3.tgz", - "integrity": "sha512-d4qlt6YmrLMYy95n5TB52wtNDr6EgAIPH81dvvvW8UmuWRgxEtY0NJiPwl/h95JtG2vmRM804M0DSwMCNZlzRA==", - "dependencies": { - "@algolia/autocomplete-shared": "1.9.3" - }, - "peerDependencies": { - "@algolia/client-search": ">= 4.9.1 < 6", - "algoliasearch": ">= 4.9.1 < 6" - } - }, - "node_modules/@algolia/autocomplete-shared": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.9.3.tgz", - "integrity": "sha512-Wnm9E4Ye6Rl6sTTqjoymD+l8DjSTHsHboVRYrKgEt8Q7UHm9nYbqhN/i0fhUYA3OAEH7WA8x3jfpnmJm3rKvaQ==", - "peerDependencies": { - "@algolia/client-search": ">= 4.9.1 < 6", - "algoliasearch": ">= 4.9.1 < 6" - } - }, - "node_modules/@algolia/cache-browser-local-storage": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/cache-browser-local-storage/-/cache-browser-local-storage-4.22.1.tgz", - "integrity": "sha512-Sw6IAmOCvvP6QNgY9j+Hv09mvkvEIDKjYW8ow0UDDAxSXy664RBNQk3i/0nt7gvceOJ6jGmOTimaZoY1THmU7g==", - "dependencies": { - "@algolia/cache-common": "4.22.1" - } - }, - "node_modules/@algolia/cache-common": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/cache-common/-/cache-common-4.22.1.tgz", - "integrity": "sha512-TJMBKqZNKYB9TptRRjSUtevJeQVXRmg6rk9qgFKWvOy8jhCPdyNZV1nB3SKGufzvTVbomAukFR8guu/8NRKBTA==" - }, - "node_modules/@algolia/cache-in-memory": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/cache-in-memory/-/cache-in-memory-4.22.1.tgz", - "integrity": "sha512-ve+6Ac2LhwpufuWavM/aHjLoNz/Z/sYSgNIXsinGofWOysPilQZPUetqLj8vbvi+DHZZaYSEP9H5SRVXnpsNNw==", - "dependencies": { - "@algolia/cache-common": "4.22.1" - } - }, - "node_modules/@algolia/client-account": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/client-account/-/client-account-4.22.1.tgz", - "integrity": "sha512-k8m+oegM2zlns/TwZyi4YgCtyToackkOpE+xCaKCYfBfDtdGOaVZCM5YvGPtK+HGaJMIN/DoTL8asbM3NzHonw==", - "dependencies": { - "@algolia/client-common": "4.22.1", - "@algolia/client-search": "4.22.1", - "@algolia/transporter": "4.22.1" - } - }, - "node_modules/@algolia/client-analytics": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-4.22.1.tgz", - "integrity": "sha512-1ssi9pyxyQNN4a7Ji9R50nSdISIumMFDwKNuwZipB6TkauJ8J7ha/uO60sPJFqQyqvvI+px7RSNRQT3Zrvzieg==", - "dependencies": { - "@algolia/client-common": "4.22.1", - "@algolia/client-search": "4.22.1", - "@algolia/requester-common": "4.22.1", - "@algolia/transporter": "4.22.1" - } - }, - "node_modules/@algolia/client-common": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-4.22.1.tgz", - "integrity": "sha512-IvaL5v9mZtm4k4QHbBGDmU3wa/mKokmqNBqPj0K7lcR8ZDKzUorhcGp/u8PkPC/e0zoHSTvRh7TRkGX3Lm7iOQ==", - "dependencies": { - "@algolia/requester-common": "4.22.1", - "@algolia/transporter": "4.22.1" - } - }, - "node_modules/@algolia/client-personalization": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-4.22.1.tgz", - "integrity": "sha512-sl+/klQJ93+4yaqZ7ezOttMQ/nczly/3GmgZXJ1xmoewP5jmdP/X/nV5U7EHHH3hCUEHeN7X1nsIhGPVt9E1cQ==", - "dependencies": { - "@algolia/client-common": "4.22.1", - "@algolia/requester-common": "4.22.1", - "@algolia/transporter": "4.22.1" - } - }, - "node_modules/@algolia/client-search": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-4.22.1.tgz", - "integrity": "sha512-yb05NA4tNaOgx3+rOxAmFztgMTtGBi97X7PC3jyNeGiwkAjOZc2QrdZBYyIdcDLoI09N0gjtpClcackoTN0gPA==", - "dependencies": { - "@algolia/client-common": "4.22.1", - "@algolia/requester-common": "4.22.1", - "@algolia/transporter": "4.22.1" - } - }, - "node_modules/@algolia/events": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@algolia/events/-/events-4.0.1.tgz", - "integrity": "sha512-FQzvOCgoFXAbf5Y6mYozw2aj5KCJoA3m4heImceldzPSMbdyS4atVjJzXKMsfX3wnZTFYwkkt8/z8UesLHlSBQ==" - }, - "node_modules/@algolia/logger-common": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/logger-common/-/logger-common-4.22.1.tgz", - "integrity": "sha512-OnTFymd2odHSO39r4DSWRFETkBufnY2iGUZNrMXpIhF5cmFE8pGoINNPzwg02QLBlGSaLqdKy0bM8S0GyqPLBg==" - }, - "node_modules/@algolia/logger-console": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/logger-console/-/logger-console-4.22.1.tgz", - "integrity": "sha512-O99rcqpVPKN1RlpgD6H3khUWylU24OXlzkavUAMy6QZd1776QAcauE3oP8CmD43nbaTjBexZj2nGsBH9Tc0FVA==", - "dependencies": { - "@algolia/logger-common": "4.22.1" - } - }, - "node_modules/@algolia/requester-browser-xhr": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-4.22.1.tgz", - "integrity": "sha512-dtQGYIg6MteqT1Uay3J/0NDqD+UciHy3QgRbk7bNddOJu+p3hzjTRYESqEnoX/DpEkaNYdRHUKNylsqMpgwaEw==", - "dependencies": { - "@algolia/requester-common": "4.22.1" - } - }, - "node_modules/@algolia/requester-common": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/requester-common/-/requester-common-4.22.1.tgz", - "integrity": "sha512-dgvhSAtg2MJnR+BxrIFqlLtkLlVVhas9HgYKMk2Uxiy5m6/8HZBL40JVAMb2LovoPFs9I/EWIoFVjOrFwzn5Qg==" - }, - "node_modules/@algolia/requester-node-http": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-4.22.1.tgz", - "integrity": "sha512-JfmZ3MVFQkAU+zug8H3s8rZ6h0ahHZL/SpMaSasTCGYR5EEJsCc8SI5UZ6raPN2tjxa5bxS13BRpGSBUens7EA==", - "dependencies": { - "@algolia/requester-common": "4.22.1" - } - }, - "node_modules/@algolia/transporter": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/@algolia/transporter/-/transporter-4.22.1.tgz", - "integrity": "sha512-kzWgc2c9IdxMa3YqA6TN0NW5VrKYYW/BELIn7vnLyn+U/RFdZ4lxxt9/8yq3DKV5snvoDzzO4ClyejZRdV3lMQ==", - "dependencies": { - "@algolia/cache-common": "4.22.1", - "@algolia/logger-common": "4.22.1", - "@algolia/requester-common": "4.22.1" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", - "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", - "dependencies": { - "@babel/highlight": "^7.23.4", - "chalk": "^2.4.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/code-frame/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/code-frame/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/code-frame/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", - "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.23.7", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.7.tgz", - "integrity": "sha512-+UpDgowcmqe36d4NwqvKsyPMlOLNGMsfMmQ5WGCu+siCe3t3dfe9njrzGfdN4qq+bcNUt0+Vw6haRxBOycs4dw==", - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.23.5", - "@babel/generator": "^7.23.6", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.23.7", - "@babel/parser": "^7.23.6", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.7", - "@babel/types": "^7.23.6", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/generator": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", - "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", - "dependencies": { - "@babel/types": "^7.23.6", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", - "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz", - "integrity": "sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==", - "dependencies": { - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", - "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", - "dependencies": { - "@babel/compat-data": "^7.23.5", - "@babel/helper-validator-option": "^7.23.5", - "browserslist": "^4.22.2", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.23.7", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.7.tgz", - "integrity": "sha512-xCoqR/8+BoNnXOY7RVSgv6X+o7pmT5q1d+gGcRlXYkI+9B31glE4jeejhKVpA04O1AtzOt7OSQ6VYKP5FcRl9g==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-member-expression-to-functions": "^7.23.0", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.20", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz", - "integrity": "sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "regexpu-core": "^5.3.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.4.tgz", - "integrity": "sha512-QcJMILQCu2jm5TFPGA3lCpJJTeEP+mqeXooG/NZbg/h5FTFi6V0+99ahlRsW8/kRLyb24LZVCCiclDedhLKcBA==", - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-plugin-utils": "^7.22.5", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz", - "integrity": "sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==", - "dependencies": { - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", - "dependencies": { - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", - "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz", - "integrity": "sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", - "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz", - "integrity": "sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-wrap-function": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", - "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-member-expression-to-functions": "^7.22.15", - "@babel/helper-optimise-call-expression": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz", - "integrity": "sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", - "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", - "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz", - "integrity": "sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==", - "dependencies": { - "@babel/helper-function-name": "^7.22.5", - "@babel/template": "^7.22.15", - "@babel/types": "^7.22.19" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.23.8", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.8.tgz", - "integrity": "sha512-KDqYz4PiOWvDFrdHLPhKtCThtIcKVy6avWD2oG4GEvyQ+XDZwHD4YQd+H2vNMnq2rkdxsDkU82T+Vk8U/WXHRQ==", - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.7", - "@babel/types": "^7.23.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", - "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", - "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/parser": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", - "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.23.3.tgz", - "integrity": "sha512-iRkKcCqb7iGnq9+3G6rZ+Ciz5VywC4XNRHe57lKM+jOeYAoR0lVqdeeDRfh0tQcTfw/+vBhHn926FmQhLtlFLQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.23.3.tgz", - "integrity": "sha512-WwlxbfMNdVEpQjZmK5mhm7oSwD3dS6eU+Iwsi4Knl9wAletWem7kaRsGOG+8UEbRyqxY4SS5zvtfXwX+jMxUwQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-transform-optional-chaining": "^7.23.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { - "version": "7.23.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.23.7.tgz", - "integrity": "sha512-LlRT7HgaifEpQA1ZgLVOIJZZFVPWN5iReq/7/JixwBtwcoeVGDBD53ZV28rrsLYOZs1Y/EHhA8N/Z6aazHR8cw==", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.23.3.tgz", - "integrity": "sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.23.3.tgz", - "integrity": "sha512-pawnE0P9g10xgoP7yKr6CK63K2FMsTE+FZidZO/1PwRdzmAPVs+HS1mAURUsgaoxammTJvULUdIkEK0gOcU2tA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", - "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", - "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.23.3.tgz", - "integrity": "sha512-NzQcQrzaQPkaEwoTm4Mhyl8jI1huEL/WWIEvudjTCMJ9aBZNpsJbMASx7EQECtQQPS/DcnFpo0FIh3LvEO9cxQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.23.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.7.tgz", - "integrity": "sha512-PdxEpL71bJp1byMG0va5gwQcXHxuEYC/BgI/e88mGTtohbZN28O5Yit0Plkkm/dBzCF/BxmbNcses1RH1T+urA==", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.20", - "@babel/plugin-syntax-async-generators": "^7.8.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.23.3.tgz", - "integrity": "sha512-A7LFsKi4U4fomjqXJlZg/u0ft/n8/7n7lpffUP/ZULx/DtV9SGlNKZolHH6PE8Xl1ngCc0M11OaeZptXVkfKSw==", - "dependencies": { - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.23.3.tgz", - "integrity": "sha512-vI+0sIaPIO6CNuM9Kk5VmXcMVRiOpDh7w2zZt9GXzmE/9KD70CUEVhvPR/etAeNK/FAEkhxQtXOzVF3EuRL41A==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.4.tgz", - "integrity": "sha512-0QqbP6B6HOh7/8iNR4CQU2Th/bbRtBp4KS9vcaZd1fZ0wSh5Fyssg0UCIHwxh+ka+pNDREbVLQnHCMHKZfPwfw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.23.3.tgz", - "integrity": "sha512-uM+AN8yCIjDPccsKGlw271xjJtGii+xQIF/uMPS8H15L12jZTsLfF4o5vNO7d/oUguOyfdikHGc/yi9ge4SGIg==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.23.4.tgz", - "integrity": "sha512-nsWu/1M+ggti1SOALj3hfx5FXzAY06fwPJsUZD4/A5e1bWi46VUIWtD+kOX6/IdhXGsXBWllLFDSnqSCdUNydQ==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.23.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.8.tgz", - "integrity": "sha512-yAYslGsY1bX6Knmg46RjiCiNSwJKv2IUC8qOdYKqMMr0491SXFhcHqOdRDeCRohOOIzwN/90C6mQ9qAKgrP7dg==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.20", - "@babel/helper-split-export-declaration": "^7.22.6", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.23.3.tgz", - "integrity": "sha512-dTj83UVTLw/+nbiHqQSFdwO9CbTtwq1DsDqm3CUEtDrZNET5rT5E6bIdTlOftDTDLMYxvxHNEYO4B9SLl8SLZw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/template": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.3.tgz", - "integrity": "sha512-n225npDqjDIr967cMScVKHXJs7rout1q+tt50inyBCPkyZ8KxeI6d+GIbSBTT/w/9WdlWDOej3V9HE5Lgk57gw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.23.3.tgz", - "integrity": "sha512-vgnFYDHAKzFaTVp+mneDsIEbnJ2Np/9ng9iviHw3P/KVcgONxpNULEW/51Z/BaFojG2GI2GwwXck5uV1+1NOYQ==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.23.3.tgz", - "integrity": "sha512-RrqQ+BQmU3Oyav3J+7/myfvRCq7Tbz+kKLLshUmMwNlDHExbGL7ARhajvoBJEvc+fCguPPu887N+3RRXBVKZUA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.23.4.tgz", - "integrity": "sha512-V6jIbLhdJK86MaLh4Jpghi8ho5fGzt3imHOBu/x0jlBaPYqDoWz4RDXjmMOfnh+JWNaQleEAByZLV0QzBT4YQQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.23.3.tgz", - "integrity": "sha512-5fhCsl1odX96u7ILKHBj4/Y8vipoqwsJMh4csSA8qFfxrZDEA4Ssku2DyNvMJSmZNOEBT750LfFPbtrnTP90BQ==", - "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.23.4.tgz", - "integrity": "sha512-GzuSBcKkx62dGzZI1WVgTWvkkz84FZO5TC5T8dl/Tht/rAla6Dg/Mz9Yhypg+ezVACf/rgDuQt3kbWEv7LdUDQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.6.tgz", - "integrity": "sha512-aYH4ytZ0qSuBbpfhuofbg/e96oQ7U2w1Aw/UQmKT+1l39uEhUPoFS3fHevDc1G0OvewyDudfMKY1OulczHzWIw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.23.3.tgz", - "integrity": "sha512-I1QXp1LxIvt8yLaib49dRW5Okt7Q4oaxao6tFVKS/anCdEOMtYwWVKoiOA1p34GOWIZjUK0E+zCp7+l1pfQyiw==", - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.23.4.tgz", - "integrity": "sha512-81nTOqM1dMwZ/aRXQ59zVubN9wHGqk6UtqRK+/q+ciXmRy8fSolhGVvG09HHRGo4l6fr/c4ZhXUQH0uFW7PZbg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-json-strings": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.23.3.tgz", - "integrity": "sha512-wZ0PIXRxnwZvl9AYpqNUxpZ5BiTGrYt7kueGQ+N5FiQ7RCOD4cm8iShd6S6ggfVIWaJf2EMk8eRzAh52RfP4rQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.23.4.tgz", - "integrity": "sha512-Mc/ALf1rmZTP4JKKEhUwiORU+vcfarFVLfcFiolKUo6sewoxSEgl36ak5t+4WamRsNr6nzjZXQjM35WsU+9vbg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.23.3.tgz", - "integrity": "sha512-sC3LdDBDi5x96LA+Ytekz2ZPk8i/Ck+DEuDbRAll5rknJ5XRTSaPKEYwomLcs1AA8wg9b3KjIQRsnApj+q51Ag==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.3.tgz", - "integrity": "sha512-vJYQGxeKM4t8hYCKVBlZX/gtIY2I7mRGFNcm85sgXGMTBcoV3QdVtdpbcWEbzbfUIUZKwvgFT82mRvaQIebZzw==", - "dependencies": { - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.3.tgz", - "integrity": "sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==", - "dependencies": { - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-simple-access": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.3.tgz", - "integrity": "sha512-ZxyKGTkF9xT9YJuKQRo19ewf3pXpopuYQd8cDXqNzc3mUNbOME0RKMoZxviQk74hwzfQsEe66dE92MaZbdHKNQ==", - "dependencies": { - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.23.3.tgz", - "integrity": "sha512-zHsy9iXX2nIsCBFPud3jKn1IRPWg3Ing1qOZgeKV39m1ZgIdpJqvlWVeiHBZC6ITRG0MfskhYe9cLgntfSFPIg==", - "dependencies": { - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz", - "integrity": "sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.23.3.tgz", - "integrity": "sha512-YJ3xKqtJMAT5/TIZnpAR3I+K+WaDowYbN3xyxI8zxx/Gsypwf9B9h0VB+1Nh6ACAAPRS5NSRje0uVv5i79HYGQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.23.4.tgz", - "integrity": "sha512-jHE9EVVqHKAQx+VePv5LLGHjmHSJR76vawFPTdlxR/LVJPfOEGxREQwQfjuZEOPTwG92X3LINSh3M40Rv4zpVA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.23.4.tgz", - "integrity": "sha512-mps6auzgwjRrwKEZA05cOwuDc9FAzoyFS4ZsG/8F43bTLf/TgkJg7QXOrPO1JO599iA3qgK9MXdMGOEC8O1h6Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.23.4.tgz", - "integrity": "sha512-9x9K1YyeQVw0iOXJlIzwm8ltobIIv7j2iLyP2jIhEbqPRQ7ScNgwQufU2I0Gq11VjyG4gI4yMXt2VFags+1N3g==", - "dependencies": { - "@babel/compat-data": "^7.23.3", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.23.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.23.3.tgz", - "integrity": "sha512-BwQ8q0x2JG+3lxCVFohg+KbQM7plfpBwThdW9A6TMtWwLsbDA01Ek2Zb/AgDN39BiZsExm4qrXxjk+P1/fzGrA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.23.4.tgz", - "integrity": "sha512-XIq8t0rJPHf6Wvmbn9nFxU6ao4c7WhghTR5WyV8SrJfUFzyxhCm4nhC+iAp3HFhbAKLfYpgzhJ6t4XCtVwqO5A==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.4.tgz", - "integrity": "sha512-ZU8y5zWOfjM5vZ+asjgAPwDaBjJzgufjES89Rs4Lpq63O300R/kOz30WCLo6BxxX6QVEilwSlpClnG5cZaikTA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.23.3.tgz", - "integrity": "sha512-09lMt6UsUb3/34BbECKVbVwrT9bO6lILWln237z7sLaWnMsTi7Yc9fhX5DLpkJzAGfaReXI22wP41SZmnAA3Vw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.23.3.tgz", - "integrity": "sha512-UzqRcRtWsDMTLrRWFvUBDwmw06tCQH9Rl1uAjfh6ijMSmGYQ+fpdB+cnqRC8EMh5tuuxSv0/TejGL+7vyj+50g==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.23.4.tgz", - "integrity": "sha512-9G3K1YqTq3F4Vt88Djx1UZ79PDyj+yKRnUy7cZGSMe+a7jkwD259uKKuUzQlPkGam7R+8RJwh5z4xO27fA1o2A==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.23.3.tgz", - "integrity": "sha512-jR3Jn3y7cZp4oEWPFAlRsSWjxKe4PZILGBSd4nis1TsC5qeSpb+nrtihJuDhNI7QHiVbUaiXa0X2RZY3/TI6Nw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-constant-elements": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.23.3.tgz", - "integrity": "sha512-zP0QKq/p6O42OL94udMgSfKXyse4RyJ0JqbQ34zDAONWjyrEsghYEyTSK5FIpmXmCpB55SHokL1cRRKHv8L2Qw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-display-name": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.23.3.tgz", - "integrity": "sha512-GnvhtVfA2OAtzdX58FJxU19rhoGeQzyVndw3GgtdECQvQFXPEZIOVULHVZGAYmOgmqjXpVpfocAbSjh99V/Fqw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.23.4.tgz", - "integrity": "sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-jsx": "^7.23.3", - "@babel/types": "^7.23.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-development": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.22.5.tgz", - "integrity": "sha512-bDhuzwWMuInwCYeDeMzyi7TaBgRQei6DqxhbyniL7/VG4RSS7HtSL2QbY4eESy1KJqlWt8g3xeEBGPuo+XqC8A==", - "dependencies": { - "@babel/plugin-transform-react-jsx": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-pure-annotations": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.23.3.tgz", - "integrity": "sha512-qMFdSS+TUhB7Q/3HVPnEdYJDQIk57jkntAwSuz9xfSE4n+3I+vHYCli3HoHawN1Z3RfCz/y1zXA/JXjG6cVImQ==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.23.3.tgz", - "integrity": "sha512-KP+75h0KghBMcVpuKisx3XTu9Ncut8Q8TuvGO4IhY+9D5DFEckQefOuIsB/gQ2tG71lCke4NMrtIPS8pOj18BQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "regenerator-transform": "^0.15.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.23.3.tgz", - "integrity": "sha512-QnNTazY54YqgGxwIexMZva9gqbPa15t/x9VS+0fsEFWplwVpXYZivtgl43Z1vMpc1bdPP2PP8siFeVcnFvA3Cg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-runtime": { - "version": "7.23.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.23.7.tgz", - "integrity": "sha512-fa0hnfmiXc9fq/weK34MUV0drz2pOL/vfKWvN7Qw127hiUPabFCUMgAbYWcchRzMJit4o5ARsK/s+5h0249pLw==", - "dependencies": { - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "babel-plugin-polyfill-corejs2": "^0.4.7", - "babel-plugin-polyfill-corejs3": "^0.8.7", - "babel-plugin-polyfill-regenerator": "^0.5.4", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.23.3.tgz", - "integrity": "sha512-ED2fgqZLmexWiN+YNFX26fx4gh5qHDhn1O2gvEhreLW2iI63Sqm4llRLCXALKrCnbN4Jy0VcMQZl/SAzqug/jg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.23.3.tgz", - "integrity": "sha512-VvfVYlrlBVu+77xVTOAoxQ6mZbnIq5FM0aGBSFEcIh03qHf+zNqA4DC/3XMUozTg7bZV3e3mZQ0i13VB6v5yUg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.23.3.tgz", - "integrity": "sha512-HZOyN9g+rtvnOU3Yh7kSxXrKbzgrm5X4GncPY1QOquu7epga5MxKHVpYu2hvQnry/H+JjckSYRb93iNfsioAGg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.23.3.tgz", - "integrity": "sha512-Flok06AYNp7GV2oJPZZcP9vZdszev6vPBkHLwxwSpaIqx75wn6mUd3UFWsSsA0l8nXAKkyCmL/sR02m8RYGeHg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.23.3.tgz", - "integrity": "sha512-4t15ViVnaFdrPC74be1gXBSMzXk3B4Us9lP7uLRQHTFpV5Dvt33pn+2MyyNxmN3VTTm3oTrZVMUmuw3oBnQ2oQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typescript": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.23.6.tgz", - "integrity": "sha512-6cBG5mBvUu4VUD04OHKnYzbuHNP8huDsD3EDqqpIpsswTDoqHCjLoHb6+QgsV1WsT2nipRqCPgxD3LXnEO7XfA==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.23.6", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-typescript": "^7.23.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.23.3.tgz", - "integrity": "sha512-OMCUx/bU6ChE3r4+ZdylEqAjaQgHAgipgW8nsCfu5pGqDcFytVd91AwRvUJSBZDz0exPGgnjoqhgRYLRjFZc9Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.23.3.tgz", - "integrity": "sha512-KcLIm+pDZkWZQAFJ9pdfmh89EwVfmNovFBcXko8szpBeF8z68kWIPeKlmSOkT9BXJxs2C0uk+5LxoxIv62MROA==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.23.3.tgz", - "integrity": "sha512-wMHpNA4x2cIA32b/ci3AfwNgheiva2W0WUKWTK7vBHBhDKfPsc5cFGNWm69WBqpwd86u1qwZ9PWevKqm1A3yAw==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.23.3.tgz", - "integrity": "sha512-W7lliA/v9bNR83Qc3q1ip9CQMZ09CcHDbHfbLRDNuAhn1Mvkr1ZNF7hPmztMQvtTGVLJ9m8IZqWsTkXOml8dbw==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.23.8", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.8.tgz", - "integrity": "sha512-lFlpmkApLkEP6woIKprO6DO60RImpatTQKtz4sUcDjVcK8M8mQ4sZsuxaTMNOZf0sqAq/ReYW1ZBHnOQwKpLWA==", - "dependencies": { - "@babel/compat-data": "^7.23.5", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-option": "^7.23.5", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.23.3", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.23.7", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.23.3", - "@babel/plugin-syntax-import-attributes": "^7.23.3", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.23.3", - "@babel/plugin-transform-async-generator-functions": "^7.23.7", - "@babel/plugin-transform-async-to-generator": "^7.23.3", - "@babel/plugin-transform-block-scoped-functions": "^7.23.3", - "@babel/plugin-transform-block-scoping": "^7.23.4", - "@babel/plugin-transform-class-properties": "^7.23.3", - "@babel/plugin-transform-class-static-block": "^7.23.4", - "@babel/plugin-transform-classes": "^7.23.8", - "@babel/plugin-transform-computed-properties": "^7.23.3", - "@babel/plugin-transform-destructuring": "^7.23.3", - "@babel/plugin-transform-dotall-regex": "^7.23.3", - "@babel/plugin-transform-duplicate-keys": "^7.23.3", - "@babel/plugin-transform-dynamic-import": "^7.23.4", - "@babel/plugin-transform-exponentiation-operator": "^7.23.3", - "@babel/plugin-transform-export-namespace-from": "^7.23.4", - "@babel/plugin-transform-for-of": "^7.23.6", - "@babel/plugin-transform-function-name": "^7.23.3", - "@babel/plugin-transform-json-strings": "^7.23.4", - "@babel/plugin-transform-literals": "^7.23.3", - "@babel/plugin-transform-logical-assignment-operators": "^7.23.4", - "@babel/plugin-transform-member-expression-literals": "^7.23.3", - "@babel/plugin-transform-modules-amd": "^7.23.3", - "@babel/plugin-transform-modules-commonjs": "^7.23.3", - "@babel/plugin-transform-modules-systemjs": "^7.23.3", - "@babel/plugin-transform-modules-umd": "^7.23.3", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", - "@babel/plugin-transform-new-target": "^7.23.3", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4", - "@babel/plugin-transform-numeric-separator": "^7.23.4", - "@babel/plugin-transform-object-rest-spread": "^7.23.4", - "@babel/plugin-transform-object-super": "^7.23.3", - "@babel/plugin-transform-optional-catch-binding": "^7.23.4", - "@babel/plugin-transform-optional-chaining": "^7.23.4", - "@babel/plugin-transform-parameters": "^7.23.3", - "@babel/plugin-transform-private-methods": "^7.23.3", - "@babel/plugin-transform-private-property-in-object": "^7.23.4", - "@babel/plugin-transform-property-literals": "^7.23.3", - "@babel/plugin-transform-regenerator": "^7.23.3", - "@babel/plugin-transform-reserved-words": "^7.23.3", - "@babel/plugin-transform-shorthand-properties": "^7.23.3", - "@babel/plugin-transform-spread": "^7.23.3", - "@babel/plugin-transform-sticky-regex": "^7.23.3", - "@babel/plugin-transform-template-literals": "^7.23.3", - "@babel/plugin-transform-typeof-symbol": "^7.23.3", - "@babel/plugin-transform-unicode-escapes": "^7.23.3", - "@babel/plugin-transform-unicode-property-regex": "^7.23.3", - "@babel/plugin-transform-unicode-regex": "^7.23.3", - "@babel/plugin-transform-unicode-sets-regex": "^7.23.3", - "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.7", - "babel-plugin-polyfill-corejs3": "^0.8.7", - "babel-plugin-polyfill-regenerator": "^0.5.4", - "core-js-compat": "^3.31.0", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-env/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/preset-modules": { - "version": "0.1.6-no-external-plugins", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", - "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/preset-react": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.23.3.tgz", - "integrity": "sha512-tbkHOS9axH6Ysf2OUEqoSZ6T3Fa2SrNH6WTWSPBboxKzdxNc9qOICeLXkNG0ZEwbQ1HY8liwOce4aN/Ceyuq6w==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-option": "^7.22.15", - "@babel/plugin-transform-react-display-name": "^7.23.3", - "@babel/plugin-transform-react-jsx": "^7.22.15", - "@babel/plugin-transform-react-jsx-development": "^7.22.5", - "@babel/plugin-transform-react-pure-annotations": "^7.23.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-typescript": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.3.tgz", - "integrity": "sha512-17oIGVlqz6CchO9RFYn5U6ZpWRZIngayYCtrPRSgANSwC2V1Jb+iP74nVxzzXJte8b8BYxrL1yY96xfhTBrNNQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-option": "^7.22.15", - "@babel/plugin-syntax-jsx": "^7.23.3", - "@babel/plugin-transform-modules-commonjs": "^7.23.3", - "@babel/plugin-transform-typescript": "^7.23.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" - }, - "node_modules/@babel/runtime": { - "version": "7.23.8", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.8.tgz", - "integrity": "sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==", - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/runtime-corejs3": { - "version": "7.23.8", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.23.8.tgz", - "integrity": "sha512-2ZzmcDugdm0/YQKFVYsXiwUN7USPX8PM7cytpb4PFl87fM+qYPSvTZX//8tyeJB1j0YDmafBJEbl5f8NfLyuKw==", - "dependencies": { - "core-js-pure": "^3.30.2", - "regenerator-runtime": "^0.14.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.23.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.7.tgz", - "integrity": "sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg==", - "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/generator": "^7.23.6", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.6", - "@babel/types": "^7.23.6", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", - "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", - "dependencies": { - "@babel/helper-string-parser": "^7.23.4", - "@babel/helper-validator-identifier": "^7.22.20", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@colors/colors": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", - "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", - "optional": true, - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/@discoveryjs/json-ext": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", - "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/@docsearch/css": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.5.2.tgz", - "integrity": "sha512-SPiDHaWKQZpwR2siD0KQUwlStvIAnEyK6tAE2h2Wuoq8ue9skzhlyVQ1ddzOxX6khULnAALDiR/isSF3bnuciA==" - }, - "node_modules/@docsearch/react": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.5.2.tgz", - "integrity": "sha512-9Ahcrs5z2jq/DcAvYtvlqEBHImbm4YJI8M9y0x6Tqg598P40HTEkX7hsMcIuThI+hTFxRGZ9hll0Wygm2yEjng==", - "dependencies": { - "@algolia/autocomplete-core": "1.9.3", - "@algolia/autocomplete-preset-algolia": "1.9.3", - "@docsearch/css": "3.5.2", - "algoliasearch": "^4.19.1" - }, - "peerDependencies": { - "@types/react": ">= 16.8.0 < 19.0.0", - "react": ">= 16.8.0 < 19.0.0", - "react-dom": ">= 16.8.0 < 19.0.0", - "search-insights": ">= 1 < 3" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "react": { - "optional": true - }, - "react-dom": { - "optional": true - }, - "search-insights": { - "optional": true - } - } - }, - "node_modules/@docusaurus/core": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/core/-/core-3.1.0.tgz", - "integrity": "sha512-GWudMGYA9v26ssbAWJNfgeDZk+lrudUTclLPRsmxiknEBk7UMp7Rglonhqbsf3IKHOyHkMU4Fr5jFyg5SBx9jQ==", - "dependencies": { - "@babel/core": "^7.23.3", - "@babel/generator": "^7.23.3", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-transform-runtime": "^7.22.9", - "@babel/preset-env": "^7.22.9", - "@babel/preset-react": "^7.22.5", - "@babel/preset-typescript": "^7.22.5", - "@babel/runtime": "^7.22.6", - "@babel/runtime-corejs3": "^7.22.6", - "@babel/traverse": "^7.22.8", - "@docusaurus/cssnano-preset": "3.1.0", - "@docusaurus/logger": "3.1.0", - "@docusaurus/mdx-loader": "3.1.0", - "@docusaurus/react-loadable": "5.5.2", - "@docusaurus/utils": "3.1.0", - "@docusaurus/utils-common": "3.1.0", - "@docusaurus/utils-validation": "3.1.0", - "@slorber/static-site-generator-webpack-plugin": "^4.0.7", - "@svgr/webpack": "^6.5.1", - "autoprefixer": "^10.4.14", - "babel-loader": "^9.1.3", - "babel-plugin-dynamic-import-node": "^2.3.3", - "boxen": "^6.2.1", - "chalk": "^4.1.2", - "chokidar": "^3.5.3", - "clean-css": "^5.3.2", - "cli-table3": "^0.6.3", - "combine-promises": "^1.1.0", - "commander": "^5.1.0", - "copy-webpack-plugin": "^11.0.0", - "core-js": "^3.31.1", - "css-loader": "^6.8.1", - "css-minimizer-webpack-plugin": "^4.2.2", - "cssnano": "^5.1.15", - "del": "^6.1.1", - "detect-port": "^1.5.1", - "escape-html": "^1.0.3", - "eta": "^2.2.0", - "file-loader": "^6.2.0", - "fs-extra": "^11.1.1", - "html-minifier-terser": "^7.2.0", - "html-tags": "^3.3.1", - "html-webpack-plugin": "^5.5.3", - "leven": "^3.1.0", - "lodash": "^4.17.21", - "mini-css-extract-plugin": "^2.7.6", - "postcss": "^8.4.26", - "postcss-loader": "^7.3.3", - "prompts": "^2.4.2", - "react-dev-utils": "^12.0.1", - "react-helmet-async": "^1.3.0", - "react-loadable": "npm:@docusaurus/react-loadable@5.5.2", - "react-loadable-ssr-addon-v5-slorber": "^1.0.1", - "react-router": "^5.3.4", - "react-router-config": "^5.1.1", - "react-router-dom": "^5.3.4", - "rtl-detect": "^1.0.4", - "semver": "^7.5.4", - "serve-handler": "^6.1.5", - "shelljs": "^0.8.5", - "terser-webpack-plugin": "^5.3.9", - "tslib": "^2.6.0", - "update-notifier": "^6.0.2", - "url-loader": "^4.1.1", - "webpack": "^5.88.1", - "webpack-bundle-analyzer": "^4.9.0", - "webpack-dev-server": "^4.15.1", - "webpack-merge": "^5.9.0", - "webpackbar": "^5.0.2" - }, - "bin": { - "docusaurus": "bin/docusaurus.mjs" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/cssnano-preset": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/cssnano-preset/-/cssnano-preset-3.1.0.tgz", - "integrity": "sha512-ned7qsgCqSv/e7KyugFNroAfiszuxLwnvMW7gmT2Ywxb/Nyt61yIw7KHyAZCMKglOalrqnYA4gMhLUCK/mVePA==", - "dependencies": { - "cssnano-preset-advanced": "^5.3.10", - "postcss": "^8.4.26", - "postcss-sort-media-queries": "^4.4.1", - "tslib": "^2.6.0" - }, - "engines": { - "node": ">=18.0" - } - }, - "node_modules/@docusaurus/logger": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/logger/-/logger-3.1.0.tgz", - "integrity": "sha512-p740M+HCst1VnKKzL60Hru9xfG4EUYJDarjlEC4hHeBy9+afPmY3BNPoSHx9/8zxuYfUlv/psf7I9NvRVdmdvg==", - "dependencies": { - "chalk": "^4.1.2", - "tslib": "^2.6.0" - }, - "engines": { - "node": ">=18.0" - } - }, - "node_modules/@docusaurus/mdx-loader": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/mdx-loader/-/mdx-loader-3.1.0.tgz", - "integrity": "sha512-D7onDz/3mgBonexWoQXPw3V2E5Bc4+jYRf9gGUUK+KoQwU8xMDaDkUUfsr7t6UBa/xox9p5+/3zwLuXOYMzGSg==", - "dependencies": { - "@babel/parser": "^7.22.7", - "@babel/traverse": "^7.22.8", - "@docusaurus/logger": "3.1.0", - "@docusaurus/utils": "3.1.0", - "@docusaurus/utils-validation": "3.1.0", - "@mdx-js/mdx": "^3.0.0", - "@slorber/remark-comment": "^1.0.0", - "escape-html": "^1.0.3", - "estree-util-value-to-estree": "^3.0.1", - "file-loader": "^6.2.0", - "fs-extra": "^11.1.1", - "image-size": "^1.0.2", - "mdast-util-mdx": "^3.0.0", - "mdast-util-to-string": "^4.0.0", - "rehype-raw": "^7.0.0", - "remark-directive": "^3.0.0", - "remark-emoji": "^4.0.0", - "remark-frontmatter": "^5.0.0", - "remark-gfm": "^4.0.0", - "stringify-object": "^3.3.0", - "tslib": "^2.6.0", - "unified": "^11.0.3", - "unist-util-visit": "^5.0.0", - "url-loader": "^4.1.1", - "vfile": "^6.0.1", - "webpack": "^5.88.1" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/module-type-aliases": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/module-type-aliases/-/module-type-aliases-3.1.0.tgz", - "integrity": "sha512-XUl7Z4PWlKg4l6KF05JQ3iDHQxnPxbQUqTNKvviHyuHdlalOFv6qeDAm7IbzyQPJD5VA6y4dpRbTWSqP9ClwPg==", - "dependencies": { - "@docusaurus/react-loadable": "5.5.2", - "@docusaurus/types": "3.1.0", - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router-config": "*", - "@types/react-router-dom": "*", - "react-helmet-async": "*", - "react-loadable": "npm:@docusaurus/react-loadable@5.5.2" - }, - "peerDependencies": { - "react": "*", - "react-dom": "*" - } - }, - "node_modules/@docusaurus/plugin-content-blog": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-blog/-/plugin-content-blog-3.1.0.tgz", - "integrity": "sha512-iMa6WBaaEdYuxckvJtLcq/HQdlA4oEbCXf/OFfsYJCCULcDX7GDZpKxLF3X1fLsax3sSm5bmsU+CA0WD+R1g3A==", - "dependencies": { - "@docusaurus/core": "3.1.0", - "@docusaurus/logger": "3.1.0", - "@docusaurus/mdx-loader": "3.1.0", - "@docusaurus/types": "3.1.0", - "@docusaurus/utils": "3.1.0", - "@docusaurus/utils-common": "3.1.0", - "@docusaurus/utils-validation": "3.1.0", - "cheerio": "^1.0.0-rc.12", - "feed": "^4.2.2", - "fs-extra": "^11.1.1", - "lodash": "^4.17.21", - "reading-time": "^1.5.0", - "srcset": "^4.0.0", - "tslib": "^2.6.0", - "unist-util-visit": "^5.0.0", - "utility-types": "^3.10.0", - "webpack": "^5.88.1" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/plugin-content-docs": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-docs/-/plugin-content-docs-3.1.0.tgz", - "integrity": "sha512-el5GxhT8BLrsWD0qGa8Rq+Ttb/Ni6V3DGT2oAPio0qcs/mUAxeyXEAmihkvmLCnAgp6xD27Ce7dISZ5c6BXeqA==", - "dependencies": { - "@docusaurus/core": "3.1.0", - "@docusaurus/logger": "3.1.0", - "@docusaurus/mdx-loader": "3.1.0", - "@docusaurus/module-type-aliases": "3.1.0", - "@docusaurus/types": "3.1.0", - "@docusaurus/utils": "3.1.0", - "@docusaurus/utils-validation": "3.1.0", - "@types/react-router-config": "^5.0.7", - "combine-promises": "^1.1.0", - "fs-extra": "^11.1.1", - "js-yaml": "^4.1.0", - "lodash": "^4.17.21", - "tslib": "^2.6.0", - "utility-types": "^3.10.0", - "webpack": "^5.88.1" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/plugin-content-pages": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-pages/-/plugin-content-pages-3.1.0.tgz", - "integrity": "sha512-9gntYQFpk+93+Xl7gYczJu8I9uWoyRLnRwS0+NUFcs9iZtHKsdqKWPRrONC9elfN3wJ9ORwTbcVzsTiB8jvYlg==", - "dependencies": { - "@docusaurus/core": "3.1.0", - "@docusaurus/mdx-loader": "3.1.0", - "@docusaurus/types": "3.1.0", - "@docusaurus/utils": "3.1.0", - "@docusaurus/utils-validation": "3.1.0", - "fs-extra": "^11.1.1", - "tslib": "^2.6.0", - "webpack": "^5.88.1" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/plugin-debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-debug/-/plugin-debug-3.1.0.tgz", - "integrity": "sha512-AbvJwCVRbmQ8w9d8QXbF4Iq/ui0bjPZNYFIhtducGFnm2YQRN1mraK8mCEQb0Aq0T8SqRRvSfC/far4n/s531w==", - "dependencies": { - "@docusaurus/core": "3.1.0", - "@docusaurus/types": "3.1.0", - "@docusaurus/utils": "3.1.0", - "fs-extra": "^11.1.1", - "react-json-view-lite": "^1.2.0", - "tslib": "^2.6.0" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/plugin-google-analytics": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-analytics/-/plugin-google-analytics-3.1.0.tgz", - "integrity": "sha512-zvUOMzu9Uhz0ciqnSbtnp/5i1zEYlzarQrOXG90P3Is3efQI43p2YLW/rzSGdLb5MfQo2HvKT6Q5+tioMO045Q==", - "dependencies": { - "@docusaurus/core": "3.1.0", - "@docusaurus/types": "3.1.0", - "@docusaurus/utils-validation": "3.1.0", - "tslib": "^2.6.0" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/plugin-google-gtag": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-3.1.0.tgz", - "integrity": "sha512-0txshvaY8qIBdkk2UATdVcfiCLGq3KAUfuRQD2cRNgO39iIf4/ihQxH9NXcRTwKs4Q5d9yYHoix3xT6pFuEYOg==", - "dependencies": { - "@docusaurus/core": "3.1.0", - "@docusaurus/types": "3.1.0", - "@docusaurus/utils-validation": "3.1.0", - "@types/gtag.js": "^0.0.12", - "tslib": "^2.6.0" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/plugin-google-tag-manager": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-tag-manager/-/plugin-google-tag-manager-3.1.0.tgz", - "integrity": "sha512-zOWPEi8kMyyPtwG0vhyXrdbLs8fIZmY5vlbi9lUU+v8VsroO5iHmfR2V3SMsrsfOanw5oV/ciWqbxezY00qEZg==", - "dependencies": { - "@docusaurus/core": "3.1.0", - "@docusaurus/types": "3.1.0", - "@docusaurus/utils-validation": "3.1.0", - "tslib": "^2.6.0" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/plugin-sitemap": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-sitemap/-/plugin-sitemap-3.1.0.tgz", - "integrity": "sha512-TkR5vGBpUooEB9SoW42thahqqwKzfHrQQhkB+JrEGERsl4bKODSuJNle4aA4h6LSkg4IyfXOW8XOI0NIPWb9Cg==", - "dependencies": { - "@docusaurus/core": "3.1.0", - "@docusaurus/logger": "3.1.0", - "@docusaurus/types": "3.1.0", - "@docusaurus/utils": "3.1.0", - "@docusaurus/utils-common": "3.1.0", - "@docusaurus/utils-validation": "3.1.0", - "fs-extra": "^11.1.1", - "sitemap": "^7.1.1", - "tslib": "^2.6.0" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/preset-classic": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/preset-classic/-/preset-classic-3.1.0.tgz", - "integrity": "sha512-xGLQRFmmT9IinAGUDVRYZ54Ys28USNbA3OTXQXnSJLPr1rCY7CYnHI4XoOnKWrNnDiAI4ruMzunXWyaElUYCKQ==", - "dependencies": { - "@docusaurus/core": "3.1.0", - "@docusaurus/plugin-content-blog": "3.1.0", - "@docusaurus/plugin-content-docs": "3.1.0", - "@docusaurus/plugin-content-pages": "3.1.0", - "@docusaurus/plugin-debug": "3.1.0", - "@docusaurus/plugin-google-analytics": "3.1.0", - "@docusaurus/plugin-google-gtag": "3.1.0", - "@docusaurus/plugin-google-tag-manager": "3.1.0", - "@docusaurus/plugin-sitemap": "3.1.0", - "@docusaurus/theme-classic": "3.1.0", - "@docusaurus/theme-common": "3.1.0", - "@docusaurus/theme-search-algolia": "3.1.0", - "@docusaurus/types": "3.1.0" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/react-loadable": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz", - "integrity": "sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==", - "dependencies": { - "@types/react": "*", - "prop-types": "^15.6.2" - }, - "peerDependencies": { - "react": "*" - } - }, - "node_modules/@docusaurus/theme-classic": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-classic/-/theme-classic-3.1.0.tgz", - "integrity": "sha512-/+jMl2Z9O8QQxves5AtHdt91gWsEZFgOV3La/6eyKEd7QLqQUtM5fxEJ40rq9NKYjqCd1HzZ9egIMeJoWwillw==", - "dependencies": { - "@docusaurus/core": "3.1.0", - "@docusaurus/mdx-loader": "3.1.0", - "@docusaurus/module-type-aliases": "3.1.0", - "@docusaurus/plugin-content-blog": "3.1.0", - "@docusaurus/plugin-content-docs": "3.1.0", - "@docusaurus/plugin-content-pages": "3.1.0", - "@docusaurus/theme-common": "3.1.0", - "@docusaurus/theme-translations": "3.1.0", - "@docusaurus/types": "3.1.0", - "@docusaurus/utils": "3.1.0", - "@docusaurus/utils-common": "3.1.0", - "@docusaurus/utils-validation": "3.1.0", - "@mdx-js/react": "^3.0.0", - "clsx": "^2.0.0", - "copy-text-to-clipboard": "^3.2.0", - "infima": "0.2.0-alpha.43", - "lodash": "^4.17.21", - "nprogress": "^0.2.0", - "postcss": "^8.4.26", - "prism-react-renderer": "^2.3.0", - "prismjs": "^1.29.0", - "react-router-dom": "^5.3.4", - "rtlcss": "^4.1.0", - "tslib": "^2.6.0", - "utility-types": "^3.10.0" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/theme-common": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-common/-/theme-common-3.1.0.tgz", - "integrity": "sha512-YGwEFALLIbF5ocW/Fy6Ae7tFWUOugEN3iwxTx8UkLAcLqYUboDSadesYtVBmRCEB4FVA2qoP7YaW3lu3apUPPw==", - "dependencies": { - "@docusaurus/mdx-loader": "3.1.0", - "@docusaurus/module-type-aliases": "3.1.0", - "@docusaurus/plugin-content-blog": "3.1.0", - "@docusaurus/plugin-content-docs": "3.1.0", - "@docusaurus/plugin-content-pages": "3.1.0", - "@docusaurus/utils": "3.1.0", - "@docusaurus/utils-common": "3.1.0", - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router-config": "*", - "clsx": "^2.0.0", - "parse-numeric-range": "^1.3.0", - "prism-react-renderer": "^2.3.0", - "tslib": "^2.6.0", - "utility-types": "^3.10.0" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/theme-search-algolia": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-search-algolia/-/theme-search-algolia-3.1.0.tgz", - "integrity": "sha512-8cJH0ZhPsEDjq3jR3I+wHmWzVY2bXMQJ59v2QxUmsTZxbWA4u+IzccJMIJx4ooFl9J6iYynwYsFuHxyx/KUmfQ==", - "dependencies": { - "@docsearch/react": "^3.5.2", - "@docusaurus/core": "3.1.0", - "@docusaurus/logger": "3.1.0", - "@docusaurus/plugin-content-docs": "3.1.0", - "@docusaurus/theme-common": "3.1.0", - "@docusaurus/theme-translations": "3.1.0", - "@docusaurus/utils": "3.1.0", - "@docusaurus/utils-validation": "3.1.0", - "algoliasearch": "^4.18.0", - "algoliasearch-helper": "^3.13.3", - "clsx": "^2.0.0", - "eta": "^2.2.0", - "fs-extra": "^11.1.1", - "lodash": "^4.17.21", - "tslib": "^2.6.0", - "utility-types": "^3.10.0" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/theme-translations": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-translations/-/theme-translations-3.1.0.tgz", - "integrity": "sha512-DApE4AbDI+WBajihxB54L4scWQhVGNZAochlC9fkbciPuFAgdRBD3NREb0rgfbKexDC/rioppu/WJA0u8tS+yA==", - "dependencies": { - "fs-extra": "^11.1.1", - "tslib": "^2.6.0" - }, - "engines": { - "node": ">=18.0" - } - }, - "node_modules/@docusaurus/tsconfig": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/tsconfig/-/tsconfig-3.1.0.tgz", - "integrity": "sha512-PE6fSuj5gJy5sNC1OO+bYAU1/xZH5YqddGjhrNu3/T7OAUroqkMZfVl13Tz70CjYB8no4OWcraqSkObAeNdIcQ==", - "dev": true - }, - "node_modules/@docusaurus/types": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/types/-/types-3.1.0.tgz", - "integrity": "sha512-VaczOZf7+re8aFBIWnex1XENomwHdsSTkrdX43zyor7G/FY4OIsP6X28Xc3o0jiY0YdNuvIDyA5TNwOtpgkCVw==", - "dependencies": { - "@mdx-js/mdx": "^3.0.0", - "@types/history": "^4.7.11", - "@types/react": "*", - "commander": "^5.1.0", - "joi": "^17.9.2", - "react-helmet-async": "^1.3.0", - "utility-types": "^3.10.0", - "webpack": "^5.88.1", - "webpack-merge": "^5.9.0" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@docusaurus/utils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/utils/-/utils-3.1.0.tgz", - "integrity": "sha512-LgZfp0D+UBqAh7PZ//MUNSFBMavmAPku6Si9x8x3V+S318IGCNJ6hUr2O29UO0oLybEWUjD5Jnj9IUN6XyZeeg==", - "dependencies": { - "@docusaurus/logger": "3.1.0", - "@svgr/webpack": "^6.5.1", - "escape-string-regexp": "^4.0.0", - "file-loader": "^6.2.0", - "fs-extra": "^11.1.1", - "github-slugger": "^1.5.0", - "globby": "^11.1.0", - "gray-matter": "^4.0.3", - "jiti": "^1.20.0", - "js-yaml": "^4.1.0", - "lodash": "^4.17.21", - "micromatch": "^4.0.5", - "resolve-pathname": "^3.0.0", - "shelljs": "^0.8.5", - "tslib": "^2.6.0", - "url-loader": "^4.1.1", - "webpack": "^5.88.1" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "@docusaurus/types": "*" - }, - "peerDependenciesMeta": { - "@docusaurus/types": { - "optional": true - } - } - }, - "node_modules/@docusaurus/utils-common": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/utils-common/-/utils-common-3.1.0.tgz", - "integrity": "sha512-SfvnRLHoZ9bwTw67knkSs7IcUR0GY2SaGkpdB/J9pChrDiGhwzKNUhcieoPyPYrOWGRPk3rVNYtoy+Bc7psPAw==", - "dependencies": { - "tslib": "^2.6.0" - }, - "engines": { - "node": ">=18.0" - }, - "peerDependencies": { - "@docusaurus/types": "*" - }, - "peerDependenciesMeta": { - "@docusaurus/types": { - "optional": true - } - } - }, - "node_modules/@docusaurus/utils-validation": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@docusaurus/utils-validation/-/utils-validation-3.1.0.tgz", - "integrity": "sha512-dFxhs1NLxPOSzmcTk/eeKxLY5R+U4cua22g9MsAMiRWcwFKStZ2W3/GDY0GmnJGqNS8QAQepJrxQoyxXkJNDeg==", - "dependencies": { - "@docusaurus/logger": "3.1.0", - "@docusaurus/utils": "3.1.0", - "joi": "^17.9.2", - "js-yaml": "^4.1.0", - "tslib": "^2.6.0" - }, - "engines": { - "node": ">=18.0" - } - }, - "node_modules/@hapi/hoek": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", - "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" - }, - "node_modules/@hapi/topo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", - "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", - "dependencies": { - "@hapi/hoek": "^9.0.0" - } - }, - "node_modules/@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", - "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/types": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", - "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", - "dependencies": { - "@jest/schemas": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", - "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.21", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.21.tgz", - "integrity": "sha512-SRfKmRe1KvYnxjEMtxEr+J4HIeMX5YBg/qhRHpxEIGjhX1rshcHlnFUE9K0GazhVKWM7B+nARSkV8LuvJdJ5/g==", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@leichtgewicht/ip-codec": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", - "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" - }, - "node_modules/@mdx-js/mdx": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@mdx-js/mdx/-/mdx-3.0.0.tgz", - "integrity": "sha512-Icm0TBKBLYqroYbNW3BPnzMGn+7mwpQOK310aZ7+fkCtiU3aqv2cdcX+nd0Ydo3wI5Rx8bX2Z2QmGb/XcAClCw==", - "dependencies": { - "@types/estree": "^1.0.0", - "@types/estree-jsx": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/mdx": "^2.0.0", - "collapse-white-space": "^2.0.0", - "devlop": "^1.0.0", - "estree-util-build-jsx": "^3.0.0", - "estree-util-is-identifier-name": "^3.0.0", - "estree-util-to-js": "^2.0.0", - "estree-walker": "^3.0.0", - "hast-util-to-estree": "^3.0.0", - "hast-util-to-jsx-runtime": "^2.0.0", - "markdown-extensions": "^2.0.0", - "periscopic": "^3.0.0", - "remark-mdx": "^3.0.0", - "remark-parse": "^11.0.0", - "remark-rehype": "^11.0.0", - "source-map": "^0.7.0", - "unified": "^11.0.0", - "unist-util-position-from-estree": "^2.0.0", - "unist-util-stringify-position": "^4.0.0", - "unist-util-visit": "^5.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/@mdx-js/react": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@mdx-js/react/-/react-3.0.0.tgz", - "integrity": "sha512-nDctevR9KyYFyV+m+/+S4cpzCWHqj+iHDHq3QrsWezcC+B17uZdIWgCguESUkwFhM3n/56KxWVE3V6EokrmONQ==", - "dependencies": { - "@types/mdx": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - }, - "peerDependencies": { - "@types/react": ">=16", - "react": ">=16" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@pnpm/config.env-replace": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz", - "integrity": "sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==", - "engines": { - "node": ">=12.22.0" - } - }, - "node_modules/@pnpm/network.ca-file": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.2.tgz", - "integrity": "sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==", - "dependencies": { - "graceful-fs": "4.2.10" - }, - "engines": { - "node": ">=12.22.0" - } - }, - "node_modules/@pnpm/network.ca-file/node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" - }, - "node_modules/@pnpm/npm-conf": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-2.2.2.tgz", - "integrity": "sha512-UA91GwWPhFExt3IizW6bOeY/pQ0BkuNwKjk9iQW9KqxluGCrg4VenZ0/L+2Y0+ZOtme72EVvg6v0zo3AMQRCeA==", - "dependencies": { - "@pnpm/config.env-replace": "^1.1.0", - "@pnpm/network.ca-file": "^1.0.1", - "config-chain": "^1.1.11" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@polka/url": { - "version": "1.0.0-next.24", - "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.24.tgz", - "integrity": "sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ==" - }, - "node_modules/@sideway/address": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz", - "integrity": "sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==", - "dependencies": { - "@hapi/hoek": "^9.0.0" - } - }, - "node_modules/@sideway/formula": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", - "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==" - }, - "node_modules/@sideway/pinpoint": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", - "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" - }, - "node_modules/@sinclair/typebox": { - "version": "0.27.8", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==" - }, - "node_modules/@sindresorhus/is": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", - "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, - "node_modules/@slorber/remark-comment": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@slorber/remark-comment/-/remark-comment-1.0.0.tgz", - "integrity": "sha512-RCE24n7jsOj1M0UPvIQCHTe7fI0sFL4S2nwKVWwHyVr/wI/H8GosgsJGyhnsZoGFnD/P2hLf1mSbrrgSLN93NA==", - "dependencies": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.1.0", - "micromark-util-symbol": "^1.0.1" - } - }, - "node_modules/@slorber/static-site-generator-webpack-plugin": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/@slorber/static-site-generator-webpack-plugin/-/static-site-generator-webpack-plugin-4.0.7.tgz", - "integrity": "sha512-Ug7x6z5lwrz0WqdnNFOMYrDQNTPAprvHLSh6+/fmml3qUiz6l5eq+2MzLKWtn/q5K5NpSiFsZTP/fck/3vjSxA==", - "dependencies": { - "eval": "^0.1.8", - "p-map": "^4.0.0", - "webpack-sources": "^3.2.2" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/@svgr/babel-plugin-add-jsx-attribute": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.5.1.tgz", - "integrity": "sha512-9PYGcXrAxitycIjRmZB+Q0JaN07GZIWaTBIGQzfaZv+qr1n8X1XUEJ5rZ/vx6OVD9RRYlrNnXWExQXcmZeD/BQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-remove-jsx-attribute": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz", - "integrity": "sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz", - "integrity": "sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-6.5.1.tgz", - "integrity": "sha512-8DPaVVE3fd5JKuIC29dqyMB54sA6mfgki2H2+swh+zNJoynC8pMPzOkidqHOSc6Wj032fhl8Z0TVn1GiPpAiJg==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-svg-dynamic-title": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-6.5.1.tgz", - "integrity": "sha512-FwOEi0Il72iAzlkaHrlemVurgSQRDFbk0OC8dSvD5fSBPHltNh7JtLsxmZUhjYBZo2PpcU/RJvvi6Q0l7O7ogw==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-svg-em-dimensions": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-6.5.1.tgz", - "integrity": "sha512-gWGsiwjb4tw+ITOJ86ndY/DZZ6cuXMNE/SjcDRg+HLuCmwpcjOktwRF9WgAiycTqJD/QXqL2f8IzE2Rzh7aVXA==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-transform-react-native-svg": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-6.5.1.tgz", - "integrity": "sha512-2jT3nTayyYP7kI6aGutkyfJ7UMGtuguD72OjeGLwVNyfPRBD8zQthlvL+fAbAKk5n9ZNcvFkp/b1lZ7VsYqVJg==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-transform-svg-component": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-6.5.1.tgz", - "integrity": "sha512-a1p6LF5Jt33O3rZoVRBqdxL350oge54iZWHNI6LJB5tQ7EelvD/Mb1mfBiZNAan0dt4i3VArkFRjA4iObuNykQ==", - "engines": { - "node": ">=12" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-preset": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-6.5.1.tgz", - "integrity": "sha512-6127fvO/FF2oi5EzSQOAjo1LE3OtNVh11R+/8FXa+mHx1ptAaS4cknIjnUA7e6j6fwGGJ17NzaTJFUwOV2zwCw==", - "dependencies": { - "@svgr/babel-plugin-add-jsx-attribute": "^6.5.1", - "@svgr/babel-plugin-remove-jsx-attribute": "*", - "@svgr/babel-plugin-remove-jsx-empty-expression": "*", - "@svgr/babel-plugin-replace-jsx-attribute-value": "^6.5.1", - "@svgr/babel-plugin-svg-dynamic-title": "^6.5.1", - "@svgr/babel-plugin-svg-em-dimensions": "^6.5.1", - "@svgr/babel-plugin-transform-react-native-svg": "^6.5.1", - "@svgr/babel-plugin-transform-svg-component": "^6.5.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/core": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/core/-/core-6.5.1.tgz", - "integrity": "sha512-/xdLSWxK5QkqG524ONSjvg3V/FkNyCv538OIBdQqPNaAta3AsXj/Bd2FbvR87yMbXO2hFSWiAe/Q6IkVPDw+mw==", - "dependencies": { - "@babel/core": "^7.19.6", - "@svgr/babel-preset": "^6.5.1", - "@svgr/plugin-jsx": "^6.5.1", - "camelcase": "^6.2.0", - "cosmiconfig": "^7.0.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/hast-util-to-babel-ast": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-6.5.1.tgz", - "integrity": "sha512-1hnUxxjd83EAxbL4a0JDJoD3Dao3hmjvyvyEV8PzWmLK3B9m9NPlW7GKjFyoWE8nM7HnXzPcmmSyOW8yOddSXw==", - "dependencies": { - "@babel/types": "^7.20.0", - "entities": "^4.4.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/plugin-jsx": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-6.5.1.tgz", - "integrity": "sha512-+UdQxI3jgtSjCykNSlEMuy1jSRQlGC7pqBCPvkG/2dATdWo082zHTTK3uhnAju2/6XpE6B5mZ3z4Z8Ns01S8Gw==", - "dependencies": { - "@babel/core": "^7.19.6", - "@svgr/babel-preset": "^6.5.1", - "@svgr/hast-util-to-babel-ast": "^6.5.1", - "svg-parser": "^2.0.4" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@svgr/core": "^6.0.0" - } - }, - "node_modules/@svgr/plugin-svgo": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-6.5.1.tgz", - "integrity": "sha512-omvZKf8ixP9z6GWgwbtmP9qQMPX4ODXi+wzbVZgomNFsUIlHA1sf4fThdwTWSsZGgvGAG6yE+b/F5gWUkcZ/iQ==", - "dependencies": { - "cosmiconfig": "^7.0.1", - "deepmerge": "^4.2.2", - "svgo": "^2.8.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@svgr/core": "*" - } - }, - "node_modules/@svgr/webpack": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-6.5.1.tgz", - "integrity": "sha512-cQ/AsnBkXPkEK8cLbv4Dm7JGXq2XrumKnL1dRpJD9rIO2fTIlJI9a1uCciYG1F2aUsox/hJQyNGbt3soDxSRkA==", - "dependencies": { - "@babel/core": "^7.19.6", - "@babel/plugin-transform-react-constant-elements": "^7.18.12", - "@babel/preset-env": "^7.19.4", - "@babel/preset-react": "^7.18.6", - "@babel/preset-typescript": "^7.18.6", - "@svgr/core": "^6.5.1", - "@svgr/plugin-jsx": "^6.5.1", - "@svgr/plugin-svgo": "^6.5.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@szmarczak/http-timer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", - "integrity": "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==", - "dependencies": { - "defer-to-connect": "^2.0.1" - }, - "engines": { - "node": ">=14.16" - } - }, - "node_modules/@trysound/sax": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", - "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/@types/acorn": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/@types/acorn/-/acorn-4.0.6.tgz", - "integrity": "sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==", - "dependencies": { - "@types/estree": "*" - } - }, - "node_modules/@types/body-parser": { - "version": "1.19.5", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", - "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/bonjour": { - "version": "3.5.13", - "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.13.tgz", - "integrity": "sha512-z9fJ5Im06zvUL548KvYNecEVlA7cVDkGUi6kZusb04mpyEFKCIZJvloCcmpmLaIahDpOQGHaHmG6imtPMmPXGQ==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/connect": { - "version": "3.4.38", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", - "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/connect-history-api-fallback": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.4.tgz", - "integrity": "sha512-n6Cr2xS1h4uAulPRdlw6Jl6s1oG8KrVilPN2yUITEs+K48EzMJJ3W1xy8K5eWuFvjp3R74AOIGSmp2UfBJ8HFw==", - "dependencies": { - "@types/express-serve-static-core": "*", - "@types/node": "*" - } - }, - "node_modules/@types/debug": { - "version": "4.1.12", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", - "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", - "dependencies": { - "@types/ms": "*" - } - }, - "node_modules/@types/eslint": { - "version": "8.56.2", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.2.tgz", - "integrity": "sha512-uQDwm1wFHmbBbCZCqAlq6Do9LYwByNZHWzXppSnay9SuwJ+VRbjkbLABer54kcPnMSlG6Fdiy2yaFXm/z9Z5gw==", - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.7", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", - "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", - "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==" - }, - "node_modules/@types/estree-jsx": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.3.tgz", - "integrity": "sha512-pvQ+TKeRHeiUGRhvYwRrQ/ISnohKkSJR14fT2yqyZ4e9K5vqc7hrtY2Y1Dw0ZwAzQ6DQsxsaCUuSIIi8v0Cq6w==", - "dependencies": { - "@types/estree": "*" - } - }, - "node_modules/@types/express": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", - "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "4.17.41", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.41.tgz", - "integrity": "sha512-OaJ7XLaelTgrvlZD8/aa0vvvxZdUmlCn6MtWeB7TkiKW70BQLc9XEPpDLPdbo52ZhXUCrznlWdCHWxJWtdyajA==", - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/gtag.js": { - "version": "0.0.12", - "resolved": "https://registry.npmjs.org/@types/gtag.js/-/gtag.js-0.0.12.tgz", - "integrity": "sha512-YQV9bUsemkzG81Ea295/nF/5GijnD2Af7QhEofh7xu+kvCN6RdodgNwwGWXB5GMI3NoyvQo0odNctoH/qLMIpg==" - }, - "node_modules/@types/hast": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz", - "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==", - "dependencies": { - "@types/unist": "*" - } - }, - "node_modules/@types/history": { - "version": "4.7.11", - "resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz", - "integrity": "sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==" - }, - "node_modules/@types/html-minifier-terser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", - "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==" - }, - "node_modules/@types/http-cache-semantics": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz", - "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==" - }, - "node_modules/@types/http-errors": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", - "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==" - }, - "node_modules/@types/http-proxy": { - "version": "1.17.14", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.14.tgz", - "integrity": "sha512-SSrD0c1OQzlFX7pGu1eXxSEjemej64aaNPRhhVYUGqXh0BtldAAx37MG8btcumvpgKyZp1F5Gn3JkktdxiFv6w==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", - "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==" - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", - "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", - "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==" - }, - "node_modules/@types/mdast": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.3.tgz", - "integrity": "sha512-LsjtqsyF+d2/yFOYaN22dHZI1Cpwkrj+g06G8+qtUKlhovPW89YhqSnfKtMbkgmEtYpH2gydRNULd6y8mciAFg==", - "dependencies": { - "@types/unist": "*" - } - }, - "node_modules/@types/mdx": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/@types/mdx/-/mdx-2.0.10.tgz", - "integrity": "sha512-Rllzc5KHk0Al5/WANwgSPl1/CwjqCy+AZrGd78zuK+jO9aDM6ffblZ+zIjgPNAaEBmlO0RYDvLNh7wD0zKVgEg==" - }, - "node_modules/@types/mime": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", - "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==" - }, - "node_modules/@types/ms": { - "version": "0.7.34", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.34.tgz", - "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==" - }, - "node_modules/@types/node": { - "version": "20.11.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.0.tgz", - "integrity": "sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ==", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@types/node-forge": { - "version": "1.3.11", - "resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-1.3.11.tgz", - "integrity": "sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/parse-json": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz", - "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==" - }, - "node_modules/@types/prismjs": { - "version": "1.26.3", - "resolved": "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.26.3.tgz", - "integrity": "sha512-A0D0aTXvjlqJ5ZILMz3rNfDBOx9hHxLZYv2by47Sm/pqW35zzjusrZTryatjN/Rf8Us2gZrJD+KeHbUSTux1Cw==" - }, - "node_modules/@types/prop-types": { - "version": "15.7.11", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", - "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==" - }, - "node_modules/@types/qs": { - "version": "6.9.11", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.11.tgz", - "integrity": "sha512-oGk0gmhnEJK4Yyk+oI7EfXsLayXatCWPHary1MtcmbAifkobT9cM9yutG/hZKIseOU0MqbIwQ/u2nn/Gb+ltuQ==" - }, - "node_modules/@types/range-parser": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", - "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==" - }, - "node_modules/@types/react": { - "version": "18.2.47", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.47.tgz", - "integrity": "sha512-xquNkkOirwyCgoClNk85BjP+aqnIS+ckAJ8i37gAbDs14jfW/J23f2GItAf33oiUPQnqNMALiFeoM9Y5mbjpVQ==", - "dependencies": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "node_modules/@types/react-router": { - "version": "5.1.20", - "resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz", - "integrity": "sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==", - "dependencies": { - "@types/history": "^4.7.11", - "@types/react": "*" - } - }, - "node_modules/@types/react-router-config": { - "version": "5.0.11", - "resolved": "https://registry.npmjs.org/@types/react-router-config/-/react-router-config-5.0.11.tgz", - "integrity": "sha512-WmSAg7WgqW7m4x8Mt4N6ZyKz0BubSj/2tVUMsAHp+Yd2AMwcSbeFq9WympT19p5heCFmF97R9eD5uUR/t4HEqw==", - "dependencies": { - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router": "^5.1.0" - } - }, - "node_modules/@types/react-router-dom": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.3.tgz", - "integrity": "sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==", - "dependencies": { - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router": "*" - } - }, - "node_modules/@types/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==" - }, - "node_modules/@types/sax": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.7.tgz", - "integrity": "sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/scheduler": { - "version": "0.16.8", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz", - "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==" - }, - "node_modules/@types/send": { - "version": "0.17.4", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", - "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", - "dependencies": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "node_modules/@types/serve-index": { - "version": "1.9.4", - "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.4.tgz", - "integrity": "sha512-qLpGZ/c2fhSs5gnYsQxtDEq3Oy8SXPClIXkW5ghvAvsNuVSA8k+gCONcUCS/UjLEYvYps+e8uBtfgXgvhwfNug==", - "dependencies": { - "@types/express": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "1.15.5", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.5.tgz", - "integrity": "sha512-PDRk21MnK70hja/YF8AHfC7yIsiQHn1rcXx7ijCFBX/k+XQJhQT/gw3xekXKJvx+5SXaMMS8oqQy09Mzvz2TuQ==", - "dependencies": { - "@types/http-errors": "*", - "@types/mime": "*", - "@types/node": "*" - } - }, - "node_modules/@types/sockjs": { - "version": "0.3.36", - "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.36.tgz", - "integrity": "sha512-MK9V6NzAS1+Ud7JV9lJLFqW85VbC9dq3LmwZCuBe4wBDgKC0Kj/jd8Xl+nSviU+Qc3+m7umHHyHg//2KSa0a0Q==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/unist": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz", - "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==" - }, - "node_modules/@types/ws": { - "version": "8.5.10", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.10.tgz", - "integrity": "sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/yargs": { - "version": "17.0.32", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", - "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.3", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", - "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==" - }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" - }, - "node_modules/@webassemblyjs/ast": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", - "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", - "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" - } - }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==" - }, - "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==" - }, - "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", - "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==" - }, - "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", - "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==" - }, - "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", - "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6" - } - }, - "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", - "dependencies": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "node_modules/@webassemblyjs/leb128": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", - "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", - "dependencies": { - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/utf8": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", - "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==" - }, - "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", - "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/helper-wasm-section": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-opt": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6", - "@webassemblyjs/wast-printer": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", - "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", - "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", - "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wast-printer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", - "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" - }, - "node_modules/@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/accepts/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/accepts/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/acorn": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-import-assertions": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", - "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "peerDependencies": { - "acorn": "^8" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", - "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/address": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", - "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/algoliasearch": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-4.22.1.tgz", - "integrity": "sha512-jwydKFQJKIx9kIZ8Jm44SdpigFwRGPESaxZBaHSV0XWN2yBJAOT4mT7ppvlrpA4UGzz92pqFnVKr/kaZXrcreg==", - "dependencies": { - "@algolia/cache-browser-local-storage": "4.22.1", - "@algolia/cache-common": "4.22.1", - "@algolia/cache-in-memory": "4.22.1", - "@algolia/client-account": "4.22.1", - "@algolia/client-analytics": "4.22.1", - "@algolia/client-common": "4.22.1", - "@algolia/client-personalization": "4.22.1", - "@algolia/client-search": "4.22.1", - "@algolia/logger-common": "4.22.1", - "@algolia/logger-console": "4.22.1", - "@algolia/requester-browser-xhr": "4.22.1", - "@algolia/requester-common": "4.22.1", - "@algolia/requester-node-http": "4.22.1", - "@algolia/transporter": "4.22.1" - } - }, - "node_modules/algoliasearch-helper": { - "version": "3.16.1", - "resolved": "https://registry.npmjs.org/algoliasearch-helper/-/algoliasearch-helper-3.16.1.tgz", - "integrity": "sha512-qxAHVjjmT7USVvrM8q6gZGaJlCK1fl4APfdAA7o8O6iXEc68G0xMNrzRkxoB/HmhhvyHnoteS/iMTiHiTcQQcg==", - "dependencies": { - "@algolia/events": "^4.0.1" - }, - "peerDependencies": { - "algoliasearch": ">= 3.1 < 6" - } - }, - "node_modules/ansi-align": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", - "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", - "dependencies": { - "string-width": "^4.1.0" - } - }, - "node_modules/ansi-align/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/ansi-align/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-html-community": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", - "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", - "engines": [ - "node >= 0.8.0" - ], - "bin": { - "ansi-html": "bin/ansi-html" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/arg": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/astring": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.6.tgz", - "integrity": "sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==", - "bin": { - "astring": "bin/astring" - } - }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/autoprefixer": { - "version": "10.4.16", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz", - "integrity": "sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/autoprefixer" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "browserslist": "^4.21.10", - "caniuse-lite": "^1.0.30001538", - "fraction.js": "^4.3.6", - "normalize-range": "^0.1.2", - "picocolors": "^1.0.0", - "postcss-value-parser": "^4.2.0" - }, - "bin": { - "autoprefixer": "bin/autoprefixer" - }, - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/babel-loader": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-9.1.3.tgz", - "integrity": "sha512-xG3ST4DglodGf8qSwv0MdeWLhrDsw/32QMdTO5T1ZIp9gQur0HkCyFs7Awskr10JKXFXwpAhiCuYX5oGXnRGbw==", - "dependencies": { - "find-cache-dir": "^4.0.0", - "schema-utils": "^4.0.0" - }, - "engines": { - "node": ">= 14.15.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0", - "webpack": ">=5" - } - }, - "node_modules/babel-plugin-dynamic-import-node": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", - "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", - "dependencies": { - "object.assign": "^4.1.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.7.tgz", - "integrity": "sha512-LidDk/tEGDfuHW2DWh/Hgo4rmnw3cduK6ZkOI1NPFceSK3n/yAGeOsNT7FLnSGHkXj3RHGSEVkN3FsCTY6w2CQ==", - "dependencies": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.4.4", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.8.7", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.7.tgz", - "integrity": "sha512-KyDvZYxAzkC0Aj2dAPyDzi2Ym15e5JKZSK+maI7NAwSqofvuFglbSsxE7wUOvTg9oFVnHMzVzBKcqEb4PJgtOA==", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.4", - "core-js-compat": "^3.33.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.4.tgz", - "integrity": "sha512-S/x2iOCvDaCASLYsOOgWOq4bCfKYVqvO/uxjkaYyZ3rVsVE3CeAI/c84NpyuBBymEgNvHgjEot3a9/Z/kXvqsg==", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.4" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/bail": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", - "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/batch": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==" - }, - "node_modules/big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "engines": { - "node": "*" - } - }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/body-parser": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", - "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/body-parser/node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/body-parser/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/body-parser/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/bonjour-service": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.2.1.tgz", - "integrity": "sha512-oSzCS2zV14bh2kji6vNe7vrpJYCHGvcZnlffFQ1MEoX/WOeQ/teD8SYWKR942OI3INjq8OMNJlbPK5LLLUxFDw==", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "multicast-dns": "^7.2.5" - } - }, - "node_modules/boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" - }, - "node_modules/boxen": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-6.2.1.tgz", - "integrity": "sha512-H4PEsJXfFI/Pt8sjDWbHlQPx4zL/bvSQjcilJmaulGt5mLDorHOHpmdXAJcBcmru7PhYSp/cDMWRko4ZUMFkSw==", - "dependencies": { - "ansi-align": "^3.0.1", - "camelcase": "^6.2.0", - "chalk": "^4.1.2", - "cli-boxes": "^3.0.0", - "string-width": "^5.0.1", - "type-fest": "^2.5.0", - "widest-line": "^4.0.1", - "wrap-ansi": "^8.0.1" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.22.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz", - "integrity": "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001565", - "electron-to-chromium": "^1.4.601", - "node-releases": "^2.0.14", - "update-browserslist-db": "^1.0.13" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "node_modules/bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/cacheable-lookup": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz", - "integrity": "sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==", - "engines": { - "node": ">=14.16" - } - }, - "node_modules/cacheable-request": { - "version": "10.2.14", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.14.tgz", - "integrity": "sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==", - "dependencies": { - "@types/http-cache-semantics": "^4.0.2", - "get-stream": "^6.0.1", - "http-cache-semantics": "^4.1.1", - "keyv": "^4.5.3", - "mimic-response": "^4.0.0", - "normalize-url": "^8.0.0", - "responselike": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - } - }, - "node_modules/cacheable-request/node_modules/normalize-url": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.0.tgz", - "integrity": "sha512-uVFpKhj5MheNBJRTiMZ9pE/7hD1QTeEvugSJW/OmLzAp78PB5O6adfMNTvmfKhXBkvCzC+rqifWcVYpGFwTjnw==", - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/call-bind": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", - "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", - "dependencies": { - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.1", - "set-function-length": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "dependencies": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, - "node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/caniuse-api": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", - "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", - "dependencies": { - "browserslist": "^4.0.0", - "caniuse-lite": "^1.0.0", - "lodash.memoize": "^4.1.2", - "lodash.uniq": "^4.5.0" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001576", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001576.tgz", - "integrity": "sha512-ff5BdakGe2P3SQsMsiqmt1Lc8221NR1VzHj5jXN5vBny9A6fpze94HiVV/n7XRosOlsShJcvMv5mdnpjOGCEgg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/ccount": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", - "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "engines": { - "node": ">=10" - } - }, - "node_modules/character-entities": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", - "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-entities-html4": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", - "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-entities-legacy": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", - "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-reference-invalid": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz", - "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/cheerio": { - "version": "1.0.0-rc.12", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", - "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", - "dependencies": { - "cheerio-select": "^2.1.0", - "dom-serializer": "^2.0.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "htmlparser2": "^8.0.1", - "parse5": "^7.0.0", - "parse5-htmlparser2-tree-adapter": "^7.0.0" - }, - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/cheeriojs/cheerio?sponsor=1" - } - }, - "node_modules/cheerio-select": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", - "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", - "dependencies": { - "boolbase": "^1.0.0", - "css-select": "^5.1.0", - "css-what": "^6.1.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "engines": { - "node": ">=6.0" - } - }, - "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "engines": { - "node": ">=8" - } - }, - "node_modules/clean-css": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.3.tgz", - "integrity": "sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg==", - "dependencies": { - "source-map": "~0.6.0" - }, - "engines": { - "node": ">= 10.0" - } - }, - "node_modules/clean-css/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/cli-boxes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz", - "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-table3": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.3.tgz", - "integrity": "sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==", - "dependencies": { - "string-width": "^4.2.0" - }, - "engines": { - "node": "10.* || >= 12.*" - }, - "optionalDependencies": { - "@colors/colors": "1.5.0" - } - }, - "node_modules/cli-table3/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/cli-table3/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "dependencies": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/clone-deep/node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/clsx": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.0.tgz", - "integrity": "sha512-m3iNNWpd9rl3jvvcBnu70ylMdrXt8Vlq4HYadnU5fwcOtvkSQWPmj7amUcDT2qYI7risszBjI5AUIUox9D16pg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/collapse-white-space": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-2.1.0.tgz", - "integrity": "sha512-loKTxY1zCOuG4j9f6EPnuyyYkf58RnhhWTvRoZEokgB+WbdXehfjFviyOVYkqzEWz1Q5kRiZdBYS5SwxbQYwzw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/colord": { - "version": "2.9.3", - "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", - "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" - }, - "node_modules/colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" - }, - "node_modules/combine-promises": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/combine-promises/-/combine-promises-1.2.0.tgz", - "integrity": "sha512-VcQB1ziGD0NXrhKxiwyNbCDmRzs/OShMs2GqW2DlU2A/Sd0nQxE1oWDAE5O0ygSx5mgQOn9eIFh7yKPgFRVkPQ==", - "engines": { - "node": ">=10" - } - }, - "node_modules/comma-separated-tokens": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", - "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/commander": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/common-path-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz", - "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==" - }, - "node_modules/compressible": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", - "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", - "dependencies": { - "mime-db": ">= 1.43.0 < 2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/compressible/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/compression": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", - "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", - "dependencies": { - "accepts": "~1.3.5", - "bytes": "3.0.0", - "compressible": "~2.0.16", - "debug": "2.6.9", - "on-headers": "~1.0.2", - "safe-buffer": "5.1.2", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/compression/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/compression/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/compression/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "node_modules/config-chain": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", - "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", - "dependencies": { - "ini": "^1.3.4", - "proto-list": "~1.2.1" - } - }, - "node_modules/configstore": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/configstore/-/configstore-6.0.0.tgz", - "integrity": "sha512-cD31W1v3GqUlQvbBCGcXmd2Nj9SvLDOP1oQ0YFuLETufzSPaKp11rYBsSOm7rCsW3OnIRAFM3OxRhceaXNYHkA==", - "dependencies": { - "dot-prop": "^6.0.1", - "graceful-fs": "^4.2.6", - "unique-string": "^3.0.0", - "write-file-atomic": "^3.0.3", - "xdg-basedir": "^5.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/yeoman/configstore?sponsor=1" - } - }, - "node_modules/connect-history-api-fallback": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", - "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/consola": { - "version": "2.15.3", - "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz", - "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==" - }, - "node_modules/content-disposition": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", - "integrity": "sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" - }, - "node_modules/cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" - }, - "node_modules/copy-text-to-clipboard": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/copy-text-to-clipboard/-/copy-text-to-clipboard-3.2.0.tgz", - "integrity": "sha512-RnJFp1XR/LOBDckxTib5Qjr/PMfkatD0MUCQgdpqS8MdKiNUzBjAQBEN6oUy+jW7LI93BBG3DtMB2KOOKpGs2Q==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/copy-webpack-plugin": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz", - "integrity": "sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ==", - "dependencies": { - "fast-glob": "^3.2.11", - "glob-parent": "^6.0.1", - "globby": "^13.1.1", - "normalize-path": "^3.0.0", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0" - }, - "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - } - }, - "node_modules/copy-webpack-plugin/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/copy-webpack-plugin/node_modules/globby": { - "version": "13.2.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.2.tgz", - "integrity": "sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==", - "dependencies": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.3.0", - "ignore": "^5.2.4", - "merge2": "^1.4.1", - "slash": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/copy-webpack-plugin/node_modules/slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/core-js": { - "version": "3.35.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.35.0.tgz", - "integrity": "sha512-ntakECeqg81KqMueeGJ79Q5ZgQNR+6eaE8sxGCx62zMbAIj65q+uYvatToew3m6eAGdU4gNZwpZ34NMe4GYswg==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/core-js-compat": { - "version": "3.35.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.35.0.tgz", - "integrity": "sha512-5blwFAddknKeNgsjBzilkdQ0+YK8L1PfqPYq40NOYMYFSS38qj+hpTcLLWwpIwA2A5bje/x5jmVn2tzUMg9IVw==", - "dependencies": { - "browserslist": "^4.22.2" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/core-js-pure": { - "version": "3.35.0", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.35.0.tgz", - "integrity": "sha512-f+eRYmkou59uh7BPcyJ8MC76DiGhspj1KMxVIcF24tzP8NA9HVa1uC7BTW2tgx7E1QVCzDzsgp7kArrzhlz8Ew==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" - }, - "node_modules/cosmiconfig": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", - "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", - "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/crypto-random-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-4.0.0.tgz", - "integrity": "sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==", - "dependencies": { - "type-fest": "^1.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/crypto-random-string/node_modules/type-fest": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", - "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/css-declaration-sorter": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz", - "integrity": "sha512-rtdthzxKuyq6IzqX6jEcIzQF/YqccluefyCYheovBOLhFT/drQA9zj/UbRAa9J7C0o6EG6u3E6g+vKkay7/k3g==", - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.0.9" - } - }, - "node_modules/css-loader": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.9.0.tgz", - "integrity": "sha512-3I5Nu4ytWlHvOP6zItjiHlefBNtrH+oehq8tnQa2kO305qpVyx9XNIT1CXIj5bgCJs7qICBCkgCYxQLKPANoLA==", - "dependencies": { - "icss-utils": "^5.1.0", - "postcss": "^8.4.31", - "postcss-modules-extract-imports": "^3.0.0", - "postcss-modules-local-by-default": "^4.0.3", - "postcss-modules-scope": "^3.1.0", - "postcss-modules-values": "^4.0.0", - "postcss-value-parser": "^4.2.0", - "semver": "^7.5.4" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, - "node_modules/css-minimizer-webpack-plugin": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-4.2.2.tgz", - "integrity": "sha512-s3Of/4jKfw1Hj9CxEO1E5oXhQAxlayuHO2y/ML+C6I9sQ7FdzfEV6QgMLN3vI+qFsjJGIAFLKtQK7t8BOXAIyA==", - "dependencies": { - "cssnano": "^5.1.8", - "jest-worker": "^29.1.2", - "postcss": "^8.4.17", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - }, - "peerDependenciesMeta": { - "@parcel/css": { - "optional": true - }, - "@swc/css": { - "optional": true - }, - "clean-css": { - "optional": true - }, - "csso": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "lightningcss": { - "optional": true - } - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/css-select": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", - "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^6.1.0", - "domhandler": "^5.0.2", - "domutils": "^3.0.1", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/css-tree": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", - "dependencies": { - "mdn-data": "2.0.14", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/css-tree/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/css-what": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", - "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/cssnano": { - "version": "5.1.15", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", - "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", - "dependencies": { - "cssnano-preset-default": "^5.2.14", - "lilconfig": "^2.0.3", - "yaml": "^1.10.2" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/cssnano" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/cssnano-preset-advanced": { - "version": "5.3.10", - "resolved": "https://registry.npmjs.org/cssnano-preset-advanced/-/cssnano-preset-advanced-5.3.10.tgz", - "integrity": "sha512-fnYJyCS9jgMU+cmHO1rPSPf9axbQyD7iUhLO5Df6O4G+fKIOMps+ZbU0PdGFejFBBZ3Pftf18fn1eG7MAPUSWQ==", - "dependencies": { - "autoprefixer": "^10.4.12", - "cssnano-preset-default": "^5.2.14", - "postcss-discard-unused": "^5.1.0", - "postcss-merge-idents": "^5.1.1", - "postcss-reduce-idents": "^5.2.0", - "postcss-zindex": "^5.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/cssnano-preset-default": { - "version": "5.2.14", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", - "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", - "dependencies": { - "css-declaration-sorter": "^6.3.1", - "cssnano-utils": "^3.1.0", - "postcss-calc": "^8.2.3", - "postcss-colormin": "^5.3.1", - "postcss-convert-values": "^5.1.3", - "postcss-discard-comments": "^5.1.2", - "postcss-discard-duplicates": "^5.1.0", - "postcss-discard-empty": "^5.1.1", - "postcss-discard-overridden": "^5.1.0", - "postcss-merge-longhand": "^5.1.7", - "postcss-merge-rules": "^5.1.4", - "postcss-minify-font-values": "^5.1.0", - "postcss-minify-gradients": "^5.1.1", - "postcss-minify-params": "^5.1.4", - "postcss-minify-selectors": "^5.2.1", - "postcss-normalize-charset": "^5.1.0", - "postcss-normalize-display-values": "^5.1.0", - "postcss-normalize-positions": "^5.1.1", - "postcss-normalize-repeat-style": "^5.1.1", - "postcss-normalize-string": "^5.1.0", - "postcss-normalize-timing-functions": "^5.1.0", - "postcss-normalize-unicode": "^5.1.1", - "postcss-normalize-url": "^5.1.0", - "postcss-normalize-whitespace": "^5.1.1", - "postcss-ordered-values": "^5.1.3", - "postcss-reduce-initial": "^5.1.2", - "postcss-reduce-transforms": "^5.1.0", - "postcss-svgo": "^5.1.0", - "postcss-unique-selectors": "^5.1.1" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/cssnano-utils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", - "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/csso": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", - "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", - "dependencies": { - "css-tree": "^1.1.2" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/csstype": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", - "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" - }, - "node_modules/debounce": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", - "integrity": "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==" - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decode-named-character-reference": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", - "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==", - "dependencies": { - "character-entities": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/decompress-response": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", - "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", - "dependencies": { - "mimic-response": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decompress-response/node_modules/mimic-response": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", - "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/default-gateway": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", - "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", - "dependencies": { - "execa": "^5.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/defer-to-connect": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", - "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", - "engines": { - "node": ">=10" - } - }, - "node_modules/define-data-property": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", - "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", - "dependencies": { - "get-intrinsic": "^1.2.1", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "engines": { - "node": ">=8" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/del": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", - "integrity": "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==", - "dependencies": { - "globby": "^11.0.1", - "graceful-fs": "^4.2.4", - "is-glob": "^4.0.1", - "is-path-cwd": "^2.2.0", - "is-path-inside": "^3.0.2", - "p-map": "^4.0.0", - "rimraf": "^3.0.2", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/dequal": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", - "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/detect-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" - }, - "node_modules/detect-port": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/detect-port/-/detect-port-1.5.1.tgz", - "integrity": "sha512-aBzdj76lueB6uUst5iAs7+0H/oOjqI5D16XUWxlWMIMROhcM0rfsNVk93zTngq1dDNpoXRr++Sus7ETAExppAQ==", - "dependencies": { - "address": "^1.0.1", - "debug": "4" - }, - "bin": { - "detect": "bin/detect-port.js", - "detect-port": "bin/detect-port.js" - } - }, - "node_modules/detect-port-alt": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/detect-port-alt/-/detect-port-alt-1.1.6.tgz", - "integrity": "sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q==", - "dependencies": { - "address": "^1.0.1", - "debug": "^2.6.0" - }, - "bin": { - "detect": "bin/detect-port", - "detect-port": "bin/detect-port" - }, - "engines": { - "node": ">= 4.2.1" - } - }, - "node_modules/detect-port-alt/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/detect-port-alt/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/devlop": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", - "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", - "dependencies": { - "dequal": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dns-packet": { - "version": "5.6.1", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.1.tgz", - "integrity": "sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw==", - "dependencies": { - "@leichtgewicht/ip-codec": "^2.0.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/dom-converter": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", - "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", - "dependencies": { - "utila": "~0.4" - } - }, - "node_modules/dom-serializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", - "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", - "dependencies": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.2", - "entities": "^4.2.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/domelementtype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", - "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ] - }, - "node_modules/domhandler": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", - "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", - "dependencies": { - "domelementtype": "^2.3.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/domutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", - "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", - "dependencies": { - "dom-serializer": "^2.0.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/dot-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", - "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/dot-prop": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz", - "integrity": "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==", - "dependencies": { - "is-obj": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/dot-prop/node_modules/is-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", - "engines": { - "node": ">=8" - } - }, - "node_modules/duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" - }, - "node_modules/electron-to-chromium": { - "version": "1.4.630", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.630.tgz", - "integrity": "sha512-osHqhtjojpCsACVnuD11xO5g9xaCyw7Qqn/C2KParkMv42i8jrJJgx3g7mkHfpxwhy9MnOJr8+pKOdZ7qzgizg==" - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "node_modules/emojilib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/emojilib/-/emojilib-2.4.0.tgz", - "integrity": "sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==" - }, - "node_modules/emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/emoticon": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/emoticon/-/emoticon-4.0.1.tgz", - "integrity": "sha512-dqx7eA9YaqyvYtUhJwT4rC1HIp82j5ybS1/vQ42ur+jBe17dJMwZE4+gvL1XadSFfxaPFFGt3Xsw+Y8akThDlw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/enhanced-resolve": { - "version": "5.15.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", - "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-module-lexer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.4.1.tgz", - "integrity": "sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==" - }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-goat": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-4.0.0.tgz", - "integrity": "sha512-2Sd4ShcWxbx6OY1IHyla/CVNwvg7XwZVoXZHcSu9w9SReNP1EzzD5T8NWKIR38fIqEns9kDWKUQTXXAmlDrdPg==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-util-attach-comments": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/estree-util-attach-comments/-/estree-util-attach-comments-3.0.0.tgz", - "integrity": "sha512-cKUwm/HUcTDsYh/9FgnuFqpfquUbwIqwKM26BVCGDPVgvaCl/nDCCjUfiLlx6lsEZ3Z4RFxNbOQ60pkaEwFxGw==", - "dependencies": { - "@types/estree": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/estree-util-build-jsx": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/estree-util-build-jsx/-/estree-util-build-jsx-3.0.1.tgz", - "integrity": "sha512-8U5eiL6BTrPxp/CHbs2yMgP8ftMhR5ww1eIKoWRMlqvltHF8fZn5LRDvTKuxD3DUn+shRbLGqXemcP51oFCsGQ==", - "dependencies": { - "@types/estree-jsx": "^1.0.0", - "devlop": "^1.0.0", - "estree-util-is-identifier-name": "^3.0.0", - "estree-walker": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/estree-util-is-identifier-name": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz", - "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/estree-util-to-js": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/estree-util-to-js/-/estree-util-to-js-2.0.0.tgz", - "integrity": "sha512-WDF+xj5rRWmD5tj6bIqRi6CkLIXbbNQUcxQHzGysQzvHmdYG2G7p/Tf0J0gpxGgkeMZNTIjT/AoSvC9Xehcgdg==", - "dependencies": { - "@types/estree-jsx": "^1.0.0", - "astring": "^1.8.0", - "source-map": "^0.7.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/estree-util-value-to-estree": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/estree-util-value-to-estree/-/estree-util-value-to-estree-3.0.1.tgz", - "integrity": "sha512-b2tdzTurEIbwRh+mKrEcaWfu1wgb8J1hVsgREg7FFiecWwK/PhO8X0kyc+0bIcKNtD4sqxIdNoRy6/p/TvECEA==", - "dependencies": { - "@types/estree": "^1.0.0", - "is-plain-obj": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/remcohaszing" - } - }, - "node_modules/estree-util-visit": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/estree-util-visit/-/estree-util-visit-2.0.0.tgz", - "integrity": "sha512-m5KgiH85xAhhW8Wta0vShLcUvOsh3LLPI2YVwcbio1l7E09NTLL1EyMZFM1OyWowoH0skScNbhOPl4kcBgzTww==", - "dependencies": { - "@types/estree-jsx": "^1.0.0", - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", - "dependencies": { - "@types/estree": "^1.0.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eta": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/eta/-/eta-2.2.0.tgz", - "integrity": "sha512-UVQ72Rqjy/ZKQalzV5dCCJP80GrmPrMxh6NlNf+erV6ObL0ZFkhCstWRawS85z3smdr3d2wXPsZEY7rDPfGd2g==", - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "url": "https://github.com/eta-dev/eta?sponsor=1" - } - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/eval": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/eval/-/eval-0.1.8.tgz", - "integrity": "sha512-EzV94NYKoO09GLXGjXj9JIlXijVck4ONSr5wiCWDvhsvj5jxSrzTmRU/9C1DyB6uToszLs8aifA6NQ7lEQdvFw==", - "dependencies": { - "@types/node": "*", - "require-like": ">= 0.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/express": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", - "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.1", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.5.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.2.0", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.7", - "qs": "6.11.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/express/node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/express/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/express/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/express/node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" - }, - "node_modules/express/node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" - }, - "node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "node_modules/fast-url-parser": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz", - "integrity": "sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==", - "dependencies": { - "punycode": "^1.3.2" - } - }, - "node_modules/fastq": { - "version": "1.16.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.16.0.tgz", - "integrity": "sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/fault": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fault/-/fault-2.0.1.tgz", - "integrity": "sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==", - "dependencies": { - "format": "^0.2.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/faye-websocket": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", - "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", - "dependencies": { - "websocket-driver": ">=0.5.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/feed": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/feed/-/feed-4.2.2.tgz", - "integrity": "sha512-u5/sxGfiMfZNtJ3OvQpXcvotFpYkL0n9u9mM2vkui2nGo8b4wvDkJ8gAkYqbA8QpGyFCv3RK0Z+Iv+9veCS9bQ==", - "dependencies": { - "xml-js": "^1.6.11" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/file-loader": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", - "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", - "dependencies": { - "loader-utils": "^2.0.0", - "schema-utils": "^3.0.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" - } - }, - "node_modules/file-loader/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/file-loader/node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peerDependencies": { - "ajv": "^6.9.1" - } - }, - "node_modules/file-loader/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/file-loader/node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/filesize": { - "version": "8.0.7", - "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", - "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/finalhandler/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/find-cache-dir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-4.0.0.tgz", - "integrity": "sha512-9ZonPT4ZAK4a+1pUPVPZJapbi7O5qbbJPdYw/NOQWZZbVLdDTYM3A4R9z/DpAM08IDaFGsvPgiGZ82WEwUDWjg==", - "dependencies": { - "common-path-prefix": "^3.0.0", - "pkg-dir": "^7.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/find-up": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", - "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", - "dependencies": { - "locate-path": "^7.1.0", - "path-exists": "^5.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "bin": { - "flat": "cli.js" - } - }, - "node_modules/follow-redirects": { - "version": "1.15.5", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", - "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/fork-ts-checker-webpack-plugin": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz", - "integrity": "sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==", - "dependencies": { - "@babel/code-frame": "^7.8.3", - "@types/json-schema": "^7.0.5", - "chalk": "^4.1.0", - "chokidar": "^3.4.2", - "cosmiconfig": "^6.0.0", - "deepmerge": "^4.2.2", - "fs-extra": "^9.0.0", - "glob": "^7.1.6", - "memfs": "^3.1.2", - "minimatch": "^3.0.4", - "schema-utils": "2.7.0", - "semver": "^7.3.2", - "tapable": "^1.0.0" - }, - "engines": { - "node": ">=10", - "yarn": ">=1.0.0" - }, - "peerDependencies": { - "eslint": ">= 6", - "typescript": ">= 2.7", - "vue-template-compiler": "*", - "webpack": ">= 4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - }, - "vue-template-compiler": { - "optional": true - } - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peerDependencies": { - "ajv": "^6.9.1" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/cosmiconfig": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", - "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", - "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.7.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", - "integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==", - "dependencies": { - "@types/json-schema": "^7.0.4", - "ajv": "^6.12.2", - "ajv-keywords": "^3.4.1" - }, - "engines": { - "node": ">= 8.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/tapable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", - "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/form-data-encoder": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.4.tgz", - "integrity": "sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==", - "engines": { - "node": ">= 14.17" - } - }, - "node_modules/format": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz", - "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==", - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fraction.js": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", - "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", - "engines": { - "node": "*" - }, - "funding": { - "type": "patreon", - "url": "https://github.com/sponsors/rawify" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fs-extra": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", - "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/fs-monkey": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.5.tgz", - "integrity": "sha512-8uMbBjrhzW76TYgEV27Y5E//W2f/lTFmx78P2w19FZSxarhI/798APGQyuGCwmkNxgwGRhrLfvWyLBvNtuOmew==" - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-intrinsic": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", - "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", - "dependencies": { - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-own-enumerable-property-symbols": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", - "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/github-slugger": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-1.5.0.tgz", - "integrity": "sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw==" - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" - }, - "node_modules/global-dirs": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", - "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", - "dependencies": { - "ini": "2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/global-dirs/node_modules/ini": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", - "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/global-modules": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", - "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", - "dependencies": { - "global-prefix": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/global-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", - "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", - "dependencies": { - "ini": "^1.3.5", - "kind-of": "^6.0.2", - "which": "^1.3.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/global-prefix/node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/got": { - "version": "12.6.1", - "resolved": "https://registry.npmjs.org/got/-/got-12.6.1.tgz", - "integrity": "sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==", - "dependencies": { - "@sindresorhus/is": "^5.2.0", - "@szmarczak/http-timer": "^5.0.1", - "cacheable-lookup": "^7.0.0", - "cacheable-request": "^10.2.8", - "decompress-response": "^6.0.0", - "form-data-encoder": "^2.1.2", - "get-stream": "^6.0.1", - "http2-wrapper": "^2.1.10", - "lowercase-keys": "^3.0.0", - "p-cancelable": "^3.0.0", - "responselike": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/got?sponsor=1" - } - }, - "node_modules/got/node_modules/@sindresorhus/is": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-5.6.0.tgz", - "integrity": "sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==", - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "node_modules/gray-matter": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-4.0.3.tgz", - "integrity": "sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==", - "dependencies": { - "js-yaml": "^3.13.1", - "kind-of": "^6.0.2", - "section-matter": "^1.0.0", - "strip-bom-string": "^1.0.0" - }, - "engines": { - "node": ">=6.0" - } - }, - "node_modules/gray-matter/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/gray-matter/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/gzip-size": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", - "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", - "dependencies": { - "duplexer": "^0.1.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/handle-thing": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", - "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==" - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", - "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", - "dependencies": { - "get-intrinsic": "^1.2.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-yarn": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-3.0.0.tgz", - "integrity": "sha512-IrsVwUHhEULx3R8f/aA8AHuEzAorplsab/v8HBzEiIukwq5i/EC+xmOW+HfP1OaDP+2JkgT1yILHN2O3UFIbcA==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/hasown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", - "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/hast-util-from-parse5": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-8.0.1.tgz", - "integrity": "sha512-Er/Iixbc7IEa7r/XLtuG52zoqn/b3Xng/w6aZQ0xGVxzhw5xUFxcRqdPzP6yFi/4HBYRaifaI5fQ1RH8n0ZeOQ==", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/unist": "^3.0.0", - "devlop": "^1.0.0", - "hastscript": "^8.0.0", - "property-information": "^6.0.0", - "vfile": "^6.0.0", - "vfile-location": "^5.0.0", - "web-namespaces": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-parse-selector": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz", - "integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==", - "dependencies": { - "@types/hast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-raw": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.0.1.tgz", - "integrity": "sha512-5m1gmba658Q+lO5uqL5YNGQWeh1MYWZbZmWrM5lncdcuiXuo5E2HT/CIOp0rLF8ksfSwiCVJ3twlgVRyTGThGA==", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/unist": "^3.0.0", - "@ungap/structured-clone": "^1.0.0", - "hast-util-from-parse5": "^8.0.0", - "hast-util-to-parse5": "^8.0.0", - "html-void-elements": "^3.0.0", - "mdast-util-to-hast": "^13.0.0", - "parse5": "^7.0.0", - "unist-util-position": "^5.0.0", - "unist-util-visit": "^5.0.0", - "vfile": "^6.0.0", - "web-namespaces": "^2.0.0", - "zwitch": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-to-estree": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/hast-util-to-estree/-/hast-util-to-estree-3.1.0.tgz", - "integrity": "sha512-lfX5g6hqVh9kjS/B9E2gSkvHH4SZNiQFiqWS0x9fENzEl+8W12RqdRxX6d/Cwxi30tPQs3bIO+aolQJNp1bIyw==", - "dependencies": { - "@types/estree": "^1.0.0", - "@types/estree-jsx": "^1.0.0", - "@types/hast": "^3.0.0", - "comma-separated-tokens": "^2.0.0", - "devlop": "^1.0.0", - "estree-util-attach-comments": "^3.0.0", - "estree-util-is-identifier-name": "^3.0.0", - "hast-util-whitespace": "^3.0.0", - "mdast-util-mdx-expression": "^2.0.0", - "mdast-util-mdx-jsx": "^3.0.0", - "mdast-util-mdxjs-esm": "^2.0.0", - "property-information": "^6.0.0", - "space-separated-tokens": "^2.0.0", - "style-to-object": "^0.4.0", - "unist-util-position": "^5.0.0", - "zwitch": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-to-jsx-runtime": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.0.tgz", - "integrity": "sha512-H/y0+IWPdsLLS738P8tDnrQ8Z+dj12zQQ6WC11TIM21C8WFVoIxcqWXf2H3hiTVZjF1AWqoimGwrTWecWrnmRQ==", - "dependencies": { - "@types/estree": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/unist": "^3.0.0", - "comma-separated-tokens": "^2.0.0", - "devlop": "^1.0.0", - "estree-util-is-identifier-name": "^3.0.0", - "hast-util-whitespace": "^3.0.0", - "mdast-util-mdx-expression": "^2.0.0", - "mdast-util-mdx-jsx": "^3.0.0", - "mdast-util-mdxjs-esm": "^2.0.0", - "property-information": "^6.0.0", - "space-separated-tokens": "^2.0.0", - "style-to-object": "^1.0.0", - "unist-util-position": "^5.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-to-jsx-runtime/node_modules/inline-style-parser": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.2.tgz", - "integrity": "sha512-EcKzdTHVe8wFVOGEYXiW9WmJXPjqi1T+234YpJr98RiFYKHV3cdy1+3mkTE+KHTHxFFLH51SfaGOoUdW+v7ViQ==" - }, - "node_modules/hast-util-to-jsx-runtime/node_modules/style-to-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.5.tgz", - "integrity": "sha512-rDRwHtoDD3UMMrmZ6BzOW0naTjMsVZLIjsGleSKS/0Oz+cgCfAPRspaqJuE8rDzpKha/nEvnM0IF4seEAZUTKQ==", - "dependencies": { - "inline-style-parser": "0.2.2" - } - }, - "node_modules/hast-util-to-parse5": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-8.0.0.tgz", - "integrity": "sha512-3KKrV5ZVI8if87DVSi1vDeByYrkGzg4mEfeu4alwgmmIeARiBLKCZS2uw5Gb6nU9x9Yufyj3iudm6i7nl52PFw==", - "dependencies": { - "@types/hast": "^3.0.0", - "comma-separated-tokens": "^2.0.0", - "devlop": "^1.0.0", - "property-information": "^6.0.0", - "space-separated-tokens": "^2.0.0", - "web-namespaces": "^2.0.0", - "zwitch": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-whitespace": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", - "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", - "dependencies": { - "@types/hast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hastscript": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-8.0.0.tgz", - "integrity": "sha512-dMOtzCEd3ABUeSIISmrETiKuyydk1w0pa+gE/uormcTpSYuaNJPbX1NU3JLyscSLjwAQM8bWMhhIlnCqnRvDTw==", - "dependencies": { - "@types/hast": "^3.0.0", - "comma-separated-tokens": "^2.0.0", - "hast-util-parse-selector": "^4.0.0", - "property-information": "^6.0.0", - "space-separated-tokens": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "bin": { - "he": "bin/he" - } - }, - "node_modules/history": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/history/-/history-4.10.1.tgz", - "integrity": "sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==", - "dependencies": { - "@babel/runtime": "^7.1.2", - "loose-envify": "^1.2.0", - "resolve-pathname": "^3.0.0", - "tiny-invariant": "^1.0.2", - "tiny-warning": "^1.0.0", - "value-equal": "^1.0.1" - } - }, - "node_modules/hoist-non-react-statics": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", - "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", - "dependencies": { - "react-is": "^16.7.0" - } - }, - "node_modules/hpack.js": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", - "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", - "dependencies": { - "inherits": "^2.0.1", - "obuf": "^1.0.0", - "readable-stream": "^2.0.1", - "wbuf": "^1.1.0" - } - }, - "node_modules/hpack.js/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/hpack.js/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/hpack.js/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/hpack.js/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/html-entities": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.4.0.tgz", - "integrity": "sha512-igBTJcNNNhvZFRtm8uA6xMY6xYleeDwn3PeBCkDz7tHttv4F2hsDI2aPgNERWzvRcNYHNT3ymRaQzllmXj4YsQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/mdevils" - }, - { - "type": "patreon", - "url": "https://patreon.com/mdevils" - } - ] - }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==" - }, - "node_modules/html-minifier-terser": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-7.2.0.tgz", - "integrity": "sha512-tXgn3QfqPIpGl9o+K5tpcj3/MN4SfLtsx2GWwBC3SSd0tXQGyF3gsSqad8loJgKZGM3ZxbYDd5yhiBIdWpmvLA==", - "dependencies": { - "camel-case": "^4.1.2", - "clean-css": "~5.3.2", - "commander": "^10.0.0", - "entities": "^4.4.0", - "param-case": "^3.0.4", - "relateurl": "^0.2.7", - "terser": "^5.15.1" - }, - "bin": { - "html-minifier-terser": "cli.js" - }, - "engines": { - "node": "^14.13.1 || >=16.0.0" - } - }, - "node_modules/html-minifier-terser/node_modules/commander": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", - "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", - "engines": { - "node": ">=14" - } - }, - "node_modules/html-tags": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.3.1.tgz", - "integrity": "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/html-void-elements": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", - "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/html-webpack-plugin": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.6.0.tgz", - "integrity": "sha512-iwaY4wzbe48AfKLZ/Cc8k0L+FKG6oSNRaZ8x5A/T/IVDGyXcbHncM9TdDa93wn0FsSm82FhTKW7f3vS61thXAw==", - "dependencies": { - "@types/html-minifier-terser": "^6.0.0", - "html-minifier-terser": "^6.0.2", - "lodash": "^4.17.21", - "pretty-error": "^4.0.0", - "tapable": "^2.0.0" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/html-webpack-plugin" - }, - "peerDependencies": { - "@rspack/core": "0.x || 1.x", - "webpack": "^5.20.0" - }, - "peerDependenciesMeta": { - "@rspack/core": { - "optional": true - }, - "webpack": { - "optional": true - } - } - }, - "node_modules/html-webpack-plugin/node_modules/commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", - "engines": { - "node": ">= 12" - } - }, - "node_modules/html-webpack-plugin/node_modules/html-minifier-terser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", - "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", - "dependencies": { - "camel-case": "^4.1.2", - "clean-css": "^5.2.2", - "commander": "^8.3.0", - "he": "^1.2.0", - "param-case": "^3.0.4", - "relateurl": "^0.2.7", - "terser": "^5.10.0" - }, - "bin": { - "html-minifier-terser": "cli.js" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/htmlparser2": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", - "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", - "funding": [ - "https://github.com/fb55/htmlparser2?sponsor=1", - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "dependencies": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "entities": "^4.4.0" - } - }, - "node_modules/http-cache-semantics": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", - "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==" - }, - "node_modules/http-deceiver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", - "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==" - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/http-parser-js": { - "version": "0.5.8", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", - "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==" - }, - "node_modules/http-proxy": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "dependencies": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", - "dependencies": { - "@types/http-proxy": "^1.17.8", - "http-proxy": "^1.18.1", - "is-glob": "^4.0.1", - "is-plain-obj": "^3.0.0", - "micromatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "@types/express": "^4.17.13" - }, - "peerDependenciesMeta": { - "@types/express": { - "optional": true - } - } - }, - "node_modules/http-proxy-middleware/node_modules/is-plain-obj": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", - "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/http2-wrapper": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.1.tgz", - "integrity": "sha512-V5nVw1PAOgfI3Lmeaj2Exmeg7fenjhRUgz1lPSezy1CuhPYbgQtbQj4jZfEAEMlaL+vupsvhjqCyjzob0yxsmQ==", - "dependencies": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.2.0" - }, - "engines": { - "node": ">=10.19.0" - } - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/icss-utils": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", - "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/ignore": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", - "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/image-size": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.1.1.tgz", - "integrity": "sha512-541xKlUw6jr/6gGuk92F+mYM5zaFAc5ahphvkqvNe2bQ6gVBkd6bfrmVJ2t4KDAfikAYZyIqTnktX3i6/aQDrQ==", - "dependencies": { - "queue": "6.0.2" - }, - "bin": { - "image-size": "bin/image-size.js" - }, - "engines": { - "node": ">=16.x" - } - }, - "node_modules/immer": { - "version": "9.0.21", - "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", - "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/immer" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-lazy": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz", - "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/infima": { - "version": "0.2.0-alpha.43", - "resolved": "https://registry.npmjs.org/infima/-/infima-0.2.0-alpha.43.tgz", - "integrity": "sha512-2uw57LvUqW0rK/SWYnd/2rRfxNA5DDNOh33jxF7fy46VWoNhGxiUQyVZHbBMjQ33mQem0cjdDVwgWVAmlRfgyQ==", - "engines": { - "node": ">=12" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" - }, - "node_modules/inline-style-parser": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.1.1.tgz", - "integrity": "sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==" - }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dependencies": { - "loose-envify": "^1.0.0" - } - }, - "node_modules/ipaddr.js": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz", - "integrity": "sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/is-alphabetical": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", - "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-alphanumerical": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz", - "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==", - "dependencies": { - "is-alphabetical": "^2.0.0", - "is-decimal": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-ci": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", - "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", - "dependencies": { - "ci-info": "^3.2.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, - "node_modules/is-core-module": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", - "dependencies": { - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-decimal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz", - "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-hexadecimal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz", - "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-installed-globally": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", - "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", - "dependencies": { - "global-dirs": "^3.0.0", - "is-path-inside": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-npm": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-6.0.0.tgz", - "integrity": "sha512-JEjxbSmtPSt1c8XTkVrlujcXdKV1/tvuQ7GwKcAlyiVLeYFQ2VHat8xfrDJsIkhCdF/tZ7CiIR3sy141c6+gPQ==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-path-cwd": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", - "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-obj": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", - "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-reference": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.2.tgz", - "integrity": "sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==", - "dependencies": { - "@types/estree": "*" - } - }, - "node_modules/is-regexp": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", - "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-root": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz", - "integrity": "sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-yarn-global": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.4.1.tgz", - "integrity": "sha512-/kppl+R+LO5VmhYSEWARUFjodS25D68gvj8W7z0I7OWhUla5xWu8KL6CtB2V0R6yqhnRgbcaREMr4EEM6htLPQ==", - "engines": { - "node": ">=12" - } - }, - "node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/jest-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", - "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-worker": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", - "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", - "dependencies": { - "@types/node": "*", - "jest-util": "^29.7.0", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/jiti": { - "version": "1.21.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", - "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==", - "bin": { - "jiti": "bin/jiti.js" - } - }, - "node_modules/joi": { - "version": "17.11.0", - "resolved": "https://registry.npmjs.org/joi/-/joi-17.11.0.tgz", - "integrity": "sha512-NgB+lZLNoqISVy1rZocE9PZI36bL/77ie924Ri43yEvi9GUUMPeyVIr8KdFTMUlby1p0PBYMk9spIxEUQYqrJQ==", - "dependencies": { - "@hapi/hoek": "^9.0.0", - "@hapi/topo": "^5.0.0", - "@sideway/address": "^4.1.3", - "@sideway/formula": "^3.0.1", - "@sideway/pinpoint": "^2.0.0" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" - }, - "node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "engines": { - "node": ">=6" - } - }, - "node_modules/latest-version": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-7.0.0.tgz", - "integrity": "sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==", - "dependencies": { - "package-json": "^8.1.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/launch-editor": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.1.tgz", - "integrity": "sha512-eB/uXmFVpY4zezmGp5XtU21kwo7GBbKB+EQ+UZeWtGb9yAM5xt/Evk+lYH3eRNAtId+ej4u7TYPFZ07w4s7rRw==", - "dependencies": { - "picocolors": "^1.0.0", - "shell-quote": "^1.8.1" - } - }, - "node_modules/leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/lilconfig": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", - "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", - "engines": { - "node": ">=10" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" - }, - "node_modules/loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", - "engines": { - "node": ">=6.11.5" - } - }, - "node_modules/loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, - "engines": { - "node": ">=8.9.0" - } - }, - "node_modules/locate-path": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.2.0.tgz", - "integrity": "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==", - "dependencies": { - "p-locate": "^6.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" - }, - "node_modules/lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" - }, - "node_modules/lodash.uniq": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" - }, - "node_modules/longest-streak": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", - "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/lower-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", - "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/lowercase-keys": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz", - "integrity": "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/markdown-extensions": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/markdown-extensions/-/markdown-extensions-2.0.0.tgz", - "integrity": "sha512-o5vL7aDWatOTX8LzaS1WMoaoxIiLRQJuIKKe2wAw6IeULDHaqbiqiggmx+pKvZDb1Sj+pE46Sn1T7lCqfFtg1Q==", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/markdown-table": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.3.tgz", - "integrity": "sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/mdast-util-directive": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-directive/-/mdast-util-directive-3.0.0.tgz", - "integrity": "sha512-JUpYOqKI4mM3sZcNxmF/ox04XYFFkNwr0CFlrQIkCwbvH0xzMCqkMqAde9wRd80VAhaUrwFwKm2nxretdT1h7Q==", - "dependencies": { - "@types/mdast": "^4.0.0", - "@types/unist": "^3.0.0", - "devlop": "^1.0.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0", - "parse-entities": "^4.0.0", - "stringify-entities": "^4.0.0", - "unist-util-visit-parents": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-find-and-replace": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.1.tgz", - "integrity": "sha512-SG21kZHGC3XRTSUhtofZkBzZTJNM5ecCi0SK2IMKmSXR8vO3peL+kb1O0z7Zl83jKtutG4k5Wv/W7V3/YHvzPA==", - "dependencies": { - "@types/mdast": "^4.0.0", - "escape-string-regexp": "^5.0.0", - "unist-util-is": "^6.0.0", - "unist-util-visit-parents": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", - "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mdast-util-from-markdown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.0.tgz", - "integrity": "sha512-n7MTOr/z+8NAX/wmhhDji8O3bRvPTV/U0oTCaZJkjhPSKTPhS3xufVhKGF8s1pJ7Ox4QgoIU7KHseh09S+9rTA==", - "dependencies": { - "@types/mdast": "^4.0.0", - "@types/unist": "^3.0.0", - "decode-named-character-reference": "^1.0.0", - "devlop": "^1.0.0", - "mdast-util-to-string": "^4.0.0", - "micromark": "^4.0.0", - "micromark-util-decode-numeric-character-reference": "^2.0.0", - "micromark-util-decode-string": "^2.0.0", - "micromark-util-normalize-identifier": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0", - "unist-util-stringify-position": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/mdast-util-frontmatter": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-frontmatter/-/mdast-util-frontmatter-2.0.1.tgz", - "integrity": "sha512-LRqI9+wdgC25P0URIJY9vwocIzCcksduHQ9OF2joxQoyTNVduwLAFUzjoopuRJbJAReaKrNQKAZKL3uCMugWJA==", - "dependencies": { - "@types/mdast": "^4.0.0", - "devlop": "^1.0.0", - "escape-string-regexp": "^5.0.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0", - "micromark-extension-frontmatter": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-frontmatter/node_modules/escape-string-regexp": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", - "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mdast-util-gfm": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.0.0.tgz", - "integrity": "sha512-dgQEX5Amaq+DuUqf26jJqSK9qgixgd6rYDHAv4aTBuA92cTknZlKpPfa86Z/s8Dj8xsAQpFfBmPUHWJBWqS4Bw==", - "dependencies": { - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-gfm-autolink-literal": "^2.0.0", - "mdast-util-gfm-footnote": "^2.0.0", - "mdast-util-gfm-strikethrough": "^2.0.0", - "mdast-util-gfm-table": "^2.0.0", - "mdast-util-gfm-task-list-item": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-autolink-literal": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.0.tgz", - "integrity": "sha512-FyzMsduZZHSc3i0Px3PQcBT4WJY/X/RCtEJKuybiC6sjPqLv7h1yqAkmILZtuxMSsUyaLUWNp71+vQH2zqp5cg==", - "dependencies": { - "@types/mdast": "^4.0.0", - "ccount": "^2.0.0", - "devlop": "^1.0.0", - "mdast-util-find-and-replace": "^3.0.0", - "micromark-util-character": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/mdast-util-gfm-footnote": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.0.0.tgz", - "integrity": "sha512-5jOT2boTSVkMnQ7LTrd6n/18kqwjmuYqo7JUPe+tRCY6O7dAuTFMtTPauYYrMPpox9hlN0uOx/FL8XvEfG9/mQ==", - "dependencies": { - "@types/mdast": "^4.0.0", - "devlop": "^1.1.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0", - "micromark-util-normalize-identifier": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-strikethrough": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz", - "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==", - "dependencies": { - "@types/mdast": "^4.0.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-table": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz", - "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==", - "dependencies": { - "@types/mdast": "^4.0.0", - "devlop": "^1.0.0", - "markdown-table": "^3.0.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-task-list-item": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz", - "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==", - "dependencies": { - "@types/mdast": "^4.0.0", - "devlop": "^1.0.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-mdx": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-mdx/-/mdast-util-mdx-3.0.0.tgz", - "integrity": "sha512-JfbYLAW7XnYTTbUsmpu0kdBUVe+yKVJZBItEjwyYJiDJuZ9w4eeaqks4HQO+R7objWgS2ymV60GYpI14Ug554w==", - "dependencies": { - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-mdx-expression": "^2.0.0", - "mdast-util-mdx-jsx": "^3.0.0", - "mdast-util-mdxjs-esm": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-mdx-expression": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.0.tgz", - "integrity": "sha512-fGCu8eWdKUKNu5mohVGkhBXCXGnOTLuFqOvGMvdikr+J1w7lDJgxThOKpwRWzzbyXAU2hhSwsmssOY4yTokluw==", - "dependencies": { - "@types/estree-jsx": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "devlop": "^1.0.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-mdx-jsx": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.0.0.tgz", - "integrity": "sha512-XZuPPzQNBPAlaqsTTgRrcJnyFbSOBovSadFgbFu8SnuNgm+6Bdx1K+IWoitsmj6Lq6MNtI+ytOqwN70n//NaBA==", - "dependencies": { - "@types/estree-jsx": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "@types/unist": "^3.0.0", - "ccount": "^2.0.0", - "devlop": "^1.1.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0", - "parse-entities": "^4.0.0", - "stringify-entities": "^4.0.0", - "unist-util-remove-position": "^5.0.0", - "unist-util-stringify-position": "^4.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-mdxjs-esm": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz", - "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==", - "dependencies": { - "@types/estree-jsx": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "devlop": "^1.0.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-phrasing": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.0.0.tgz", - "integrity": "sha512-xadSsJayQIucJ9n053dfQwVu1kuXg7jCTdYsMK8rqzKZh52nLfSH/k0sAxE0u+pj/zKZX+o5wB+ML5mRayOxFA==", - "dependencies": { - "@types/mdast": "^4.0.0", - "unist-util-is": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-hast": { - "version": "13.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.1.0.tgz", - "integrity": "sha512-/e2l/6+OdGp/FB+ctrJ9Avz71AN/GRH3oi/3KAx/kMnoUsD6q0woXlDT8lLEeViVKE7oZxE7RXzvO3T8kF2/sA==", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "@ungap/structured-clone": "^1.0.0", - "devlop": "^1.0.0", - "micromark-util-sanitize-uri": "^2.0.0", - "trim-lines": "^3.0.0", - "unist-util-position": "^5.0.0", - "unist-util-visit": "^5.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-markdown": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.0.tgz", - "integrity": "sha512-SR2VnIEdVNCJbP6y7kVTJgPLifdr8WEU440fQec7qHoHOUz/oJ2jmNRqdDQ3rbiStOXb2mCDGTuwsK5OPUgYlQ==", - "dependencies": { - "@types/mdast": "^4.0.0", - "@types/unist": "^3.0.0", - "longest-streak": "^3.0.0", - "mdast-util-phrasing": "^4.0.0", - "mdast-util-to-string": "^4.0.0", - "micromark-util-decode-string": "^2.0.0", - "unist-util-visit": "^5.0.0", - "zwitch": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz", - "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==", - "dependencies": { - "@types/mdast": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/memfs": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.3.tgz", - "integrity": "sha512-UERzLsxzllchadvbPs5aolHh65ISpKpM+ccLbOJ8/vvpBKmAWf+la7dXFy7Mr0ySHbdHrFv5kGFCUHHe6GFEmw==", - "dependencies": { - "fs-monkey": "^1.0.4" - }, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/micromark": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.0.tgz", - "integrity": "sha512-o/sd0nMof8kYff+TqcDx3VSrgBTcZpSvYcAHIfHhv5VAuNmisCxjhx6YmxS8PFEpb9z5WKWKPdzf0jM23ro3RQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "@types/debug": "^4.0.0", - "debug": "^4.0.0", - "decode-named-character-reference": "^1.0.0", - "devlop": "^1.0.0", - "micromark-core-commonmark": "^2.0.0", - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-chunked": "^2.0.0", - "micromark-util-combine-extensions": "^2.0.0", - "micromark-util-decode-numeric-character-reference": "^2.0.0", - "micromark-util-encode": "^2.0.0", - "micromark-util-normalize-identifier": "^2.0.0", - "micromark-util-resolve-all": "^2.0.0", - "micromark-util-sanitize-uri": "^2.0.0", - "micromark-util-subtokenize": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-core-commonmark": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.0.tgz", - "integrity": "sha512-jThOz/pVmAYUtkroV3D5c1osFXAMv9e0ypGDOIZuCeAe91/sD6BoE2Sjzt30yuXtwOYUmySOhMas/PVyh02itA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "decode-named-character-reference": "^1.0.0", - "devlop": "^1.0.0", - "micromark-factory-destination": "^2.0.0", - "micromark-factory-label": "^2.0.0", - "micromark-factory-space": "^2.0.0", - "micromark-factory-title": "^2.0.0", - "micromark-factory-whitespace": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-chunked": "^2.0.0", - "micromark-util-classify-character": "^2.0.0", - "micromark-util-html-tag-name": "^2.0.0", - "micromark-util-normalize-identifier": "^2.0.0", - "micromark-util-resolve-all": "^2.0.0", - "micromark-util-subtokenize": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-core-commonmark/node_modules/micromark-factory-space": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.0.tgz", - "integrity": "sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-core-commonmark/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-core-commonmark/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-extension-directive": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-directive/-/micromark-extension-directive-3.0.0.tgz", - "integrity": "sha512-61OI07qpQrERc+0wEysLHMvoiO3s2R56x5u7glHq2Yqq6EHbH4dW25G9GfDdGCDYqA21KE6DWgNSzxSwHc2hSg==", - "dependencies": { - "devlop": "^1.0.0", - "micromark-factory-space": "^2.0.0", - "micromark-factory-whitespace": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0", - "parse-entities": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-directive/node_modules/micromark-factory-space": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.0.tgz", - "integrity": "sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-directive/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-directive/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-extension-frontmatter": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-frontmatter/-/micromark-extension-frontmatter-2.0.0.tgz", - "integrity": "sha512-C4AkuM3dA58cgZha7zVnuVxBhDsbttIMiytjgsM2XbHAB2faRVaHRle40558FBN+DJcrLNCoqG5mlrpdU4cRtg==", - "dependencies": { - "fault": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-frontmatter/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-frontmatter/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-extension-gfm": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz", - "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==", - "dependencies": { - "micromark-extension-gfm-autolink-literal": "^2.0.0", - "micromark-extension-gfm-footnote": "^2.0.0", - "micromark-extension-gfm-strikethrough": "^2.0.0", - "micromark-extension-gfm-table": "^2.0.0", - "micromark-extension-gfm-tagfilter": "^2.0.0", - "micromark-extension-gfm-task-list-item": "^2.0.0", - "micromark-util-combine-extensions": "^2.0.0", - "micromark-util-types": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-autolink-literal": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.0.0.tgz", - "integrity": "sha512-rTHfnpt/Q7dEAK1Y5ii0W8bhfJlVJFnJMHIPisfPK3gpVNuOP0VnRl96+YJ3RYWV/P4gFeQoGKNlT3RhuvpqAg==", - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-sanitize-uri": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-extension-gfm-footnote": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.0.0.tgz", - "integrity": "sha512-6Rzu0CYRKDv3BfLAUnZsSlzx3ak6HAoI85KTiijuKIz5UxZxbUI+pD6oHgw+6UtQuiRwnGRhzMmPRv4smcz0fg==", - "dependencies": { - "devlop": "^1.0.0", - "micromark-core-commonmark": "^2.0.0", - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-normalize-identifier": "^2.0.0", - "micromark-util-sanitize-uri": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-footnote/node_modules/micromark-factory-space": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.0.tgz", - "integrity": "sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-gfm-footnote/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-gfm-footnote/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-extension-gfm-strikethrough": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.0.0.tgz", - "integrity": "sha512-c3BR1ClMp5fxxmwP6AoOY2fXO9U8uFMKs4ADD66ahLTNcwzSCyRVU4k7LPV5Nxo/VJiR4TdzxRQY2v3qIUceCw==", - "dependencies": { - "devlop": "^1.0.0", - "micromark-util-chunked": "^2.0.0", - "micromark-util-classify-character": "^2.0.0", - "micromark-util-resolve-all": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-strikethrough/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-extension-gfm-table": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.0.0.tgz", - "integrity": "sha512-PoHlhypg1ItIucOaHmKE8fbin3vTLpDOUg8KAr8gRCF1MOZI9Nquq2i/44wFvviM4WuxJzc3demT8Y3dkfvYrw==", - "dependencies": { - "devlop": "^1.0.0", - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.0.tgz", - "integrity": "sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-extension-gfm-tagfilter": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz", - "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==", - "dependencies": { - "micromark-util-types": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-task-list-item": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.0.1.tgz", - "integrity": "sha512-cY5PzGcnULaN5O7T+cOzfMoHjBW7j+T9D2sucA5d/KbsBTPcYdebm9zUd9zzdgJGCwahV+/W78Z3nbulBYVbTw==", - "dependencies": { - "devlop": "^1.0.0", - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-task-list-item/node_modules/micromark-factory-space": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.0.tgz", - "integrity": "sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-gfm-task-list-item/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-gfm-task-list-item/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-extension-mdx-expression": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-mdx-expression/-/micromark-extension-mdx-expression-3.0.0.tgz", - "integrity": "sha512-sI0nwhUDz97xyzqJAbHQhp5TfaxEvZZZ2JDqUo+7NvyIYG6BZ5CPPqj2ogUoPJlmXHBnyZUzISg9+oUmU6tUjQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "@types/estree": "^1.0.0", - "devlop": "^1.0.0", - "micromark-factory-mdx-expression": "^2.0.0", - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-events-to-acorn": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-mdx-expression/node_modules/micromark-factory-space": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.0.tgz", - "integrity": "sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-mdx-expression/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-mdx-expression/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-extension-mdx-jsx": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-mdx-jsx/-/micromark-extension-mdx-jsx-3.0.0.tgz", - "integrity": "sha512-uvhhss8OGuzR4/N17L1JwvmJIpPhAd8oByMawEKx6NVdBCbesjH4t+vjEp3ZXft9DwvlKSD07fCeI44/N0Vf2w==", - "dependencies": { - "@types/acorn": "^4.0.0", - "@types/estree": "^1.0.0", - "devlop": "^1.0.0", - "estree-util-is-identifier-name": "^3.0.0", - "micromark-factory-mdx-expression": "^2.0.0", - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-mdx-jsx/node_modules/micromark-factory-space": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.0.tgz", - "integrity": "sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-mdx-jsx/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-mdx-jsx/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-extension-mdx-md": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-mdx-md/-/micromark-extension-mdx-md-2.0.0.tgz", - "integrity": "sha512-EpAiszsB3blw4Rpba7xTOUptcFeBFi+6PY8VnJ2hhimH+vCQDirWgsMpz7w1XcZE7LVrSAUGb9VJpG9ghlYvYQ==", - "dependencies": { - "micromark-util-types": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-mdxjs": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-mdxjs/-/micromark-extension-mdxjs-3.0.0.tgz", - "integrity": "sha512-A873fJfhnJ2siZyUrJ31l34Uqwy4xIFmvPY1oj+Ean5PHcPBYzEsvqvWGaWcfEIr11O5Dlw3p2y0tZWpKHDejQ==", - "dependencies": { - "acorn": "^8.0.0", - "acorn-jsx": "^5.0.0", - "micromark-extension-mdx-expression": "^3.0.0", - "micromark-extension-mdx-jsx": "^3.0.0", - "micromark-extension-mdx-md": "^2.0.0", - "micromark-extension-mdxjs-esm": "^3.0.0", - "micromark-util-combine-extensions": "^2.0.0", - "micromark-util-types": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-mdxjs-esm": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/micromark-extension-mdxjs-esm/-/micromark-extension-mdxjs-esm-3.0.0.tgz", - "integrity": "sha512-DJFl4ZqkErRpq/dAPyeWp15tGrcrrJho1hKK5uBS70BCtfrIFg81sqcTVu3Ta+KD1Tk5vAtBNElWxtAa+m8K9A==", - "dependencies": { - "@types/estree": "^1.0.0", - "devlop": "^1.0.0", - "micromark-core-commonmark": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-events-to-acorn": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0", - "unist-util-position-from-estree": "^2.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-mdxjs-esm/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-mdxjs-esm/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-factory-destination": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.0.tgz", - "integrity": "sha512-j9DGrQLm/Uhl2tCzcbLhy5kXsgkHUrjJHg4fFAeoMRwJmJerT9aw4FEhIbZStWN8A3qMwOp1uzHr4UL8AInxtA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-destination/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-destination/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-factory-label": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.0.tgz", - "integrity": "sha512-RR3i96ohZGde//4WSe/dJsxOX6vxIg9TimLAS3i4EhBAFx8Sm5SmqVfR8E87DPSR31nEAjZfbt91OMZWcNgdZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "devlop": "^1.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-label/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-label/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-factory-mdx-expression": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-factory-mdx-expression/-/micromark-factory-mdx-expression-2.0.1.tgz", - "integrity": "sha512-F0ccWIUHRLRrYp5TC9ZYXmZo+p2AM13ggbsW4T0b5CRKP8KHVRB8t4pwtBgTxtjRmwrK0Irwm7vs2JOZabHZfg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "@types/estree": "^1.0.0", - "devlop": "^1.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-events-to-acorn": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0", - "unist-util-position-from-estree": "^2.0.0", - "vfile-message": "^4.0.0" - } - }, - "node_modules/micromark-factory-mdx-expression/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-mdx-expression/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-factory-space": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-1.1.0.tgz", - "integrity": "sha512-cRzEj7c0OL4Mw2v6nwzttyOZe8XY/Z8G0rzmWQZTBi/jjwyw/U4uqKtUORXQrR5bAZZnbTI/feRV/R7hc4jQYQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-factory-space/node_modules/micromark-util-types": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz", - "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-factory-title": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.0.tgz", - "integrity": "sha512-jY8CSxmpWLOxS+t8W+FG3Xigc0RDQA9bKMY/EwILvsesiRniiVMejYTE4wumNc2f4UbAa4WsHqe3J1QS1sli+A==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-title/node_modules/micromark-factory-space": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.0.tgz", - "integrity": "sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-title/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-title/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-factory-whitespace": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.0.tgz", - "integrity": "sha512-28kbwaBjc5yAI1XadbdPYHX/eDnqaUFVikLwrO7FDnKG7lpgxnvk/XGRhX/PN0mOZ+dBSZ+LgunHS+6tYQAzhA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-whitespace/node_modules/micromark-factory-space": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.0.tgz", - "integrity": "sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-whitespace/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-whitespace/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-character": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz", - "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-character/node_modules/micromark-util-types": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz", - "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-chunked": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.0.tgz", - "integrity": "sha512-anK8SWmNphkXdaKgz5hJvGa7l00qmcaUQoMYsBwDlSKFKjc6gjGXPDw3FNL3Nbwq5L8gE+RCbGqTw49FK5Qyvg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-chunked/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-classify-character": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.0.tgz", - "integrity": "sha512-S0ze2R9GH+fu41FA7pbSqNWObo/kzwf8rN/+IGlW/4tC6oACOs8B++bh+i9bVyNnwCcuksbFwsBme5OCKXCwIw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-classify-character/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-classify-character/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-combine-extensions": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.0.tgz", - "integrity": "sha512-vZZio48k7ON0fVS3CUgFatWHoKbbLTK/rT7pzpJ4Bjp5JjkZeasRfrS9wsBdDJK2cJLHMckXZdzPSSr1B8a4oQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-chunked": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-decode-numeric-character-reference": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.1.tgz", - "integrity": "sha512-bmkNc7z8Wn6kgjZmVHOX3SowGmVdhYS7yBpMnuMnPzDq/6xwVA604DuOXMZTO1lvq01g+Adfa0pE2UKGlxL1XQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-decode-numeric-character-reference/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-decode-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.0.tgz", - "integrity": "sha512-r4Sc6leeUTn3P6gk20aFMj2ntPwn6qpDZqWvYmAG6NgvFTIlj4WtrAudLi65qYoaGdXYViXYw2pkmn7QnIFasA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "decode-named-character-reference": "^1.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-decode-numeric-character-reference": "^2.0.0", - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-decode-string/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-decode-string/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-encode": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.0.tgz", - "integrity": "sha512-pS+ROfCXAGLWCOc8egcBvT0kf27GoWMqtdarNfDcjb6YLuV5cM3ioG45Ys2qOVqeqSbjaKg72vU+Wby3eddPsA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-events-to-acorn": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/micromark-util-events-to-acorn/-/micromark-util-events-to-acorn-2.0.2.tgz", - "integrity": "sha512-Fk+xmBrOv9QZnEDguL9OI9/NQQp6Hz4FuQ4YmCb/5V7+9eAh1s6AYSvL20kHkD67YIg7EpE54TiSlcsf3vyZgA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "@types/acorn": "^4.0.0", - "@types/estree": "^1.0.0", - "@types/unist": "^3.0.0", - "devlop": "^1.0.0", - "estree-util-visit": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0", - "vfile-message": "^4.0.0" - } - }, - "node_modules/micromark-util-events-to-acorn/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-html-tag-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.0.tgz", - "integrity": "sha512-xNn4Pqkj2puRhKdKTm8t1YHC/BAjx6CEwRFXntTaRf/x16aqka6ouVoutm+QdkISTlT7e2zU7U4ZdlDLJd2Mcw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-normalize-identifier": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.0.tgz", - "integrity": "sha512-2xhYT0sfo85FMrUPtHcPo2rrp1lwbDEEzpx7jiH2xXJLqBuy4H0GgXk5ToU8IEwoROtXuL8ND0ttVa4rNqYK3w==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-normalize-identifier/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-resolve-all": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.0.tgz", - "integrity": "sha512-6KU6qO7DZ7GJkaCgwBNtplXCvGkJToU86ybBAUdavvgsCiG8lSSvYxr9MhwmQ+udpzywHsl4RpGJsYWG1pDOcA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-sanitize-uri": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.0.tgz", - "integrity": "sha512-WhYv5UEcZrbAtlsnPuChHUAsu/iBPOVaEVsntLBIdpibO0ddy8OzavZz3iL2xVvBZOpolujSliP65Kq0/7KIYw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-encode": "^2.0.0", - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-sanitize-uri/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-sanitize-uri/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-subtokenize": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.0.0.tgz", - "integrity": "sha512-vc93L1t+gpR3p8jxeVdaYlbV2jTYteDje19rNSS/H5dlhxUYll5Fy6vJ2cDwP8RnsXi818yGty1ayP55y3W6fg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "devlop": "^1.0.0", - "micromark-util-chunked": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-subtokenize/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-symbol": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz", - "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-types": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.0.tgz", - "integrity": "sha512-oNh6S2WMHWRZrmutsRmDDfkzKtxF+bc2VxLC9dvtrDIRFln627VsFP6fLMgTryGDljgLPjkrzQSDcPrjPyDJ5w==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark/node_modules/micromark-factory-space": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.0.tgz", - "integrity": "sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark/node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", - "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", - "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", - "dependencies": { - "mime-db": "~1.33.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/mimic-response": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz", - "integrity": "sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mini-css-extract-plugin": { - "version": "2.7.7", - "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.7.tgz", - "integrity": "sha512-+0n11YGyRavUR3IlaOzJ0/4Il1avMvJ1VJfhWfCn24ITQXhRr1gghbhhrda6tgtNcpZaWKdSuwKq20Jb7fnlyw==", - "dependencies": { - "schema-utils": "^4.0.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, - "node_modules/minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/mrmime": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.0.tgz", - "integrity": "sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==", - "engines": { - "node": ">=10" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/multicast-dns": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", - "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", - "dependencies": { - "dns-packet": "^5.2.2", - "thunky": "^1.0.2" - }, - "bin": { - "multicast-dns": "cli.js" - } - }, - "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - }, - "node_modules/no-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", - "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", - "dependencies": { - "lower-case": "^2.0.2", - "tslib": "^2.0.3" - } - }, - "node_modules/node-emoji": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-2.1.3.tgz", - "integrity": "sha512-E2WEOVsgs7O16zsURJ/eH8BqhF029wGpEOnv7Urwdo2wmQanOACwJQh0devF9D9RhoZru0+9JXIS0dBXIAz+lA==", - "dependencies": { - "@sindresorhus/is": "^4.6.0", - "char-regex": "^1.0.2", - "emojilib": "^2.4.0", - "skin-tone": "^2.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/node-forge": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", - "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", - "engines": { - "node": ">= 6.13.0" - } - }, - "node_modules/node-releases": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", - "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==" - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/nprogress": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz", - "integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==" - }, - "node_modules/nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "dependencies": { - "boolbase": "^1.0.0" - }, - "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", - "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", - "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", - "dependencies": { - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/obuf": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", - "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/open": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", - "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", - "dependencies": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/opener": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", - "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", - "bin": { - "opener": "bin/opener-bin.js" - } - }, - "node_modules/p-cancelable": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz", - "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==", - "engines": { - "node": ">=12.20" - } - }, - "node_modules/p-limit": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", - "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", - "dependencies": { - "yocto-queue": "^1.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz", - "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==", - "dependencies": { - "p-limit": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-retry": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", - "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", - "dependencies": { - "@types/retry": "0.12.0", - "retry": "^0.13.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/package-json": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/package-json/-/package-json-8.1.1.tgz", - "integrity": "sha512-cbH9IAIJHNj9uXi196JVsRlt7cHKak6u/e6AkL/bkRelZ7rlL3X1YKxsZwa36xipOEKAsdtmaG6aAJoM1fx2zA==", - "dependencies": { - "got": "^12.1.0", - "registry-auth-token": "^5.0.1", - "registry-url": "^6.0.0", - "semver": "^7.3.7" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/param-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", - "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-entities": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.1.tgz", - "integrity": "sha512-SWzvYcSJh4d/SGLIOQfZ/CoNv6BTlI6YEQ7Nj82oDVnRpwe/Z/F1EMx42x3JAOwGBlCjeCH0BRJQbQ/opHL17w==", - "dependencies": { - "@types/unist": "^2.0.0", - "character-entities": "^2.0.0", - "character-entities-legacy": "^3.0.0", - "character-reference-invalid": "^2.0.0", - "decode-named-character-reference": "^1.0.0", - "is-alphanumerical": "^2.0.0", - "is-decimal": "^2.0.0", - "is-hexadecimal": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/parse-entities/node_modules/@types/unist": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz", - "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==" - }, - "node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parse-numeric-range": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/parse-numeric-range/-/parse-numeric-range-1.3.0.tgz", - "integrity": "sha512-twN+njEipszzlMJd4ONUYgSfZPDxgHhT9Ahed5uTigpQn90FggW4SA/AIPq/6a149fTbE9qBEcSwE3FAEp6wQQ==" - }, - "node_modules/parse5": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", - "dependencies": { - "entities": "^4.4.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/parse5-htmlparser2-tree-adapter": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", - "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", - "dependencies": { - "domhandler": "^5.0.2", - "parse5": "^7.0.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/pascal-case": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", - "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/path-exists": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", - "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==" - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "node_modules/path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", - "dependencies": { - "isarray": "0.0.1" - } - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/periscopic": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz", - "integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==", - "dependencies": { - "@types/estree": "^1.0.0", - "estree-walker": "^3.0.0", - "is-reference": "^3.0.0" - } - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pkg-dir": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-7.0.0.tgz", - "integrity": "sha512-Ie9z/WINcxxLp27BKOCHGde4ITq9UklYKDzVo1nhk5sqGEXU3FpkwP5GM2voTGJkGd9B3Otl+Q4uwSOeSUtOBA==", - "dependencies": { - "find-up": "^6.3.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-up": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", - "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", - "dependencies": { - "find-up": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-up/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-up/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss": { - "version": "8.4.33", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz", - "integrity": "sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/postcss-calc": { - "version": "8.2.4", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", - "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", - "dependencies": { - "postcss-selector-parser": "^6.0.9", - "postcss-value-parser": "^4.2.0" - }, - "peerDependencies": { - "postcss": "^8.2.2" - } - }, - "node_modules/postcss-colormin": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", - "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", - "dependencies": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0", - "colord": "^2.9.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-convert-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", - "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", - "dependencies": { - "browserslist": "^4.21.4", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-comments": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", - "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-duplicates": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", - "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-empty": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", - "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-overridden": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", - "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-unused": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-5.1.0.tgz", - "integrity": "sha512-KwLWymI9hbwXmJa0dkrzpRbSJEh0vVUd7r8t0yOGPcfKzyJJxFM8kLyC5Ev9avji6nY95pOp1W6HqIrfT+0VGw==", - "dependencies": { - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-loader": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-7.3.4.tgz", - "integrity": "sha512-iW5WTTBSC5BfsBJ9daFMPVrLT36MrNiC6fqOZTTaHjBNX6Pfd5p+hSBqe/fEeNd7pc13QiAyGt7VdGMw4eRC4A==", - "dependencies": { - "cosmiconfig": "^8.3.5", - "jiti": "^1.20.0", - "semver": "^7.5.4" - }, - "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "postcss": "^7.0.0 || ^8.0.1", - "webpack": "^5.0.0" - } - }, - "node_modules/postcss-loader/node_modules/cosmiconfig": { - "version": "8.3.6", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", - "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", - "dependencies": { - "import-fresh": "^3.3.0", - "js-yaml": "^4.1.0", - "parse-json": "^5.2.0", - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/d-fischer" - }, - "peerDependencies": { - "typescript": ">=4.9.5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/postcss-merge-idents": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-5.1.1.tgz", - "integrity": "sha512-pCijL1TREiCoog5nQp7wUe+TUonA2tC2sQ54UGeMmryK3UFGIYKqDyjnqd6RcuI4znFn9hWSLNN8xKE/vWcUQw==", - "dependencies": { - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-merge-longhand": { - "version": "5.1.7", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", - "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0", - "stylehacks": "^5.1.1" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-merge-rules": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", - "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", - "dependencies": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0", - "cssnano-utils": "^3.1.0", - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-font-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", - "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-gradients": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", - "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", - "dependencies": { - "colord": "^2.9.1", - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-params": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", - "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", - "dependencies": { - "browserslist": "^4.21.4", - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-selectors": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", - "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", - "dependencies": { - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-modules-extract-imports": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", - "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-local-by-default": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", - "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", - "dependencies": { - "icss-utils": "^5.0.0", - "postcss-selector-parser": "^6.0.2", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-scope": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.1.0.tgz", - "integrity": "sha512-SaIbK8XW+MZbd0xHPf7kdfA/3eOt7vxJ72IRecn3EzuZVLr1r0orzf0MX/pN8m+NMDoo6X/SQd8oeKqGZd8PXg==", - "dependencies": { - "postcss-selector-parser": "^6.0.4" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-values": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", - "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", - "dependencies": { - "icss-utils": "^5.0.0" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-normalize-charset": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", - "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-display-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", - "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-positions": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", - "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-repeat-style": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", - "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-string": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", - "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-timing-functions": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", - "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-unicode": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", - "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", - "dependencies": { - "browserslist": "^4.21.4", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-url": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", - "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", - "dependencies": { - "normalize-url": "^6.0.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-whitespace": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", - "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-ordered-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", - "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", - "dependencies": { - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-reduce-idents": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-5.2.0.tgz", - "integrity": "sha512-BTrLjICoSB6gxbc58D5mdBK8OhXRDqud/zodYfdSi52qvDHdMwk+9kB9xsM8yJThH/sZU5A6QVSmMmaN001gIg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-reduce-initial": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", - "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", - "dependencies": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-reduce-transforms": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", - "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-selector-parser": { - "version": "6.0.15", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.15.tgz", - "integrity": "sha512-rEYkQOMUCEMhsKbK66tbEU9QVIxbhN18YiniAwA7XQYTVBqrBy+P2p5JcdqsHgKM2zWylp8d7J6eszocfds5Sw==", - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-sort-media-queries": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/postcss-sort-media-queries/-/postcss-sort-media-queries-4.4.1.tgz", - "integrity": "sha512-QDESFzDDGKgpiIh4GYXsSy6sek2yAwQx1JASl5AxBtU1Lq2JfKBljIPNdil989NcSKRQX1ToiaKphImtBuhXWw==", - "dependencies": { - "sort-css-media-queries": "2.1.0" - }, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "postcss": "^8.4.16" - } - }, - "node_modules/postcss-svgo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", - "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", - "dependencies": { - "postcss-value-parser": "^4.2.0", - "svgo": "^2.7.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-unique-selectors": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", - "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", - "dependencies": { - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" - }, - "node_modules/postcss-zindex": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-zindex/-/postcss-zindex-5.1.0.tgz", - "integrity": "sha512-fgFMf0OtVSBR1va1JNHYgMxYk73yhn/qb4uQDq1DLGYolz8gHCyr/sesEuGUaYs58E3ZJRcpoGuPVoB7Meiq9A==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/pretty-error": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", - "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", - "dependencies": { - "lodash": "^4.17.20", - "renderkid": "^3.0.0" - } - }, - "node_modules/pretty-time": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pretty-time/-/pretty-time-1.1.0.tgz", - "integrity": "sha512-28iF6xPQrP8Oa6uxE6a1biz+lWeTOAPKggvjB8HAs6nVMKZwf5bG++632Dx614hIWgUPkgivRfG+a8uAXGTIbA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/prism-react-renderer": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/prism-react-renderer/-/prism-react-renderer-2.3.1.tgz", - "integrity": "sha512-Rdf+HzBLR7KYjzpJ1rSoxT9ioO85nZngQEoFIhL07XhtJHlCU3SOz0GJ6+qvMyQe0Se+BV3qpe6Yd/NmQF5Juw==", - "dependencies": { - "@types/prismjs": "^1.26.0", - "clsx": "^2.0.0" - }, - "peerDependencies": { - "react": ">=16.0.0" - } - }, - "node_modules/prismjs": { - "version": "1.29.0", - "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", - "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==", - "engines": { - "node": ">=6" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, - "node_modules/prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "node_modules/property-information": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.4.0.tgz", - "integrity": "sha512-9t5qARVofg2xQqKtytzt+lZ4d1Qvj8t5B8fEwXK6qOfgRLgH/b13QlgEyDh033NOS31nXeFbYv7CLUDG1CeifQ==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/proto-list": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", - "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==" - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/proxy-addr/node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==" - }, - "node_modules/pupa": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pupa/-/pupa-3.1.0.tgz", - "integrity": "sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug==", - "dependencies": { - "escape-goat": "^4.0.0" - }, - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/queue": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", - "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==", - "dependencies": { - "inherits": "~2.0.3" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/quick-lru": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", - "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/range-parser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", - "integrity": "sha512-kA5WQoNVo4t9lNx2kQNFCxKeBl5IbbSNBl1M/tLkw9WCn+hxNBAW5Qh8gdhs63CJnhjJ2zQWFoqPJP2sK1AV5A==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", - "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/raw-body/node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" - } - }, - "node_modules/rc/node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", - "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", - "dependencies": { - "loose-envify": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dev-utils": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz", - "integrity": "sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==", - "dependencies": { - "@babel/code-frame": "^7.16.0", - "address": "^1.1.2", - "browserslist": "^4.18.1", - "chalk": "^4.1.2", - "cross-spawn": "^7.0.3", - "detect-port-alt": "^1.1.6", - "escape-string-regexp": "^4.0.0", - "filesize": "^8.0.6", - "find-up": "^5.0.0", - "fork-ts-checker-webpack-plugin": "^6.5.0", - "global-modules": "^2.0.0", - "globby": "^11.0.4", - "gzip-size": "^6.0.0", - "immer": "^9.0.7", - "is-root": "^2.1.0", - "loader-utils": "^3.2.0", - "open": "^8.4.0", - "pkg-up": "^3.1.0", - "prompts": "^2.4.2", - "react-error-overlay": "^6.0.11", - "recursive-readdir": "^2.2.2", - "shell-quote": "^1.7.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/react-dev-utils/node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/react-dev-utils/node_modules/loader-utils": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", - "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==", - "engines": { - "node": ">= 12.13.0" - } - }, - "node_modules/react-dev-utils/node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/react-dev-utils/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/react-dev-utils/node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/react-dev-utils/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "engines": { - "node": ">=8" - } - }, - "node_modules/react-dev-utils/node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/react-dom": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", - "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", - "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.0" - }, - "peerDependencies": { - "react": "^18.2.0" - } - }, - "node_modules/react-error-overlay": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", - "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" - }, - "node_modules/react-fast-compare": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz", - "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==" - }, - "node_modules/react-helmet-async": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/react-helmet-async/-/react-helmet-async-1.3.0.tgz", - "integrity": "sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg==", - "dependencies": { - "@babel/runtime": "^7.12.5", - "invariant": "^2.2.4", - "prop-types": "^15.7.2", - "react-fast-compare": "^3.2.0", - "shallowequal": "^1.1.0" - }, - "peerDependencies": { - "react": "^16.6.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.6.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, - "node_modules/react-json-view-lite": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/react-json-view-lite/-/react-json-view-lite-1.2.1.tgz", - "integrity": "sha512-Itc0g86fytOmKZoIoJyGgvNqohWSbh3NXIKNgH6W6FT9PC1ck4xas1tT3Rr/b3UlFXyA9Jjaw9QSXdZy2JwGMQ==", - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "react": "^16.13.1 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/react-loadable": { - "name": "@docusaurus/react-loadable", - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz", - "integrity": "sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==", - "dependencies": { - "@types/react": "*", - "prop-types": "^15.6.2" - }, - "peerDependencies": { - "react": "*" - } - }, - "node_modules/react-loadable-ssr-addon-v5-slorber": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/react-loadable-ssr-addon-v5-slorber/-/react-loadable-ssr-addon-v5-slorber-1.0.1.tgz", - "integrity": "sha512-lq3Lyw1lGku8zUEJPDxsNm1AfYHBrO9Y1+olAYwpUJ2IGFBskM0DMKok97A6LWUpHm+o7IvQBOWu9MLenp9Z+A==", - "dependencies": { - "@babel/runtime": "^7.10.3" - }, - "engines": { - "node": ">=10.13.0" - }, - "peerDependencies": { - "react-loadable": "*", - "webpack": ">=4.41.1 || 5.x" - } - }, - "node_modules/react-router": { - "version": "5.3.4", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-5.3.4.tgz", - "integrity": "sha512-Ys9K+ppnJah3QuaRiLxk+jDWOR1MekYQrlytiXxC1RyfbdsZkS5pvKAzCCr031xHixZwpnsYNT5xysdFHQaYsA==", - "dependencies": { - "@babel/runtime": "^7.12.13", - "history": "^4.9.0", - "hoist-non-react-statics": "^3.1.0", - "loose-envify": "^1.3.1", - "path-to-regexp": "^1.7.0", - "prop-types": "^15.6.2", - "react-is": "^16.6.0", - "tiny-invariant": "^1.0.2", - "tiny-warning": "^1.0.0" - }, - "peerDependencies": { - "react": ">=15" - } - }, - "node_modules/react-router-config": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/react-router-config/-/react-router-config-5.1.1.tgz", - "integrity": "sha512-DuanZjaD8mQp1ppHjgnnUnyOlqYXZVjnov/JzFhjLEwd3Z4dYjMSnqrEzzGThH47vpCOqPPwJM2FtthLeJ8Pbg==", - "dependencies": { - "@babel/runtime": "^7.1.2" - }, - "peerDependencies": { - "react": ">=15", - "react-router": ">=5" - } - }, - "node_modules/react-router-dom": { - "version": "5.3.4", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.3.4.tgz", - "integrity": "sha512-m4EqFMHv/Ih4kpcBCONHbkT68KoAeHN4p3lAGoNryfHi0dMy0kCzEZakiKRsvg5wHZ/JLrLW8o8KomWiz/qbYQ==", - "dependencies": { - "@babel/runtime": "^7.12.13", - "history": "^4.9.0", - "loose-envify": "^1.3.1", - "prop-types": "^15.6.2", - "react-router": "5.3.4", - "tiny-invariant": "^1.0.2", - "tiny-warning": "^1.0.0" - }, - "peerDependencies": { - "react": ">=15" - } - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/reading-time": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/reading-time/-/reading-time-1.5.0.tgz", - "integrity": "sha512-onYyVhBNr4CmAxFsKS7bz+uTLRakypIe4R+5A824vBSkQy/hB3fZepoVEf8OVAxzLvK+H/jm9TzpI3ETSm64Kg==" - }, - "node_modules/rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/recursive-readdir": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", - "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", - "dependencies": { - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", - "integrity": "sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==", - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", - "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" - }, - "node_modules/regenerator-transform": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", - "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, - "node_modules/regexpu-core": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", - "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", - "dependencies": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/registry-auth-token": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.0.2.tgz", - "integrity": "sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ==", - "dependencies": { - "@pnpm/npm-conf": "^2.1.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/registry-url": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-6.0.1.tgz", - "integrity": "sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==", - "dependencies": { - "rc": "1.2.8" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", - "dependencies": { - "jsesc": "~0.5.0" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", - "bin": { - "jsesc": "bin/jsesc" - } - }, - "node_modules/rehype-raw": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/rehype-raw/-/rehype-raw-7.0.0.tgz", - "integrity": "sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==", - "dependencies": { - "@types/hast": "^3.0.0", - "hast-util-raw": "^9.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/relateurl": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/remark-directive": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-directive/-/remark-directive-3.0.0.tgz", - "integrity": "sha512-l1UyWJ6Eg1VPU7Hm/9tt0zKtReJQNOA4+iDMAxTyZNWnJnFlbS/7zhiel/rogTLQ2vMYwDzSJa4BiVNqGlqIMA==", - "dependencies": { - "@types/mdast": "^4.0.0", - "mdast-util-directive": "^3.0.0", - "micromark-extension-directive": "^3.0.0", - "unified": "^11.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-emoji": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/remark-emoji/-/remark-emoji-4.0.1.tgz", - "integrity": "sha512-fHdvsTR1dHkWKev9eNyhTo4EFwbUvJ8ka9SgeWkMPYFX4WoI7ViVBms3PjlQYgw5TLvNQso3GUB/b/8t3yo+dg==", - "dependencies": { - "@types/mdast": "^4.0.2", - "emoticon": "^4.0.1", - "mdast-util-find-and-replace": "^3.0.1", - "node-emoji": "^2.1.0", - "unified": "^11.0.4" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - } - }, - "node_modules/remark-frontmatter": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/remark-frontmatter/-/remark-frontmatter-5.0.0.tgz", - "integrity": "sha512-XTFYvNASMe5iPN0719nPrdItC9aU0ssC4v14mH1BCi1u0n1gAocqcujWUrByftZTbLhRtiKRyjYTSIOcr69UVQ==", - "dependencies": { - "@types/mdast": "^4.0.0", - "mdast-util-frontmatter": "^2.0.0", - "micromark-extension-frontmatter": "^2.0.0", - "unified": "^11.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-gfm": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.0.tgz", - "integrity": "sha512-U92vJgBPkbw4Zfu/IiW2oTZLSL3Zpv+uI7My2eq8JxKgqraFdU8YUGicEJCEgSbeaG+QDFqIcwwfMTOEelPxuA==", - "dependencies": { - "@types/mdast": "^4.0.0", - "mdast-util-gfm": "^3.0.0", - "micromark-extension-gfm": "^3.0.0", - "remark-parse": "^11.0.0", - "remark-stringify": "^11.0.0", - "unified": "^11.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-mdx": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-mdx/-/remark-mdx-3.0.0.tgz", - "integrity": "sha512-O7yfjuC6ra3NHPbRVxfflafAj3LTwx3b73aBvkEFU5z4PsD6FD4vrqJAkE5iNGLz71GdjXfgRqm3SQ0h0VuE7g==", - "dependencies": { - "mdast-util-mdx": "^3.0.0", - "micromark-extension-mdxjs": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-parse": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz", - "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==", - "dependencies": { - "@types/mdast": "^4.0.0", - "mdast-util-from-markdown": "^2.0.0", - "micromark-util-types": "^2.0.0", - "unified": "^11.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.0.tgz", - "integrity": "sha512-z3tJrAs2kIs1AqIIy6pzHmAHlF1hWQ+OdY4/hv+Wxe35EhyLKcajL33iUEn3ScxtFox9nUvRufR/Zre8Q08H/g==", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "mdast-util-to-hast": "^13.0.0", - "unified": "^11.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-stringify": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz", - "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==", - "dependencies": { - "@types/mdast": "^4.0.0", - "mdast-util-to-markdown": "^2.0.0", - "unified": "^11.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/renderkid": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", - "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", - "dependencies": { - "css-select": "^4.1.3", - "dom-converter": "^0.2.0", - "htmlparser2": "^6.1.0", - "lodash": "^4.17.21", - "strip-ansi": "^6.0.1" - } - }, - "node_modules/renderkid/node_modules/css-select": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^6.0.1", - "domhandler": "^4.3.1", - "domutils": "^2.8.0", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/renderkid/node_modules/dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/renderkid/node_modules/domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/renderkid/node_modules/domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "dependencies": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/renderkid/node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/renderkid/node_modules/htmlparser2": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", - "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", - "funding": [ - "https://github.com/fb55/htmlparser2?sponsor=1", - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.0.0", - "domutils": "^2.5.2", - "entities": "^2.0.0" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-like": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/require-like/-/require-like-0.1.2.tgz", - "integrity": "sha512-oyrU88skkMtDdauHDuKVrgR+zuItqr6/c//FXzvmxRGMexSDc6hNvJInGW3LL46n+8b50RykrvwSUIIQH2LQ5A==", - "engines": { - "node": "*" - } - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" - }, - "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-alpn": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", - "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==" - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve-pathname": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-3.0.0.tgz", - "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==" - }, - "node_modules/responselike": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz", - "integrity": "sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==", - "dependencies": { - "lowercase-keys": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rtl-detect": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/rtl-detect/-/rtl-detect-1.1.2.tgz", - "integrity": "sha512-PGMBq03+TTG/p/cRB7HCLKJ1MgDIi07+QU1faSjiYRfmY5UsAttV9Hs08jDAHVwcOwmVLcSJkpwyfXszVjWfIQ==" - }, - "node_modules/rtlcss": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/rtlcss/-/rtlcss-4.1.1.tgz", - "integrity": "sha512-/oVHgBtnPNcggP2aVXQjSy6N1mMAfHg4GSag0QtZBlD5bdDgAHwr4pydqJGd+SUCu9260+Pjqbjwtvu7EMH1KQ==", - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0", - "postcss": "^8.4.21", - "strip-json-comments": "^3.1.1" - }, - "bin": { - "rtlcss": "bin/rtlcss.js" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "node_modules/sax": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", - "integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==" - }, - "node_modules/scheduler": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", - "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", - "dependencies": { - "loose-envify": "^1.1.0" - } - }, - "node_modules/schema-utils": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", - "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/search-insights": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.13.0.tgz", - "integrity": "sha512-Orrsjf9trHHxFRuo9/rzm0KIWmgzE8RMlZMzuhZOJ01Rnz3D0YBAe+V6473t6/H6c7irs6Lt48brULAiRWb3Vw==", - "peer": true - }, - "node_modules/section-matter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", - "integrity": "sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==", - "dependencies": { - "extend-shallow": "^2.0.1", - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/select-hose": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", - "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==" - }, - "node_modules/selfsigned": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.4.1.tgz", - "integrity": "sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q==", - "dependencies": { - "@types/node-forge": "^1.3.0", - "node-forge": "^1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-4.0.0.tgz", - "integrity": "sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==", - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/semver/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/send/node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/send/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/send/node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serialize-javascript": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", - "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/serve-handler": { - "version": "6.1.5", - "resolved": "https://registry.npmjs.org/serve-handler/-/serve-handler-6.1.5.tgz", - "integrity": "sha512-ijPFle6Hwe8zfmBxJdE+5fta53fdIY0lHISJvuikXB3VYFafRjMRpOffSPvCYsbKyBA7pvy9oYr/BT1O3EArlg==", - "dependencies": { - "bytes": "3.0.0", - "content-disposition": "0.5.2", - "fast-url-parser": "1.1.3", - "mime-types": "2.1.18", - "minimatch": "3.1.2", - "path-is-inside": "1.0.2", - "path-to-regexp": "2.2.1", - "range-parser": "1.2.0" - } - }, - "node_modules/serve-handler/node_modules/path-to-regexp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.2.1.tgz", - "integrity": "sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ==" - }, - "node_modules/serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", - "dependencies": { - "accepts": "~1.3.4", - "batch": "0.6.1", - "debug": "2.6.9", - "escape-html": "~1.0.3", - "http-errors": "~1.6.2", - "mime-types": "~2.1.17", - "parseurl": "~1.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/serve-index/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/serve-index/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-index/node_modules/http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", - "dependencies": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-index/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" - }, - "node_modules/serve-index/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/serve-index/node_modules/setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" - }, - "node_modules/serve-index/node_modules/statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", - "dependencies": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.18.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/set-function-length": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", - "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", - "dependencies": { - "define-data-property": "^1.1.1", - "get-intrinsic": "^1.2.1", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" - }, - "node_modules/shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "dependencies": { - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shallowequal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", - "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==" - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "engines": { - "node": ">=8" - } - }, - "node_modules/shell-quote": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", - "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, - "node_modules/sirv": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/sirv/-/sirv-2.0.4.tgz", - "integrity": "sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==", - "dependencies": { - "@polka/url": "^1.0.0-next.24", - "mrmime": "^2.0.0", - "totalist": "^3.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" - }, - "node_modules/sitemap": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-7.1.1.tgz", - "integrity": "sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==", - "dependencies": { - "@types/node": "^17.0.5", - "@types/sax": "^1.2.1", - "arg": "^5.0.0", - "sax": "^1.2.4" - }, - "bin": { - "sitemap": "dist/cli.js" - }, - "engines": { - "node": ">=12.0.0", - "npm": ">=5.6.0" - } - }, - "node_modules/sitemap/node_modules/@types/node": { - "version": "17.0.45", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", - "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==" - }, - "node_modules/skin-tone": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/skin-tone/-/skin-tone-2.0.0.tgz", - "integrity": "sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==", - "dependencies": { - "unicode-emoji-modifier-base": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/sockjs": { - "version": "0.3.24", - "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", - "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", - "dependencies": { - "faye-websocket": "^0.11.3", - "uuid": "^8.3.2", - "websocket-driver": "^0.7.4" - } - }, - "node_modules/sort-css-media-queries": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/sort-css-media-queries/-/sort-css-media-queries-2.1.0.tgz", - "integrity": "sha512-IeWvo8NkNiY2vVYdPa27MCQiR0MN0M80johAYFVxWWXQ44KU84WNxjslwBHmc/7ZL2ccwkM7/e6S5aiKZXm7jA==", - "engines": { - "node": ">= 6.3.0" - } - }, - "node_modules/source-map": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/space-separated-tokens": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", - "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/spdy": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", - "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", - "dependencies": { - "debug": "^4.1.0", - "handle-thing": "^2.0.0", - "http-deceiver": "^1.2.7", - "select-hose": "^2.0.0", - "spdy-transport": "^3.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/spdy-transport": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", - "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", - "dependencies": { - "debug": "^4.1.0", - "detect-node": "^2.0.4", - "hpack.js": "^2.1.6", - "obuf": "^1.1.2", - "readable-stream": "^3.0.6", - "wbuf": "^1.7.3" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, - "node_modules/srcset": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/srcset/-/srcset-4.0.0.tgz", - "integrity": "sha512-wvLeHgcVHKO8Sc/H/5lkGreJQVeYMm9rlmt8PuR1xE31rIuXhuzznUUqAt8MqLhB3MqJdFzlNAfpcWnxiFUcPw==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/stable": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", - "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility" - }, - "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/std-env": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.7.0.tgz", - "integrity": "sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==" - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/string-width/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/stringify-entities": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.3.tgz", - "integrity": "sha512-BP9nNHMhhfcMbiuQKCqMjhDP5yBCAxsPu4pHFFzJ6Alo9dZgY4VLDPutXqIjpRiMoKdp7Av85Gr73Q5uH9k7+g==", - "dependencies": { - "character-entities-html4": "^2.0.0", - "character-entities-legacy": "^3.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/stringify-object": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", - "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", - "dependencies": { - "get-own-enumerable-property-symbols": "^3.0.0", - "is-obj": "^1.0.1", - "is-regexp": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom-string": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", - "integrity": "sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/style-to-object": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.4.4.tgz", - "integrity": "sha512-HYNoHZa2GorYNyqiCaBgsxvcJIn7OHq6inEga+E6Ke3m5JkoqpQbnFssk4jwe+K7AhGa2fcha4wSOf1Kn01dMg==", - "dependencies": { - "inline-style-parser": "0.1.1" - } - }, - "node_modules/stylehacks": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", - "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", - "dependencies": { - "browserslist": "^4.21.4", - "postcss-selector-parser": "^6.0.4" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/svg-parser": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", - "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==" - }, - "node_modules/svgo": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", - "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", - "dependencies": { - "@trysound/sax": "0.2.0", - "commander": "^7.2.0", - "css-select": "^4.1.3", - "css-tree": "^1.1.3", - "csso": "^4.2.0", - "picocolors": "^1.0.0", - "stable": "^0.1.8" - }, - "bin": { - "svgo": "bin/svgo" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/svgo/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/svgo/node_modules/css-select": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^6.0.1", - "domhandler": "^4.3.1", - "domutils": "^2.8.0", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/svgo/node_modules/dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/svgo/node_modules/domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/svgo/node_modules/domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "dependencies": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/svgo/node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/terser": { - "version": "5.26.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.26.0.tgz", - "integrity": "sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ==", - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.8.2", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/terser-webpack-plugin": { - "version": "5.3.10", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", - "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.20", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.26.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } - } - }, - "node_modules/terser-webpack-plugin/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/terser-webpack-plugin/node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peerDependencies": { - "ajv": "^6.9.1" - } - }, - "node_modules/terser-webpack-plugin/node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/terser-webpack-plugin/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/terser-webpack-plugin/node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/terser-webpack-plugin/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/terser/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" - }, - "node_modules/thunky": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", - "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==" - }, - "node_modules/tiny-invariant": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz", - "integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==" - }, - "node_modules/tiny-warning": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", - "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/totalist": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz", - "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/trim-lines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", - "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/trough": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/trough/-/trough-2.1.0.tgz", - "integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" - }, - "node_modules/type-fest": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", - "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==", - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/type-is/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/type-is/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, - "node_modules/typescript": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", - "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-emoji-modifier-base": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unicode-emoji-modifier-base/-/unicode-emoji-modifier-base-1.0.0.tgz", - "integrity": "sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", - "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unified": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.4.tgz", - "integrity": "sha512-apMPnyLjAX+ty4OrNap7yumyVAMlKx5IWU2wlzzUdYJO9A8f1p9m/gywF/GM2ZDFcjQPrx59Mc90KwmxsoklxQ==", - "dependencies": { - "@types/unist": "^3.0.0", - "bail": "^2.0.0", - "devlop": "^1.0.0", - "extend": "^3.0.0", - "is-plain-obj": "^4.0.0", - "trough": "^2.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unique-string": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-3.0.0.tgz", - "integrity": "sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==", - "dependencies": { - "crypto-random-string": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/unist-util-is": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.0.tgz", - "integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==", - "dependencies": { - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-position": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", - "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", - "dependencies": { - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-position-from-estree": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unist-util-position-from-estree/-/unist-util-position-from-estree-2.0.0.tgz", - "integrity": "sha512-KaFVRjoqLyF6YXCbVLNad/eS4+OfPQQn2yOd7zF/h5T/CSL2v8NpN6a5TPvtbXthAGw5nG+PuTtq+DdIZr+cRQ==", - "dependencies": { - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-remove-position": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-5.0.0.tgz", - "integrity": "sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-visit": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-stringify-position": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", - "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", - "dependencies": { - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz", - "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-is": "^6.0.0", - "unist-util-visit-parents": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit-parents": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz", - "integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-is": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/update-notifier": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-6.0.2.tgz", - "integrity": "sha512-EDxhTEVPZZRLWYcJ4ZXjGFN0oP7qYvbXWzEgRm/Yql4dHX5wDbvh89YHP6PK1lzZJYrMtXUuZZz8XGK+U6U1og==", - "dependencies": { - "boxen": "^7.0.0", - "chalk": "^5.0.1", - "configstore": "^6.0.0", - "has-yarn": "^3.0.0", - "import-lazy": "^4.0.0", - "is-ci": "^3.0.1", - "is-installed-globally": "^0.4.0", - "is-npm": "^6.0.0", - "is-yarn-global": "^0.4.0", - "latest-version": "^7.0.0", - "pupa": "^3.1.0", - "semver": "^7.3.7", - "semver-diff": "^4.0.0", - "xdg-basedir": "^5.1.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/yeoman/update-notifier?sponsor=1" - } - }, - "node_modules/update-notifier/node_modules/boxen": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-7.1.1.tgz", - "integrity": "sha512-2hCgjEmP8YLWQ130n2FerGv7rYpfBmnmp9Uy2Le1vge6X3gZIfSmEzP5QTDElFxcvVcXlEn8Aq6MU/PZygIOog==", - "dependencies": { - "ansi-align": "^3.0.1", - "camelcase": "^7.0.1", - "chalk": "^5.2.0", - "cli-boxes": "^3.0.0", - "string-width": "^5.1.2", - "type-fest": "^2.13.0", - "widest-line": "^4.0.1", - "wrap-ansi": "^8.1.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/update-notifier/node_modules/camelcase": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-7.0.1.tgz", - "integrity": "sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==", - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/update-notifier/node_modules/chalk": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", - "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/uri-js/node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/url-loader": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/url-loader/-/url-loader-4.1.1.tgz", - "integrity": "sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==", - "dependencies": { - "loader-utils": "^2.0.0", - "mime-types": "^2.1.27", - "schema-utils": "^3.0.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "file-loader": "*", - "webpack": "^4.0.0 || ^5.0.0" - }, - "peerDependenciesMeta": { - "file-loader": { - "optional": true - } - } - }, - "node_modules/url-loader/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/url-loader/node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peerDependencies": { - "ajv": "^6.9.1" - } - }, - "node_modules/url-loader/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/url-loader/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/url-loader/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/url-loader/node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "node_modules/utila": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", - "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==" - }, - "node_modules/utility-types": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", - "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/value-equal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz", - "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==" - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/vfile": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.1.tgz", - "integrity": "sha512-1bYqc7pt6NIADBJ98UiG0Bn/CHIVOoZ/IyEkqIruLg0mE1BKzkOXY2D6CSqQIcKqgadppE5lrxgWXJmXd7zZJw==", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-stringify-position": "^4.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-location": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-5.0.2.tgz", - "integrity": "sha512-NXPYyxyBSH7zB5U6+3uDdd6Nybz6o6/od9rk8bp9H8GR3L+cm/fC0uUTbqBmUTnMCUDslAGBOIKNfvvb+gGlDg==", - "dependencies": { - "@types/unist": "^3.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-message": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.2.tgz", - "integrity": "sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-stringify-position": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/wbuf": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", - "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", - "dependencies": { - "minimalistic-assert": "^1.0.0" - } - }, - "node_modules/web-namespaces": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", - "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/webpack": { - "version": "5.89.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.89.0.tgz", - "integrity": "sha512-qyfIC10pOr70V+jkmud8tMfajraGCZMBWJtrmuBymQKCrLTRejBI8STDp1MCyZu/QTdZSeacCQYpYNQVOzX5kw==", - "dependencies": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.9.0", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.15.0", - "es-module-lexer": "^1.2.1", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.2.0", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", - "watchpack": "^2.4.0", - "webpack-sources": "^3.2.3" - }, - "bin": { - "webpack": "bin/webpack.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-bundle-analyzer": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.10.1.tgz", - "integrity": "sha512-s3P7pgexgT/HTUSYgxJyn28A+99mmLq4HsJepMPzu0R8ImJc52QNqaFYW1Z2z2uIb1/J3eYgaAWVpaC+v/1aAQ==", - "dependencies": { - "@discoveryjs/json-ext": "0.5.7", - "acorn": "^8.0.4", - "acorn-walk": "^8.0.0", - "commander": "^7.2.0", - "debounce": "^1.2.1", - "escape-string-regexp": "^4.0.0", - "gzip-size": "^6.0.0", - "html-escaper": "^2.0.2", - "is-plain-object": "^5.0.0", - "opener": "^1.5.2", - "picocolors": "^1.0.0", - "sirv": "^2.0.3", - "ws": "^7.3.1" - }, - "bin": { - "webpack-bundle-analyzer": "lib/bin/analyzer.js" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/webpack-dev-middleware": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", - "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", - "dependencies": { - "colorette": "^2.0.10", - "memfs": "^3.4.3", - "mime-types": "^2.1.31", - "range-parser": "^1.2.1", - "schema-utils": "^4.0.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" - } - }, - "node_modules/webpack-dev-middleware/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/webpack-dev-middleware/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/webpack-dev-middleware/node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/webpack-dev-server": { - "version": "4.15.1", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.1.tgz", - "integrity": "sha512-5hbAst3h3C3L8w6W4P96L5vaV0PxSmJhxZvWKYIdgxOQm8pNZ5dEOmmSLBVpP85ReeyRt6AS1QJNyo/oFFPeVA==", - "dependencies": { - "@types/bonjour": "^3.5.9", - "@types/connect-history-api-fallback": "^1.3.5", - "@types/express": "^4.17.13", - "@types/serve-index": "^1.9.1", - "@types/serve-static": "^1.13.10", - "@types/sockjs": "^0.3.33", - "@types/ws": "^8.5.5", - "ansi-html-community": "^0.0.8", - "bonjour-service": "^1.0.11", - "chokidar": "^3.5.3", - "colorette": "^2.0.10", - "compression": "^1.7.4", - "connect-history-api-fallback": "^2.0.0", - "default-gateway": "^6.0.3", - "express": "^4.17.3", - "graceful-fs": "^4.2.6", - "html-entities": "^2.3.2", - "http-proxy-middleware": "^2.0.3", - "ipaddr.js": "^2.0.1", - "launch-editor": "^2.6.0", - "open": "^8.0.9", - "p-retry": "^4.5.0", - "rimraf": "^3.0.2", - "schema-utils": "^4.0.0", - "selfsigned": "^2.1.1", - "serve-index": "^1.9.1", - "sockjs": "^0.3.24", - "spdy": "^4.0.2", - "webpack-dev-middleware": "^5.3.1", - "ws": "^8.13.0" - }, - "bin": { - "webpack-dev-server": "bin/webpack-dev-server.js" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.37.0 || ^5.0.0" - }, - "peerDependenciesMeta": { - "webpack": { - "optional": true - }, - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-dev-server/node_modules/ws": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/webpack-merge": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.10.0.tgz", - "integrity": "sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA==", - "dependencies": { - "clone-deep": "^4.0.1", - "flat": "^5.0.2", - "wildcard": "^2.0.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/webpack-sources": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/webpack/node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peerDependencies": { - "ajv": "^6.9.1" - } - }, - "node_modules/webpack/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/webpack/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/webpack/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/webpack/node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/webpackbar": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/webpackbar/-/webpackbar-5.0.2.tgz", - "integrity": "sha512-BmFJo7veBDgQzfWXl/wwYXr/VFus0614qZ8i9znqcl9fnEdiVkdbi0TedLQ6xAK92HZHDJ0QmyQ0fmuZPAgCYQ==", - "dependencies": { - "chalk": "^4.1.0", - "consola": "^2.15.3", - "pretty-time": "^1.1.0", - "std-env": "^3.0.1" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "webpack": "3 || 4 || 5" - } - }, - "node_modules/websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "dependencies": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/widest-line": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-4.0.1.tgz", - "integrity": "sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==", - "dependencies": { - "string-width": "^5.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/wildcard": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", - "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==" - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dependencies": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xdg-basedir": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-5.1.0.tgz", - "integrity": "sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/xml-js": { - "version": "1.6.11", - "resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.11.tgz", - "integrity": "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==", - "dependencies": { - "sax": "^1.2.4" - }, - "bin": { - "xml-js": "bin/cli.js" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" - }, - "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/yocto-queue": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", - "integrity": "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==", - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zwitch": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", - "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - } - } -} diff --git a/docs/package.json b/docs/package.json deleted file mode 100644 index a70c884f7..000000000 --- a/docs/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "docs", - "version": "0.0.0", - "private": true, - "scripts": { - "docusaurus": "docusaurus", - "start": "docusaurus start", - "build": "docusaurus build", - "swizzle": "docusaurus swizzle", - "deploy": "docusaurus deploy", - "clear": "docusaurus clear", - "serve": "docusaurus serve", - "write-translations": "docusaurus write-translations", - "write-heading-ids": "docusaurus write-heading-ids", - "typecheck": "tsc" - }, - "dependencies": { - "@docusaurus/core": "3.6.1", - "@docusaurus/plugin-client-redirects": "^3.6.1", - "@docusaurus/plugin-content-docs": "^3.6.1", - "@docusaurus/plugin-sitemap": "^3.6.1", - "@docusaurus/preset-classic": "3.6.1", - "@mdx-js/react": "^3.0.1", - "clsx": "^2.1.0", - "prism-react-renderer": "^2.3.1", - "react": "^18.2.0", - "react-dom": "^18.2.0" - }, - "devDependencies": { - "@docusaurus/module-type-aliases": "3.6.1", - "@docusaurus/tsconfig": "3.6.1", - "@docusaurus/types": "3.6.1", - "@types/node": "^20.12.5", - "typescript": "~5.4.4" - }, - "browserslist": [ - ">0.5%", - "not dead", - "not op_mini all", - "last 3 version", - "Firefox ESR" - ], - "engines": { - "node": ">=18.0" - } -} diff --git a/docs/sidebars.ts b/docs/sidebars.ts deleted file mode 100644 index f67324fe4..000000000 --- a/docs/sidebars.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type {SidebarsConfig} from '@docusaurus/plugin-content-docs'; - -const sidebars: SidebarsConfig = { - sidebar: [{type: 'autogenerated', dirName: '.'}], - - // But you can create a sidebar manually - /* - tutorialSidebar: [ - 'intro', - 'hello', - { - type: 'category', - label: 'Tutorial', - items: ['tutorial-basics/create-a-document'], - }, - ], - */ -}; - -export default sidebars; diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css deleted file mode 100644 index 298e3013b..000000000 --- a/docs/src/css/custom.css +++ /dev/null @@ -1,24 +0,0 @@ -:root { - --ifm-color-primary: #d60532; - --ifm-color-primary-dark: #c4052e; - --ifm-color-primary-darker: #af072b; - --ifm-color-primary-darkest: #990525; - --ifm-color-primary-light: #db1943; - --ifm-color-primary-lighter: #ec2c56; - --ifm-color-primary-lightest: #fa3e67; - --ifm-code-font-size: 95%; - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); -} - -/* For readability concerns, you should choose a lighter palette in dark mode. - JeremyStarTM: Readability concerns? Fuck that shit. */ -[data-theme='dark'] { - --ifm-color-primary: #d60532; - --ifm-color-primary-dark: #c4052e; - --ifm-color-primary-darker: #af072b; - --ifm-color-primary-darkest: #990525; - --ifm-color-primary-light: #db1943; - --ifm-color-primary-lighter: #ec2c56; - --ifm-color-primary-lightest: #fa3e67; - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); -} diff --git a/docs/static/.nojekyll b/docs/static/.nojekyll deleted file mode 100644 index e69de29bb..000000000 diff --git a/docs/static/dist/engine.png b/docs/static/dist/engine.png deleted file mode 120000 index 66a5a6a67..000000000 --- a/docs/static/dist/engine.png +++ /dev/null @@ -1 +0,0 @@ -../../../dist/branding/current.png \ No newline at end of file diff --git a/docs/tsconfig.json b/docs/tsconfig.json deleted file mode 100644 index 7dc3bde14..000000000 --- a/docs/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - // This file is not used in compilation. It is here just for a nice editor experience. - "extends": "@docusaurus/tsconfig", - "compilerOptions": { - "jsx": "react", - "baseUrl": "." - } -} diff --git a/gradle.properties b/gradle.properties index 59b019cb3..be4ab8185 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ -# # STAROPENSOURCE ENGINE SOURCE FILE # Copyright (c) 2024 The StarOpenSource Engine Authors # Licensed under the GNU Affero General Public License v3 +# with an exception allowing classpath linking. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -15,34 +15,30 @@ # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -# + +# Gradle properties +org.gradle.caching=true +org.gradle.configureondemand=true +org.gradle.jvmargs=-Xmx1G -Xms1G -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Dfile.encoding=UTF-8 +org.gradle.parallel=true +org.gradle.priority=normal # Versioning -versioningCodename=Sugarcookie -versioningVersion=1 -versioningType=alpha -versioningTyperelease=9 -versioningFork= +versionRelease=1 +versionType=alpha +versionTyperelease=10 +versionFork= +versionCompanion= # Java -javaSource=21 -javaTarget=21 - -# Plugins -pluginShadow=8.1.8 -pluginLombok=8.10.2 -pluginGitProperties=2.4.2 -pluginNativeImage=v1.4.1 +java=21 # Dependencies -dependencyLombok=1.18.34 -dependencyJetbrainsAnnotations=26.0.1 -dependencyJansi=2.4.1 -dependencyReflections=0.10.2 -dependencySlf4j=2.0.16 -dependencyLwjgl=3.3.4 -dependencyLwjglNatives= -dependencyJunit=5.11.3 - -# etc -group = de.staropensource.engine +dependencyKotlinStdIdentifier=stdlib +dependencyKotlinStdJavaIdentifier=stdlib-jdk21 +dependencyKotlinReflectIdentifier=org.jetbrains.kotlin:kotlin-reflect +dependencyKotlinReflectVersion=2.1.0 +dependencyKotlinDateTimeIdentifier=org.jetbrains.kotlinx:kotlinx-datetime +dependencyKotlinDateTimeVersion=0.6.1 +dependencyJansiIdentifier=org.fusesource:jansi +dependencyJansiVersion=2.4.1 diff --git a/gradlew.bat b/gradlew.bat index 9b42019c7..9d21a2183 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -1,94 +1,94 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem -@rem SPDX-License-Identifier: Apache-2.0 -@rem - -@if "%DEBUG%"=="" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%"=="" set DIRNAME=. -@rem This is normally unused -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if %ERRORLEVEL% equ 0 goto execute - -echo. 1>&2 -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 -echo. 1>&2 -echo Please set the JAVA_HOME variable in your environment to match the 1>&2 -echo location of your Java installation. 1>&2 - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. 1>&2 -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 -echo. 1>&2 -echo Please set the JAVA_HOME variable in your environment to match the 1>&2 -echo location of your Java installation. 1>&2 - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if %ERRORLEVEL% equ 0 goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -set EXIT_CODE=%ERRORLEVEL% -if %EXIT_CODE% equ 0 set EXIT_CODE=1 -if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% -exit /b %EXIT_CODE% - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/ansi/src/main/java/de/staropensource/engine/ansi/package-info.java b/logging/build.gradle.kts similarity index 83% rename from ansi/src/main/java/de/staropensource/engine/ansi/package-info.java rename to logging/build.gradle.kts index d0ea0d638..68b184400 100644 --- a/ansi/src/main/java/de/staropensource/engine/ansi/package-info.java +++ b/logging/build.gradle.kts @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,7 +18,8 @@ * along with this program. If not, see . */ -/** - * Contains the ANSI subsystem code. - */ -package de.staropensource.engine.ansi; +// Dependencies +dependencies { + // Kotlin support + kotlin(property("dependencyKotlinStdIdentifier") as String) +} diff --git a/logging/src/main/kotlin/de/staropensource/engine/logging/Filterer.kt b/logging/src/main/kotlin/de/staropensource/engine/logging/Filterer.kt new file mode 100644 index 000000000..6f90d290d --- /dev/null +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/Filterer.kt @@ -0,0 +1,70 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.staropensource.engine.logging + +import de.staropensource.engine.logging.type.Filter +import de.staropensource.engine.logging.type.Call + +/** + * Handles call filtering. + * + * @since v1-alpha10 + */ +class Filterer { + /** + * Companion object of [Filterer] + * + * @since v1-alpha10 + */ + companion object { + /** + * All enabled filters. + * + * @since v1-alpha10 + */ + @JvmStatic + val filters: MutableSet = mutableSetOf() + + /** + * Checks if the specified + * call must be filtered out. + * + * @param call call to check for + * @return if it must be filtered out + * @since v1-alpha10 + */ + @JvmStatic + fun run(call: Call): Boolean { + for (filter: Filter in filters) + if (filter.shouldFilter(call)) + return true + + return false + } + } + + /** + * Initializes this class. + * + * @since v1-alpha10 + */ + private constructor() +} diff --git a/logging/src/main/kotlin/de/staropensource/engine/logging/Logger.kt b/logging/src/main/kotlin/de/staropensource/engine/logging/Logger.kt new file mode 100644 index 000000000..f32ae51cf --- /dev/null +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/Logger.kt @@ -0,0 +1,210 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.staropensource.engine.logging + +import de.staropensource.engine.logging.type.Call +import de.staropensource.engine.logging.type.Level +import kotlinx.datetime.Clock +import kotlinx.datetime.Instant + +/** + * Frontend for sos!engine's logging system. + * + * This class serves as the primary POI + * for most developers as it communicates + * with internal classes while leaving the + * unimportant bits out. + * + * @since v1-alpha10 + */ +class Logger { + /** + * Companion object for [Logger]. + * + * @since v1-alpha10 + */ + companion object { + /** + * Marks the time of initialization + * of sos!engine's logging system. + * + * @since v1-alpha10 + */ + @JvmStatic + var initializationTime: Instant = Clock.System.now() + private set + + /** + * Global instance of [Logger]. + * + * This instance has the following settings: + * - `channel` = `default` + * + * @since v1-alpha10 + */ + @JvmStatic + val instance = Logger() + } + + + // -----> Fields + /** + * Holds the channel this instance uses. + * + * @since v1-alpha10 + */ + private val channel: String + + + // -----> Constructors + /** + * Initializes this class. + * + * @param channel channel to use + * @since v1-alpha10 + */ + constructor(channel: String = "default") { + this.channel = channel + } + + + // -----> Logging + /** + * Logs a message. + * + * @param level level to use + * @param message message to log + * @param stackTraceDistance determines which [StackTraceElement] will + * be used as the call's origin. Just fiddle + * with this number until it's correct. + * @since v1-alpha10 + */ + @Suppress("JoinDeclarationAndAssignment") + fun log(level: Level, message: String, stackTraceDistance: Int = 0) { + val origin: StackTraceElement + var call: Call + + // Set 'origin' + try { + origin = Throwable().stackTrace[1 + stackTraceDistance] + } catch (exception: IndexOutOfBoundsException) { + return + } + + // Set 'call' + call = Call(origin, level, message, channel) + + // Run processing + if (Processor.check(call)) + return + + if (LoggerConfiguration.threadingHandler?.queue(call) == null) + Processor.process(call) + } + + /** + * Logs a diagnostic message. + * + * @param message message + * @since v1-alpha10 + */ + fun diag(message: String) { + log(Level.DIAGNOSTIC, message, 1) + } + + /** + * Logs a verbose message. + * + * @param message message + * @since v1-alpha10 + */ + fun verb(message: String) { + log(Level.VERBOSE, message, 1) + } + + /** + * Logs a silent warning. + * + * @param message message + * @since v1-alpha10 + */ + fun sarn(message: String) { + log(Level.SILENT_WARNING, message, 1) + } + + /** + * Logs an informational message. + * + * @param message message + * @since v1-alpha10 + */ + fun info(message: String) { + log(Level.INFORMATIONAL, message, 1) + } + + /** + * Logs a silent warning. + * + * @param message message + * @since v1-alpha10 + */ + fun warn(message: String) { + log(Level.WARNING, message, 1) + } + + /** + * Logs a non-fatal error. + * + * @param message message + * @since v1-alpha10 + */ + fun error(message: String) { + log(Level.ERROR, message, 1) + } + + /** + * Logs a fatal error. + * + * @param message message + * @since v1-alpha10 + */ + fun crash(message: String) { + log(Level.CRASH, message, 1) + } + + + // -----> Utility + /** + * Flushes all log messages. + * + * Tells the configured [ThreadingHandler] + * to flush all log messages to output + * immediately. + * + * This method is blocking, until all + * log messages have been processed + * + * @since v1-alpha10 + */ + fun flush() { + LoggerConfiguration.threadingHandler?.flush() + } +} diff --git a/logging/src/main/kotlin/de/staropensource/engine/logging/LoggerConfiguration.kt b/logging/src/main/kotlin/de/staropensource/engine/logging/LoggerConfiguration.kt new file mode 100644 index 000000000..4881fcc9a --- /dev/null +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/LoggerConfiguration.kt @@ -0,0 +1,147 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.staropensource.engine.logging + +import de.staropensource.engine.logging.implementation.SOSLSv2FormatBuilder +import de.staropensource.engine.logging.type.ChannelSettings +import de.staropensource.engine.logging.type.Feature +import de.staropensource.engine.logging.type.FormatBuilder +import de.staropensource.engine.logging.type.Level +import de.staropensource.engine.logging.type.OperationMode +import kotlinx.datetime.TimeZone +import kotlin.reflect.KClass + +/** + * The configuration of this logging system. + * + * @since v1-alpha10 + */ +class LoggerConfiguration { + /** + * Companion object of [LoggerConfiguration]. + * + * @since v1-alpha10 + */ + companion object { + // -----> Logging settings + /** + * Controls how [Logger]s should function. + * + * @since v1-alpha10 + */ + @JvmStatic + var mode: OperationMode = OperationMode.NORMAL + + /** + * Determines which levels are + * allowed to be processed. + * + * @since v1-alpha10 + */ + @JvmStatic + var levels: MutableSet = mutableSetOf( + Level.INFORMATIONAL, + Level.WARNING, + Level.ERROR, + Level.CRASH + ) + + /** + * Determines which log enabledFeatures shall + * be displayed in the final output. + * + * @since v1-alpha10 + */ + @JvmStatic + var features: MutableSet = mutableSetOf( + Feature.FORMATTING, + Feature.TIME, + Feature.LEVEL, + Feature.ORIGIN, + Feature.LINE_NUMBER, + ) + + /** + * Controls the [ThreadingHandler] to use. + * + * This determines how multithreading + * shall be performed. Set to `null` for + * a single-threaded logger. + * + * @see ThreadingHandler + * @since v1-alpha10 + */ + @JvmStatic + val threadingHandler: ThreadingHandler? = null + + /** + * Controls the [FormatBuilder] to use. + * + * This determines how formats are built + * and how the final log output looks like. + * Set to `null` to default to [SOSLSv2FormatBuilder]. + * + * @see FormatBuilder + * @since v1-alpha10 + */ + @JvmStatic + val formatBuilder: KClass? = null + + /** + * Controls how fast the logging thread + * shall wait until processing the log + * queue after it has been processed + * minus the processing time. + * + * This only takes effect if an + * appropriate [ThreadingHandler] + * is configured. + * + * @since v1-alpha10 + */ + @JvmStatic + var threadPollingDelay: Int = 5 + + /** + * Contains log channel settings. + * + * @since v1-alpha10 + */ + val channelSettings: MutableMap = mutableMapOf() + + + // -----> Feature settings + /** + * Controls which [TimeZone] to use + * for [Feature.DATE] & [Feature.TIME]. + * + * @since v1-alpha10 + */ + var featureDateTimeTZ: TimeZone = TimeZone.currentSystemDefault() + } + + /** + * Initializes this class. + * + * @since v1-alpha10 + */ + private constructor() +} diff --git a/logging/src/main/kotlin/de/staropensource/engine/logging/Processor.kt b/logging/src/main/kotlin/de/staropensource/engine/logging/Processor.kt new file mode 100644 index 000000000..c3050e2e5 --- /dev/null +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/Processor.kt @@ -0,0 +1,146 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.staropensource.engine.logging + +import de.staropensource.engine.logging.implementation.NoOperationFormatter +import de.staropensource.engine.logging.implementation.PrintlnAdapter +import de.staropensource.engine.logging.implementation.SOSLSv2FormatBuilder +import de.staropensource.engine.logging.type.Call +import de.staropensource.engine.logging.type.ChannelSettings +import de.staropensource.engine.logging.type.Feature +import de.staropensource.engine.logging.type.FormatBuilder +import de.staropensource.engine.logging.type.OperationMode +import kotlin.reflect.full.primaryConstructor + +/** + * Processes log messages. + * + * This class will parse, process, + * reformat and finally print log messages. + * + * @since v1-alpha10 + */ +class Processor { + /** + * Initializes this class. + * + * @since v1-alpha10 + */ + private constructor() + + /** + * Companion object of [Processor]. + * + * @since v1-alpha10 + */ + companion object { + /** + * Determines if the + * specified [Call] is allowed. + * + * Invoked by [Logger.log]. + * + * @return terminate processing? + * @since v1-alpha10 + */ + @JvmStatic + fun check(call: Call): Boolean { + return ( + // Check logger mode + LoggerConfiguration.mode == OperationMode.NOOP + + // Check if level is allowed + || !LoggerConfiguration.levels.contains(call.level) + + // Run against filters + || Filterer.run(call) + ) + } + + /** + * Processes log messages. + * + * This method will perform the + * following steps: + * 1. build the log format + * 2. update message + * 3. format the finalized format using the configured [de.staropensource.engine.logging.type.Formatter] + * 4. pass the finalized format to the configured [de.staropensource.engine.logging.type.Adapter]. + * + * Invoked by the configured + * [ThreadingHandler]. + * + * @see LoggerConfiguration.threadingHandler + * @see ChannelSettings.formatter + * @see ChannelSettings.adapter + * @since v1-alpha10 + */ + @JvmStatic + @Suppress("CyclomaticComplexMethod") + fun process(call: Call) { + val format: FormatBuilder + var formatFinalized: String = "" + val channelconf: ChannelSettings = LoggerConfiguration.channelSettings[call.channel] ?: ChannelSettings.global + var message: String = call.message + + // Set 'format' + try { + format = (LoggerConfiguration.formatBuilder ?: SOSLSv2FormatBuilder::class).primaryConstructor!!.call(call) + } catch (throwable: Throwable) { + println("Logger system failure: Configured FormatBuilder implementation '" + ((LoggerConfiguration.formatBuilder ?: SOSLSv2FormatBuilder::class).qualifiedName ?: "") + "' does not have a primary 'constructor(call: Call)'. Log messages cannot be processed.") + return + } + + // Stop if channel does not permit execution + if ((channelconf.enable ?: ChannelSettings.global.enable) == false) + return + + // Build format + for (feature: Feature in LoggerConfiguration.features) + if (feature != Feature.FORMATTING) + format.addFeature(feature) + + // Update message + if ( + (channelconf.sanitizeMessage ?: ChannelSettings.global.sanitizeMessage) != false + && (channelconf.permitFormatting ?: ChannelSettings.global.permitFormatting) != false + ) + message = message.replace("<", "\\<") + if ( + ((channelconf.permitFormatting ?: ChannelSettings.global.permitFormatting) != false) + && LoggerConfiguration.features.contains(Feature.FORMATTING) + ) + format.addFeature(Feature.FORMATTING) + + // Set message + format.message = message + + // Format format + formatFinalized = if ((channelconf.permitFormatting ?: ChannelSettings.global.permitFormatting) != false) + (channelconf.formatter ?: ChannelSettings.global.formatter ?: NoOperationFormatter.instance).formatString(format.toString()) + else + format.toString() + + // Pass format to adapter + (channelconf.adapter ?: ChannelSettings.global.adapter ?: PrintlnAdapter.instance).handle(call, formatFinalized) + } + } +} diff --git a/logging/src/main/kotlin/de/staropensource/engine/logging/ThreadingHandler.kt b/logging/src/main/kotlin/de/staropensource/engine/logging/ThreadingHandler.kt new file mode 100644 index 000000000..3ab352078 --- /dev/null +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/ThreadingHandler.kt @@ -0,0 +1,81 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.staropensource.engine.logging + +import de.staropensource.engine.logging.type.Call + +/** + * Handles multithreading. + * + * This interface exists to allow for different + * multithreading implementations to be switched + * between. + * + * @since v1-alpha10 + */ +interface ThreadingHandler { + // -----> Threading management + /** + * Starts this threading handler. + * + * This method is blocking and should + * only return once this threading + * handler has fully initialized. + * + * @since v1-alpha10 + */ + fun start() + + /** + * Stops this threading handler. + * + * This method is blocking and should + * only return once this threading + * handler has fully stopped. + * + * @since v1-alpha10 + */ + fun stop() + + + // -----> Queue + /** + * Queues the specified [Call]. + * + * @since v1-alpha10 + */ + fun queue(call: Call) + + /** + * Force-processes all queued [Call]s. + * + * This method is blocking and should + * only return once all log messages + * have been processed and printed. + * + * Processing is performed by + * [Processor.process]. Do not perform + * any processing yourself. + * + * @since v1-alpha10 + */ + fun flush() +} diff --git a/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/NoOperationFormatter.kt b/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/NoOperationFormatter.kt new file mode 100644 index 000000000..d3d37d41f --- /dev/null +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/NoOperationFormatter.kt @@ -0,0 +1,92 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.staropensource.engine.logging.implementation + +import de.staropensource.engine.logging.type.OneCycleFormatter + +/** + * Swallows all formatting tags + * and returns a clean format. + * + * @since v1-alpha10 + */ +class NoOperationFormatter private constructor(): OneCycleFormatter() { + /** + * Companion object of [NoOperationFormatter]. + * + * @since v1-alpha10 + */ + companion object { + /** + * Global instance of [NoOperationFormatter]. + * + * @since v1-alpha10 + */ + @JvmStatic + val instance: NoOperationFormatter = NoOperationFormatter() + } + + @Suppress("NestedBlockDepth") + override fun parseAndFormat(message: String): String { + val output: StringBuilder = StringBuilder() + var escaped: Boolean = false + var inTag: Boolean = false + var currentComponent: StringBuilder = StringBuilder() + + // This iteration loop should + // be readable enough to not + // comment it properly + for (char: Char in message) + if (inTag) { + if (char == '>') { + inTag = false + if (currentComponent.isNotEmpty()) + when (currentComponent.toString()) { + "reset", "bold", "italic", "underline", "strikethrough", + "white", "black", "gray", "yellow", "green", "cyan", + "light_blue", "blue", "purple", "magenta", "pink", "red", + "orange" -> continue + else -> output.append("<${currentComponent}>") + } + } else + currentComponent.append(char) + } else + when (char) { + '\\' -> { + if (escaped) + output.append("\\") + else + escaped = true + } + '<' -> { + if (escaped) { + escaped = false + output.append(char) + } else + inTag = true + currentComponent.clear() + } + else -> output.append(char) + } + + return output.toString() + } +} diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmJava.java b/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/PrintlnAdapter.kt similarity index 57% rename from base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmJava.java rename to logging/src/main/kotlin/de/staropensource/engine/logging/implementation/PrintlnAdapter.kt index 4fe7f451c..39291c9d6 100644 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/JvmJava.java +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/PrintlnAdapter.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,30 +18,35 @@ * along with this program. If not, see . */ -package de.staropensource.engine.base.internal.implementation.placeholder; +package de.staropensource.engine.logging.implementation -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.JvmInformation; -import org.jetbrains.annotations.NotNull; +import de.staropensource.engine.logging.type.Adapter +import de.staropensource.engine.logging.type.Call /** - * Implements the {@code jvm_java} placeholder. + * Uses Kotlin's [println] + * method to print log messages. * - * @see Placeholder - * @since v1-alpha0 + * @see Adapter + * @since v1-alpha10 */ -@SuppressWarnings({ "unused" }) -public final class JvmJava implements Placeholder { +class PrintlnAdapter private constructor(): Adapter { /** - * Creates and initializes an instance of this event. + * Companion object of [PrintlnAdapter]. * - * @since v1-alpha0 + * @since v1-alpha10 */ - public JvmJava() {} + companion object { + /** + * Global instance of [PrintlnAdapter]. + * + * @since v1-alpha10 + */ + @JvmStatic + val instance: PrintlnAdapter = PrintlnAdapter() + } - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%jvm_java%", String.valueOf(JvmInformation.getJavaVersion())); + override fun handle(call: Call, format: String) { + println(format) } } diff --git a/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/SOSLSv2FormatBuilder.kt b/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/SOSLSv2FormatBuilder.kt new file mode 100644 index 000000000..551e1027e --- /dev/null +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/SOSLSv2FormatBuilder.kt @@ -0,0 +1,157 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.staropensource.engine.logging.implementation + +import de.staropensource.engine.logging.Logger +import de.staropensource.engine.logging.LoggerConfiguration +import de.staropensource.engine.logging.type.Call +import de.staropensource.engine.logging.type.Feature +import de.staropensource.engine.logging.type.FormatBuilder +import de.staropensource.engine.logging.type.Level +import kotlinx.datetime.Clock +import kotlinx.datetime.LocalDateTime +import kotlinx.datetime.toLocalDateTime + +/** + * Builds the format as specified + * in the [SOSLS v2](https://z.staropensource.de/spec-logging-v2) + * specification, which looks + * something like this: + * `[505ms] [03.10.1990 23:23:23] [INFO de.staropensource.engine.testapp.Main#sayHi~42] Hello World!` + * + * @param call [Call] to build a format for + * @since v1-alpha10 + */ +class SOSLSv2FormatBuilder(call: Call) : FormatBuilder(call) { + override fun toString(): String { + val format: StringBuilder = StringBuilder() + + addRuntime(format) + addDateTime(format) + + // Add level, origin & other metadata + if (enabledFeatures.contains(Feature.LEVEL) || enabledFeatures.contains(Feature.ORIGIN)) { + format.append("[") + addLevel(format) + if (enabledFeatures.contains(Feature.LEVEL) && enabledFeatures.contains(Feature.ORIGIN)) + format.append(" ") + addOriginAndMetadata(format) + format.append("] ") + } + + // Message + format.append(message) + + return format.toString() + } + + /** + * Adds [Feature.RUNTIME]. + * + * @param format [StringBuilder] to operate on + * @since v1-alpha10 + */ + private fun addRuntime(format: StringBuilder) { + if (enabledFeatures.contains(Feature.RUNTIME)) + format + .append("[") + .append(Logger.initializationTime) + .append("ms") + .append("] ") + } + + /** + * Adds [Feature.DATE] and [Feature.TIME]. + * + * @param format [StringBuilder] to operate on + * @since v1-alpha10 + */ + private fun addDateTime(format: StringBuilder) { + val datetime: LocalDateTime = Clock.System.now().toLocalDateTime(LoggerConfiguration.featureDateTimeTZ) + + if (enabledFeatures.contains(Feature.DATE) || enabledFeatures.contains(Feature.TIME)) + format.append("[") + if (enabledFeatures.contains(Feature.DATE)) + format + .append(datetime.dayOfMonth) + .append(".") + .append(datetime.monthNumber) + .append(".") + .append(datetime.year) + if (enabledFeatures.contains(Feature.DATE) && enabledFeatures.contains(Feature.TIME)) + format.append(" ") + if (enabledFeatures.contains(Feature.TIME)) + format + .append(datetime.hour) + .append(":") + .append(datetime.minute) + .append(":") + .append(datetime.second) + if (enabledFeatures.contains(Feature.DATE) || enabledFeatures.contains(Feature.TIME)) + format.append("] ") + } + + /** + * Adds [Feature.LEVEL]. + * + * @param format [StringBuilder] to operate on + * @since v1-alpha10 + */ + private fun addLevel(format: StringBuilder) { + if (enabledFeatures.contains(Feature.LEVEL)) + format.append( + when (call.level) { + Level.DIAGNOSTIC -> "DIAG" + Level.VERBOSE -> "VERB" + Level.SILENT_WARNING -> "SARN" + Level.INFORMATIONAL -> "INFO" + Level.WARNING -> "WARN" + Level.ERROR -> "ERR!" + Level.CRASH -> "CRSH" + } + ) + } + + /** + * Adds [Feature.ORIGIN], + * [Feature.METHOD_NAME] + * and [Feature.LINE_NUMBER]. + * + * @param format [StringBuilder] to operate on + * @since v1-alpha10 + */ + private fun addOriginAndMetadata(format: StringBuilder) { + if (enabledFeatures.contains(Feature.ORIGIN)) { + format.append(call.origin) + + if (enabledFeatures.contains(Feature.METHOD_NAME)) + // TODO sanitization (, )? + format + .append("#") + .append(call.origin.methodName) + + if (enabledFeatures.contains(Feature.LINE_NUMBER) && call.origin.lineNumber >= 0) + format + .append("~L") + .append(call.origin.lineNumber) + } + } +} diff --git a/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/TwoCycleFormatterBase.kt b/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/TwoCycleFormatterBase.kt new file mode 100644 index 000000000..cf306e4d2 --- /dev/null +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/TwoCycleFormatterBase.kt @@ -0,0 +1,91 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.staropensource.engine.logging.implementation + +import de.staropensource.engine.logging.type.TwoCycleFormatter + +/** + * A [TwoCycleFormatterBase] implementation providing + * a fully functioning and compliant implementation + * of the [parse] method. + * + * Using this class to create a formatter is highly + * recommended as it already handles the heavy + * lifting, only requiring the simple "check the + * component and do the right thing". + * + * The components outputted by + * the [parse] implementation are: + * - `RESET` (standalone) + * - `TEXT:` (example `TEXT:Hello World!`) + * - `COLOR:` (example `COLOR:RED`) + * - `ATTRIBUTE:` (example `ATTRIBUTE:BOLD`) + * + * @see TwoCycleFormatter + * @see de.staropensource.engine.logging.type.Formatter + * @since v1-alpha10 + */ +abstract class TwoCycleFormatterBase: TwoCycleFormatter() { + @Suppress("NestedBlockDepth") + override fun parse(message: String): Array { + val components: MutableList = mutableListOf() + var currentComponent: StringBuilder = StringBuilder() + var escaped: Boolean = false + var inTag: Boolean = false + + // This iteration loop should + // be readable enough to not + // comment it properly + for (char: Char in message) + if (inTag) { + if (char == '>') { + inTag = false + if (currentComponent.isNotEmpty()) + when (currentComponent.toString()) { + "reset" -> components.add("RESET") + "bold", "italic", "underline", "strikethrough" -> components.add("ATTRIBUTE:${currentComponent.toString().uppercase()}") + "white", "black", "gray", "yellow", "green", "cyan", "light_blue", "blue", "purple", "magenta", "pink", "red", "orange" -> components.add("COLOR:${currentComponent.toString().uppercase()}") + else -> components[components.lastIndex] = "${components[components.lastIndex]}<${currentComponent}>" + } + } else + currentComponent.append(char) + } else + when (char) { + '\\' -> { + if (escaped) + currentComponent.append("\\") + else + escaped = true + } + '<' -> { + if (escaped) { + escaped = false + currentComponent.append(char) + } else + inTag = true + currentComponent.clear() + } + else -> currentComponent.append(char) + } + + return components.toTypedArray() + } +} diff --git a/base/src/main/java/de/staropensource/engine/base/package-info.java b/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/package-info.kt similarity index 83% rename from base/src/main/java/de/staropensource/engine/base/package-info.java rename to logging/src/main/kotlin/de/staropensource/engine/logging/implementation/package-info.kt index f55ce2388..97a54a72f 100644 --- a/base/src/main/java/de/staropensource/engine/base/package-info.java +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/implementation/package-info.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -18,9 +19,9 @@ */ /** - * Contains the core engine code. + * Implementations of various + * interfaces and abstract classes. * - * @see de.staropensource.engine.base.Engine * @since v1-alpha0 */ -package de.staropensource.engine.base; +package de.staropensource.engine.logging.implementation; diff --git a/base/src/main/java/de/staropensource/engine/base/annotation/package-info.java b/logging/src/main/kotlin/de/staropensource/engine/logging/package-info.kt similarity index 74% rename from base/src/main/java/de/staropensource/engine/base/annotation/package-info.java rename to logging/src/main/kotlin/de/staropensource/engine/logging/package-info.kt index ae0f4801c..9fc1e14db 100644 --- a/base/src/main/java/de/staropensource/engine/base/annotation/package-info.java +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/package-info.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -18,9 +19,13 @@ */ /** - * Annotations used by the sos!engine to access - * classes and methods using reflection. + * StarOpenSource's logging system. + * + * While this logging system is, by itself + * completely usable standalone, it is highly + * recommended to be used in conjunction with + * the core StarOpenSource Engine. * * @since v1-alpha0 */ -package de.staropensource.engine.base.annotation; +package de.staropensource.engine.logging; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/exception/InvalidMonitorException.java b/logging/src/main/kotlin/de/staropensource/engine/logging/type/Adapter.kt similarity index 70% rename from rendering/src/main/java/de/staropensource/engine/rendering/exception/InvalidMonitorException.java rename to logging/src/main/kotlin/de/staropensource/engine/logging/type/Adapter.kt index aab8a472c..31422687b 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/exception/InvalidMonitorException.java +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/type/Adapter.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,18 +18,20 @@ * along with this program. If not, see . */ -package de.staropensource.engine.rendering.exception; +package de.staropensource.engine.logging.type /** - * Thrown when the specified monitor does not exist. + * Handles processed log calls. * - * @since v1-alpha9 + * @since v1-alpha10 */ -public final class InvalidMonitorException extends RuntimeException { +interface Adapter { /** - * Creates and initializes an instance of this exception. + * Handles the processed log call. * - * @since v1-alpha9 + * @param call original [Call] + * @param format finalized log format (print this!) + * @since v1-alpha10 */ - public InvalidMonitorException() {} + fun handle(call: Call, format: String) } diff --git a/base/src/main/java/de/staropensource/engine/base/exception/dependency/package-info.java b/logging/src/main/kotlin/de/staropensource/engine/logging/type/Call.kt similarity index 68% rename from base/src/main/java/de/staropensource/engine/base/exception/dependency/package-info.java rename to logging/src/main/kotlin/de/staropensource/engine/logging/type/Call.kt index d75f7897c..dd700fd7e 100644 --- a/base/src/main/java/de/staropensource/engine/base/exception/dependency/package-info.java +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/type/Call.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,10 +18,20 @@ * along with this program. If not, see . */ +package de.staropensource.engine.logging.type + /** - * Exceptions related to dependency resolving. + * Holds information about log calls. * - * @see de.staropensource.engine.base.utility.DependencyResolver - * @since v1-alpha1 + * @param origin origin + * @param level level + * @param message message + * @param channel channel + * @since v1-alpha10 */ -package de.staropensource.engine.base.exception.dependency; +data class Call( + val origin: StackTraceElement, + val level: Level, + var message: String, + val channel: String = "default", +) diff --git a/logging/src/main/kotlin/de/staropensource/engine/logging/type/ChannelSettings.kt b/logging/src/main/kotlin/de/staropensource/engine/logging/type/ChannelSettings.kt new file mode 100644 index 000000000..80a962b39 --- /dev/null +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/type/ChannelSettings.kt @@ -0,0 +1,55 @@ +package de.staropensource.engine.logging.type + +import de.staropensource.engine.logging.implementation.NoOperationFormatter +import de.staropensource.engine.logging.implementation.PrintlnAdapter + +/** + * Holds the configuration of one + * or multiple log channels. + * + * @param enable enables or disables all log messages utilising this channel. Defaults to the global value or `true` if set to `null` + * @param sanitizeMessage if message sanitization (escaping `<`) should be performed. Defaults to the global value or `true` if set to `null` + * @param permitFormatting if formatting shall be permitted for the entire format. For disallowing formatting for the message only, see [sanitizeMessage]. Defaults to the global value or `true` if set to `null` + * @param formatter determines how messages are formatted and stylized. Defaults to the global value or [NoOperationFormatter] if set to `null` + * @param adapter used for printing the finalized log format somewhere. Defaults to the global value [PrintlnAdapter] if set to `null` + * @since v1-alpha10 + */ +data class ChannelSettings( + val enable: Boolean? = null, + val sanitizeMessage: Boolean? = null, + val permitFormatting: Boolean? = null, + val formatter: Formatter? = null, + val adapter: Adapter? = null, +) { + /** + * Companion object of [ChannelSettings]. + * + * @since v1-alpha10 + */ + companion object { + /** + * Contains the global channel settings. + * + * These apply to all log channels which + * do not have explicitly configured + * how they should be handled. + * + * This means that switching the + * [ChannelSettings.enable] to `false` + * in the global configuration will + * affect all channels which have not + * been configured in + * [de.staropensource.engine.logging.LoggerConfiguration.channelSettings]. + * + * @since v1-alpha10 + */ + @JvmStatic + val global: ChannelSettings = ChannelSettings( + true, + true, + true, + null, + null + ) + } +} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/Adapter.java b/logging/src/main/kotlin/de/staropensource/engine/logging/type/Feature.kt similarity index 55% rename from rendering/src/main/java/de/staropensource/engine/rendering/type/Adapter.java rename to logging/src/main/kotlin/de/staropensource/engine/logging/type/Feature.kt index 44c9e11f5..b8f4ce407 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/Adapter.java +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/type/Feature.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,60 +18,68 @@ * along with this program. If not, see . */ -package de.staropensource.engine.rendering.type; +package de.staropensource.engine.logging.type /** - * Represents all available adapters. + * Represents log formatting enabledFeatures. * - * @since v1-alpha9 + * @since v1-alpha10 */ -public enum Adapter { +enum class Feature { /** - * Allows the bgfx to autodetect the adapter to use. + * Nice color formatting. * - * @since v1-alpha9 + * @since v1-alpha10 */ - ANY, + FORMATTING, /** - * Tells bgfx to use the CPU for rendering. + * Adds the application's run time in milliseconds. * - * @since v1-alpha9 + * @since v1-alpha10 */ - SOFTWARE, + RUNTIME, /** - * Tells bgfx to use AMD graphics cards for rendering. + * Adds the date. * - * @since v1-alpha9 + * @since v1-alpha10 */ - AMD, + DATE, /** - * Tells bgfx to use Apple's SOC for rendering. + * Adds the time. * - * @since v1-alpha9 + * @since v1-alpha10 */ - APPLE, + TIME, /** - * Tells bgfx to use Intel graphics cards for rendering. + * Adds the log level. * - * @since v1-alpha9 + * @see Level + * @since v1-alpha10 */ - INTEL, + LEVEL, /** - * Tells bgfx to use NVIDIA graphics cards for rendering. + * Adds the log origin. * - * @since v1-alpha9 + * @since v1-alpha10 */ - NVIDIA, + ORIGIN, /** - * Tells bgfx to use Windows' integrated graphics driver for rendering. + * Adds the method name of the origin. * - * @since v1-alpha9 + * @since v1-alpha10 */ - MICROSOFT, + METHOD_NAME, + + /** + * Adds the line numer of the origin. + * + * @since v1-alpha10 + */ + LINE_NUMBER } diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/exception/NotOnMainThreadException.java b/logging/src/main/kotlin/de/staropensource/engine/logging/type/Filter.kt similarity index 66% rename from rendering/src/main/java/de/staropensource/engine/rendering/exception/NotOnMainThreadException.java rename to logging/src/main/kotlin/de/staropensource/engine/logging/type/Filter.kt index 3b8f11928..ff731744d 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/exception/NotOnMainThreadException.java +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/type/Filter.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,18 +18,22 @@ * along with this program. If not, see . */ -package de.staropensource.engine.rendering.exception; +package de.staropensource.engine.logging.type /** - * Thrown when trying to communicate with a windowing API over a non-main thread. + * Provides methods for filtering log calls. * - * @since v1-alpha9 + * @see de.staropensource.engine.logging.Filterer + * @since v1-alpha10 */ -public final class NotOnMainThreadException extends RuntimeException { +interface Filter { /** - * Creates and initializes an instance of this exception. + * Checks if the specified calls + * must be filtered out. * - * @since v1-alpha9 + * @param call call to check for + * @return if it must be filtered out + * @since v1-alpha10 */ - public NotOnMainThreadException() {} + fun shouldFilter(call: Call): Boolean } diff --git a/logging/src/main/kotlin/de/staropensource/engine/logging/type/FormatBuilder.kt b/logging/src/main/kotlin/de/staropensource/engine/logging/type/FormatBuilder.kt new file mode 100644 index 000000000..1f7cc1d63 --- /dev/null +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/type/FormatBuilder.kt @@ -0,0 +1,81 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.staropensource.engine.logging.type + +/** + * Builds log formats. + * + * @param call [Call] to build a format for + * @since v1-alpha10 + */ +abstract class FormatBuilder(protected val call: Call) { + /** + * Contains all enabled features. + * + * @since v1-alpha10 + */ + protected val enabledFeatures: MutableSet = mutableSetOf() + + /** + * Contains the message. + * + * @since v1-alpha10 + */ + var message: String = "no message has been defined, this is a bug" + + /** + * Returns a set of all enabled enabledFeatures. + * + * @return set of enabled enabledFeatures + * @since v1-alpha10 + */ + fun getFeatures(): Set { + return enabledFeatures.toSet() + } + + /** + * Adds the specified feature to the format. + * + * @param feature feature to add + * @since v1-alpha10 + */ + fun addFeature(feature: Feature) { + enabledFeatures.add(feature) + } + + /** + * Removes the specified feature from the format. + * + * @param feature feature to remove + * @since v1-alpha10 + */ + fun removeFeature(feature: Feature) { + enabledFeatures.remove(feature) + } + + /** + * Returns the finalized format. + * + * @return finalized format + * @since v1-alpha10 + */ + abstract override fun toString(): String +} diff --git a/logging/src/main/kotlin/de/staropensource/engine/logging/type/Formatter.kt b/logging/src/main/kotlin/de/staropensource/engine/logging/type/Formatter.kt new file mode 100644 index 000000000..f0040f446 --- /dev/null +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/type/Formatter.kt @@ -0,0 +1,70 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.staropensource.engine.logging.type + +/** + * Provides log format formatting. + * + * The following (and only the following!) + * tags may be used for formatting: + * - reset (reset formatting) + * - bold + * - italic + * - underline + * - strikethrough + * - white + * - black + * - gray + * - yellow + * - green + * - cyan + * - light_blue + * - blue + * - purple + * - magenta + * - pink + * - red + * - orange + * + * All tags must be wrapped in `<>` symbols + * and must be escapable with `\` characters. + * If an invalid tag is found it must be + * simply ignored. + * + * @since v1-alpha10 + */ +abstract class Formatter { + /** + * Initializes this abstract class. + * + * @since v1-alpha10 + */ + internal constructor() + + /** + * Parses, formats and returns the specified string. + * + * @param string string to parse and format + * @return formatted string + * @since v1-alpha10 + */ + abstract fun formatString(string: String): String +} diff --git a/base/src/main/java/de/staropensource/engine/base/type/logging/LogLevel.java b/logging/src/main/kotlin/de/staropensource/engine/logging/type/Level.kt similarity index 52% rename from base/src/main/java/de/staropensource/engine/base/type/logging/LogLevel.java rename to logging/src/main/kotlin/de/staropensource/engine/logging/type/Level.kt index 0422015ee..7ba069728 100644 --- a/base/src/main/java/de/staropensource/engine/base/type/logging/LogLevel.java +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/type/Level.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,63 +18,72 @@ * along with this program. If not, see . */ -package de.staropensource.engine.base.type.logging; - -import de.staropensource.engine.base.logging.Logger; +package de.staropensource.engine.logging.type /** - * Allows determining a log call priority. + * Represents log call priorities. * - * @see Logger - * @since v1-alpha0 + * @since v1-alpha10 */ -public enum LogLevel { +enum class Level { /** - * Indicates that the log call is diagnostic and solely provides debugging information. It is not important. + * For diagnostic messages. * - * @since v1-alpha0 + * These are usually very verbose and are generally + * only useful to knowledgeable developers. + * + * @since v1-alpha10 */ DIAGNOSTIC, /** - * Indicates that the log call contains more details about some action. It is not important but nice to have. + * For verbose messages. * - * @since v1-alpha0 + * These usually provide more detailed messages + * and updates than [INFORMATIONAL] messages. + * + * @since v1-alpha10 */ VERBOSE, /** - * Indicates that an unimportant warning occurred. + * For non-important warnings. * - * @since v1-alpha0 + * These are intended to be used for non-important + * warnings, such as small parsing errors, etc.. + * + * @since v1-alpha10 */ SILENT_WARNING, /** - * Indicates that the log call provides useful information and is important. + * For informational messages. * - * @since v1-alpha0 + * @since v1-alpha10 */ INFORMATIONAL, /** - * Indicates that an important warning occurred. + * For warnings. * - * @since v1-alpha0 + * These signal when something is not right + * and might need to be fixed (later). + * + * @since v1-alpha10 */ WARNING, /** - * Indicates that a non-fatal error occurred. + * For non-fatal errors. * - * @since v1-alpha0 + * @since v1-alpha10 */ ERROR, /** - * Indicates that a fatal error occurred. + * For fatal errors. * - * @since v1-alpha0 + * @since v1-alpha10 */ - CRASH, + CRASH } diff --git a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionFork.java b/logging/src/main/kotlin/de/staropensource/engine/logging/type/OneCycleFormatter.kt similarity index 50% rename from base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionFork.java rename to logging/src/main/kotlin/de/staropensource/engine/logging/type/OneCycleFormatter.kt index 56e0bab0f..848f15b56 100644 --- a/base/src/main/java/de/staropensource/engine/base/internal/implementation/placeholder/EngineVersionFork.java +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/type/OneCycleFormatter.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,30 +18,41 @@ * along with this program. If not, see . */ -package de.staropensource.engine.base.internal.implementation.placeholder; - -import de.staropensource.engine.base.implementable.Placeholder; -import de.staropensource.engine.base.utility.information.EngineInformation; -import org.jetbrains.annotations.NotNull; +package de.staropensource.engine.logging.type /** - * Implements the {@code engine_version_fork} placeholder. + * Performs message formatting in one cycle. * - * @see Placeholder - * @since v1-alpha0 + * The difference between one-cycle and two- + * cycle formatting is, that in two-cycle + * formatting message parsing and subsequently + * formatting are performed separately while + * in one-cycle mode they are performed + * at once. This difference exists to avoid + * unnecessary resource and memory usage for + * certain formatters. + * + * @see Formatter + * @since v1-alpha10 */ -@SuppressWarnings({ "unused" }) -public final class EngineVersionFork implements Placeholder { +abstract class OneCycleFormatter : Formatter { /** - * Creates and initializes an instance of this event. + * Initializes this abstract class. * - * @since v1-alpha0 + * @since v1-alpha10 */ - public EngineVersionFork() {} + constructor() : super() - /** {@inheritDoc} */ - @Override - public @NotNull String replace(@NotNull String text) { - return text.replace("%engine_version_fork%", EngineInformation.getVersioningFork()); + override fun formatString(string: String): String { + return parseAndFormat(string) } + + /** + * Parses and formats the specified message. + * + * @param message message to format + * @return formatted message + * @since v1-alpha10 + */ + protected abstract fun parseAndFormat(message: String): String } diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/KeyState.java b/logging/src/main/kotlin/de/staropensource/engine/logging/type/OperationMode.kt similarity index 68% rename from rendering/src/main/java/de/staropensource/engine/rendering/type/KeyState.java rename to logging/src/main/kotlin/de/staropensource/engine/logging/type/OperationMode.kt index 6513db9ff..8f61c4b27 100644 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/KeyState.java +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/type/OperationMode.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,26 +18,26 @@ * along with this program. If not, see . */ -package de.staropensource.engine.rendering.type; +package de.staropensource.engine.logging.type /** - * Contains in which state a key is. + * Represents how the logger functions. * - * @since v1-alpha9 + * @since v1-alpha10 */ -@SuppressWarnings({ "unused" }) -public enum KeyState { +enum class OperationMode { /** - * Indicates that a key is pressed. - * - * @since v1-alpha9 + * Prevents any real usage of + * this logger and disables it + * completely. No log messages + * will be processed further. */ - PRESSED, + NOOP, /** - * Indicates that a key is released. + * Functions as a normal logger. * - * @since v1-alpha9 + * @since v1-alpha10 */ - RELEASED, + NORMAL, } diff --git a/logging/src/main/kotlin/de/staropensource/engine/logging/type/TwoCycleFormatter.kt b/logging/src/main/kotlin/de/staropensource/engine/logging/type/TwoCycleFormatter.kt new file mode 100644 index 000000000..2a28894f5 --- /dev/null +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/type/TwoCycleFormatter.kt @@ -0,0 +1,67 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.staropensource.engine.logging.type + +/** + * Performs message formatting in two cycles. + * + * The difference between one-cycle and two- + * cycle formatting is, that in two-cycle + * formatting message parsing and subsequently + * formatting are performed separately while + * in one-cycle mode they are performed + * at once. This difference exists to avoid + * unnecessary resource and memory usage for + * certain formatters. + * + * @see Formatter + * @since v1-alpha10 + */ +abstract class TwoCycleFormatter : Formatter { + /** + * Initializes this abstract class. + * + * @since v1-alpha10 + */ + constructor() : super() + + override fun formatString(string: String): String { + return format(parse(string)) + } + + /** + * Parses the specified message. + * + * @param message message to parse + * @return array of message components + * @since v1-alpha10 + */ + protected abstract fun parse(message: String): Array + + /** + * Formats the specified message components array. + * + * @param messageComponents message components from [parse] + * @return formatted message + * @since v1-alpha10 + */ + protected abstract fun format(messageComponents: Array): String +} diff --git a/base/src/main/java/de/staropensource/engine/base/implementation/package-info.java b/logging/src/main/kotlin/de/staropensource/engine/logging/type/package-info.kt similarity index 84% rename from base/src/main/java/de/staropensource/engine/base/implementation/package-info.java rename to logging/src/main/kotlin/de/staropensource/engine/logging/type/package-info.kt index 18f93f414..ac8e88f2b 100644 --- a/base/src/main/java/de/staropensource/engine/base/implementation/package-info.java +++ b/logging/src/main/kotlin/de/staropensource/engine/logging/type/package-info.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -18,8 +19,8 @@ */ /** - * Implementations for various interfaces and abstract classes. + * Contains various data types. * - * @since v1-alpha6 + * @since v1-alpha10 */ -package de.staropensource.engine.base.implementation; +package de.staropensource.engine.logging.type; diff --git a/notification/README.md b/notification/README.md deleted file mode 100644 index e2f4b80d2..000000000 --- a/notification/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# The `notification` subsystem -This subsystems provides an extensive notification API. The only thing missing in the sandwich is your application displaying these. diff --git a/notification/build.gradle b/notification/build.gradle deleted file mode 100644 index 3b0408e93..000000000 --- a/notification/build.gradle +++ /dev/null @@ -1,109 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -// Plugins -plugins { - id("java") - id("io.freefair.lombok") version("${pluginLombok}") - id("maven-publish") -} - -// Dependencies -dependencies { - // Lombok - compileOnly("org.projectlombok:lombok:${dependencyLombok}") - annotationProcessor("org.projectlombok:lombok:${dependencyLombok}") - - // JetBrains Annotations - compileOnly("org.jetbrains:annotations:${dependencyJetbrainsAnnotations}") - - // Project - implementation(project(":base")) -} - -// Javadoc configuration -javadoc { - outputs.upToDateWhen { false } // Force task execution - dependsOn(delombok) // Make sure the source is delomboked first - - javadoc { - setClasspath(files(project.sourceSets.main.compileClasspath)) // Include dependencies - - options { - if (new File(projectDir, "src/main/javadoc/theme.css").exists()) - stylesheetFile = new File(projectDir, "src/main/javadoc/theme.css") // Theming is cool :3 - setMemberLevel(JavadocMemberLevel.PUBLIC) // Only display public stuff - setOverview("src/main/javadoc/overview.html") // We want a custom overview page to greet the visitor - setLocale("en_US") // 你好 - addStringOption("Xwerror", "-quiet") // Fail build on warning - - setJFlags([ - "-Duser.language=en_US" // See above - ]) - } - } -} - -// Include javadoc and source jar during publishing -java { - withJavadocJar() - withSourcesJar() -} - -// Build publishing configuration -// Note: You can safely ignore any errors or warnings thrown by your IDE here -publishing { - repositories { - maven { - name = "staropensource" - url = uri("https://mvn.staropensource.de/engine") - credentials(org.gradle.api.credentials.PasswordCredentials) - authentication { - //noinspection GroovyAssignabilityCheck - basic (BasicAuthentication) - } - } - } - publications { - //noinspection GroovyAssignabilityCheck - maven (MavenPublication) { - groupId = group - artifactId = project.getName() - version = version - //noinspection GroovyAssignabilityCheck - from components.java - } - } -} - -// Fix delombok task -delombok.doFirst { - File target = file("${project.projectDir}/src/main/module-info.java") - File source = file("${project.projectDir}/src/main/java/module-info.java") - - target.delete() - source.renameTo(target) -} -delombok.doLast { - File target = file("${project.projectDir}/src/main/java/module-info.java") - File source = file("${project.projectDir}/src/main/module-info.java") - - target.delete() - source.renameTo(target) -} diff --git a/notification/gradle b/notification/gradle deleted file mode 120000 index 3337596a2..000000000 --- a/notification/gradle +++ /dev/null @@ -1 +0,0 @@ -../gradle \ No newline at end of file diff --git a/notification/gradlew b/notification/gradlew deleted file mode 120000 index 502f5a2d3..000000000 --- a/notification/gradlew +++ /dev/null @@ -1 +0,0 @@ -../gradlew \ No newline at end of file diff --git a/notification/gradlew.bat b/notification/gradlew.bat deleted file mode 120000 index 284013288..000000000 --- a/notification/gradlew.bat +++ /dev/null @@ -1 +0,0 @@ -../gradlew.bat \ No newline at end of file diff --git a/notification/src/main/java/de/staropensource/engine/notification/NotificationManager.java b/notification/src/main/java/de/staropensource/engine/notification/NotificationManager.java deleted file mode 100644 index 496fc4558..000000000 --- a/notification/src/main/java/de/staropensource/engine/notification/NotificationManager.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.notification; - -import de.staropensource.engine.notification.type.Notification; -import de.staropensource.engine.notification.type.NotificationState; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; - -/** - * Manages and handles {@link Notification}s. - * - * @since v1-alpha6 - */ -public final class NotificationManager { - /** - * Contains a list of all notifications and their states. - * - * @since v1-alpha6 - */ - private static final @NotNull Map<@NotNull Notification, @NotNull NotificationState> notifications = new HashMap<>(); - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha6 - */ - private NotificationManager() {} - - /** - * Returns an immutable map containing all - * registered notifications and their current states. - * - * @return map of registered notifications - * @since v1-alpha6 - */ - public static @NotNull Map<@NotNull Notification, @NotNull NotificationState> getNotifications() { - return Collections.unmodifiableMap(notifications); - } - - /** - * Returns whether the specified notification - * is registered and if so, which state - * it is in. - * - * @param notification notification to check - * @return state or {@code null} if unregistered - * @since v1-alpha6 - */ - public static @Nullable NotificationState getState(@NotNull Notification notification) { - if (notifications.containsKey(notification)) - return notifications.get(notification); - - return null; - } - - /** - * Fires the specified notification. - * Will simply set it's state to - * {@link NotificationState#SHOWN} - * if it is already registered. - * - * @param notification notification to fire - * @since v1-alpha6 - */ - public static void fire(@NotNull Notification notification) { - updateNotification(notification, NotificationState.SHOWN, false); - } - - /** - * Hides the specified notification. - * Does nothing if it isn't shown. - * - * @param notification notification to update - * @since v1-alpha6 - */ - public static void hide(@NotNull Notification notification) { - if (notifications.getOrDefault(notification, NotificationState.HIDDEN) == NotificationState.SHOWN) - updateNotification(notification, NotificationState.HIDDEN, false); - } - - /** - * Dismisses the specified notification. - * Does nothing if it is already dismissed. - *

- * Note: Dismissing a notification does not - * necessarily mean removing it. Check - * {@link Notification#getDismissalAction()} - * first or you might get a surprise. - * - * @param notification notification to update - * @since v1-alpha6 - */ - public static void dismiss(@NotNull Notification notification) { - if (notifications.getOrDefault(notification, NotificationState.HIDDEN) == NotificationState.SHOWN) { - updateNotification(notification, NotificationState.DISMISSED, false); - - switch (notification.getDismissalAction()) { - case UNREGISTER -> updateNotification(notification, notifications.get(notification), true); - case EXECUTE -> notification.dismiss(); - case EXECUTE_UNREGISTER -> { - updateNotification(notification, NotificationState.DISMISSED_ACTIVE, false); - notification.dismiss(); - updateNotification(notification, NotificationState.DISMISSED, true); - } - } - } - } - - /** - * Frees the specified notification, - * or all if {@code notifications} is empty. - *

- * Only works for dismissed notifications - * which require manual freeing. See - * {@link #dismiss(Notification)} for more information. - * - * @param notifications notifications to free, or all if empty - * @since v1-alpha6 - */ - public static void freeDismissed(@NotNull Notification @NotNull... notifications) { - if (notifications.length == 0) - notifications = NotificationManager.getNotifications().keySet().toArray(new Notification[0]); - - for (Notification notification : notifications) - if ( - NotificationManager.getNotifications().containsKey(notification) - && NotificationManager.getNotifications().get(notification) == NotificationState.DISMISSED - ) - updateNotification(notification, NotificationState.DISMISSED, true); - } - - /** - * Adds or updates the specified notification - * in the {@link #notifications} map. - * - * @param notification notification to add or update - * @param state state to set - * @since v1-alpha6 - */ - private static synchronized void updateNotification(@NotNull Notification notification, @NotNull NotificationState state, boolean removeOnly) { - if (removeOnly) - notifications.remove(notification); - else - if (notifications.containsKey(notification)) - notifications.replace(notification, state); - else - notifications.put(notification, state); - } -} diff --git a/notification/src/main/java/de/staropensource/engine/notification/NotificationSubsystem.java b/notification/src/main/java/de/staropensource/engine/notification/NotificationSubsystem.java deleted file mode 100644 index b2558ff91..000000000 --- a/notification/src/main/java/de/staropensource/engine/notification/NotificationSubsystem.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.notification; - -import de.staropensource.engine.base.annotation.EngineSubsystem; -import de.staropensource.engine.base.implementable.SubsystemClass; -import de.staropensource.engine.base.implementation.versioning.StarOpenSourceVersioningSystem; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.DependencyVector; -import de.staropensource.engine.base.utility.information.EngineInformation; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; - -/** - * Main class of the {@code notification} subsystem. - * - * @since v1-alpha6 - */ -@EngineSubsystem -@SuppressWarnings({ "JavadocDeclaration" }) -public final class NotificationSubsystem extends SubsystemClass { - /** - * Contains the class instance. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the class instance. - * - * @return class instance unless the subsystem is uninitialized - * @since v1-alpha6 - */ - @Getter - private static NotificationSubsystem instance = null; - - /** - * Initializes this subsystem. - * - * @since v1-alpha6 - */ - public NotificationSubsystem() { - // Check if subsystem has already initialized - if (instance == null) - instance = this; - else - Logger.crash("Only one instance of this class is allowed, use getInstance() instead of creating a new instance"); - } - - /** {@inheritDoc} */ - @Override - public @NotNull String getName() { - return "notification"; - } - - /** {@inheritDoc} */ - @Override - public void initializeSubsystem() {} - - /** {@inheritDoc} */ - @Override - public @NotNull DependencyVector getDependencyVector() { - return new DependencyVector.Builder() - .setIdentifier("notification") - .setVersioningSystem(StarOpenSourceVersioningSystem.class) - .setVersion(EngineInformation.getVersioningString()) - .build(); - } -} diff --git a/notification/src/main/java/de/staropensource/engine/notification/type/Notification.java b/notification/src/main/java/de/staropensource/engine/notification/type/Notification.java deleted file mode 100644 index dabbf2ce0..000000000 --- a/notification/src/main/java/de/staropensource/engine/notification/type/Notification.java +++ /dev/null @@ -1,330 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.notification.type; - -import de.staropensource.engine.base.type.Color; -import de.staropensource.engine.notification.NotificationManager; -import lombok.AccessLevel; -import lombok.Getter; -import lombok.Setter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; -import org.jetbrains.annotations.Range; - -import java.util.LinkedHashMap; - -/** - * A notification! - * - * @since v1-alpha6 - */ -@Getter -@Setter -@SuppressWarnings({ "JavadocDeclaration" }) -public class Notification { - /** - * Contains the class from where - * this notification was emitted. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the class from where - * this notification was emitted. - * - * @return origin - * @since v1-alpha6 - */ - @Setter(value = AccessLevel.NONE) - private final @NotNull Class origin; - - /** - * Contains what to do when the notification is dismissed. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns what to do when the notification is dismissed. - * - * @return dismissal action - * @since v1-alpha6 - * -- SETTER -- - * Sets what to do when the notification is dismissed. - * - * @param dismissalAction new dismissal action - * @since v1-alpha6 - */ - private @NotNull NotificationDismissalAction dismissalAction = NotificationDismissalAction.UNREGISTER; - - /** - * Contains the priority of this notification. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the priority of this notification. - * - * @return priority - * @since v1-alpha6 - * -- SETTER -- - * Sets the priority of this notification. - * - * @param priority new priority - * @since v1-alpha6 - */ - private @NotNull NotificationPriority priority = NotificationPriority.DEFAULT; - - /** - * Contains the type of this notification. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the type of this notification. - * - * @return type - * @since v1-alpha6 - * -- SETTER -- - * Sets the type of this notification. - * - * @param type new type - * @since v1-alpha6 - */ - private @NotNull NotificationType type = NotificationType.INFORMATIONAL; - - /** - * Contains the title of this notification. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the title of this notification. - * - * @return title - * @since v1-alpha6 - * -- SETTER -- - * Sets the title of this notification. - * - * @param title new title - * @since v1-alpha6 - */ - private @NotNull String title; - - /** - * Contains the content of this notification. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the content of this notification. - * - * @return content - * @since v1-alpha6 - * -- SETTER -- - * Sets the content of this notification. - * - * @param content new content - * @since v1-alpha6 - */ - private @Nullable String content = null; - - /** - * Contains the color of this notification. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns the theme color of this notification. - * - * @return theme color - * @since v1-alpha6 - * -- SETTER -- - * Sets the theme color of this notification. - * - * @param color new theme color - * @since v1-alpha6 - */ - private @Nullable Color color = null; - - /** - * Contains whether this notification shall be closable or not. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns whether this notification shall be closable or not. - * - * @return closable flag state - * @since v1-alpha6 - * -- SETTER -- - * Sets whether this notification shall be closable or not. - * - * @param closable new closable flag state - * @since v1-alpha6 - */ - private boolean closable = true; - - /** - * Contains whether the notification has a progress bar attached, - * and if so, to which percentage it is filled. - *

- * If it contains {@code -1} then this notification does not have - * a progress bar. If it doesn't, it must contain a percentage - * between {@code 0} and {@code 100}. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns whether the notification has a progress bar attached, - * and if so, to which percentage it is filled. - *

- * If it contains {@code -1} then this notification does not have - * a progress bar. If it doesn't, it must contain a percentage - * between {@code 0} and {@code 100}. - * - * @return progress bar filled in %, or {@code -1} if disabled - * @since v1-alpha6 - * -- SETTER -- - * Sets whether the notification has a progress bar attached, - * and if so, to which percentage it is filled. - *

- * If it contains {@code -1} then this notification does not have - * a progress bar. If it doesn't, it must contain a percentage - * between {@code 0} and {@code 100}. - * - * @param bar new % value to which the progress bar is filled, or {@code -1} to mark it as disabled - * @since v1-alpha6 - */ - private @Range(from = -1, to = 100) int bar = -1; - - /** - * Contains the {@link Runnable} which shall be executed - * when the notification is clicked/interacted with. - * - * @since v1-alpha6 - * -- GETTER -- - * Contains the {@link Runnable} which shall be executed - * when the notification is clicked/interacted with. - * - * @return {@link Runnable} executed if clicked - * @since v1-alpha6 - * -- SETTER -- - * Sets the {@link Runnable} which shall be executed - * when the notification is clicked/interacted with. - * - * @param clickCode {@link Runnable} executed if clicked - * @since v1-alpha6 - */ - private @Nullable Runnable clickCode = null; - - /** - * Contains all buttons and their associated - * {@link Runnable}s on this notification. - * - * @since v1-alpha6 - * -- GETTER -- - * Returns all buttons and their associated - * {@link Runnable}s on this notification. - * - * @return linked button map - * @since v1-alpha6 - */ - @Setter(value = AccessLevel.NONE) - private @NotNull LinkedHashMap<@NotNull String, @NotNull Runnable> buttons = new LinkedHashMap<>(); - - /** - * Creates and initializes an instance of this class. - * - * @param origin class from where the notification was emitted - * @param title title of the notification - * @since v1-alpha6 - */ - public Notification(@NotNull Class origin, @NotNull String title) { - this.origin = origin; - this.title = title; - } - - /** - * Sets the percentage of which the progress bar is filled. - * This method calculates the percentage between two values, - * saving you the simple math. - * - * @param min minimum value - * @param max maximum value - * @param value value - * @since v1-alpha6 - */ - public void setBar(int min, int max, int value) { - if (min >= value) - bar = 0; - else - bar = max / value; - - if (bar < 0) - bar = 0; - else if (bar > 100) - bar = 100; - } - - /** - * Sets the percentage of which the progress bar is filled. - * This method calculates the percentage between two values, - * saving you the simple math. - *

- * Note: This method assumes the minimum value is {@code 0}. - * If you want control over this, see {@link #setBar(int, int, int)}. - * - * @param max maximum value - * @param value value - * @since v1-alpha6 - */ - public void setBar(int max, int value) { - setBar(0, max, value); - } - - /** - * Returns the state of this notification. - * - * @return state or {@code null} if not registered - * @since v1-alpha6 - */ - public final @Nullable NotificationState getState() { - return NotificationManager.getState(this); - } - - /** - * Fires this notification. - *

- * If this notification has just been created, - * invoking this method will register it and - * make it work. If this method has been called - * already however, it will simply display - * the notification again, even if hidden or - * dismissed. - * - * @since v1-alpha6 - */ - public final void fire() { - NotificationManager.fire(this); - } - - /** - * Dismisses this notification. - *

- * This method will only be executed if - * {@link #dismissalAction} is either set - * to {@link NotificationDismissalAction#EXECUTE} - * or {@link NotificationDismissalAction#EXECUTE_UNREGISTER}. - * - * @since v1-alpha6 - */ - public void dismiss() {} -} diff --git a/notification/src/main/java/de/staropensource/engine/notification/type/NotificationDismissalAction.java b/notification/src/main/java/de/staropensource/engine/notification/type/NotificationDismissalAction.java deleted file mode 100644 index 5d500a477..000000000 --- a/notification/src/main/java/de/staropensource/engine/notification/type/NotificationDismissalAction.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.notification.type; - -/** - * Used for representing how a notification - * should act if it is dismissed. - * - * @since v1-alpha6 - */ -public enum NotificationDismissalAction { - /** - * Makes the notification do nothing. - * It will simply sit there in loneliness, - * waiting to be interacted with. - *

- * Not recommended as it will cause - * memory leaks if not cleaned up manually. - * - * @since v1-alpha6 - */ - NOTHING, - - /** - * Simply unregisters the notification, - * causing it to disappear. Most likely - * the option you want to choose. - * - * @since v1-alpha6 - */ - UNREGISTER, - - /** - * Executes the {@link Notification#dismiss()} - * method on the notification. - *

- * Not recommended as it will cause - * memory leaks if not cleaned up manually. - * - * @since v1-alpha6 - */ - EXECUTE, - - /** - * Executes the {@link Notification#dismiss()} - * method on the notification and - * unregisters it afterwards. - * - * @since v1-alpha6 - */ - EXECUTE_UNREGISTER, -} diff --git a/notification/src/main/java/de/staropensource/engine/notification/type/NotificationPriority.java b/notification/src/main/java/de/staropensource/engine/notification/type/NotificationPriority.java deleted file mode 100644 index f50c4cb7b..000000000 --- a/notification/src/main/java/de/staropensource/engine/notification/type/NotificationPriority.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.notification.type; - -/** - * Determines a notification's importance. - * - * @since v1-alpha6 - */ -public enum NotificationPriority { - /** - * A very important notification. - * - * @since v1-alpha6 - */ - VERY_IMPORTANT, - - /** - * An important notification. - * - * @since v1-alpha6 - */ - IMPORTANT, - - /** - * The standard priority. - * - * @since v1-alpha6 - */ - DEFAULT, - - /** - * An unimportant notification. - * - * @since v1-alpha6 - */ - UNIMPORTANT, - - /** - * A very unimportant notification. - * - * @since v1-alpha6 - */ - VERY_UNIMPORTANT, -} diff --git a/notification/src/main/java/de/staropensource/engine/notification/type/NotificationState.java b/notification/src/main/java/de/staropensource/engine/notification/type/NotificationState.java deleted file mode 100644 index 866aa532a..000000000 --- a/notification/src/main/java/de/staropensource/engine/notification/type/NotificationState.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.notification.type; - -/** - * Used for representing the state of an notification. - * - * @since v1-alpha6 - */ -public enum NotificationState { - /** - * A shown notification. - * - * @since v1-alpha6 - */ - SHOWN, - - /** - * A hidden notification. - * - * @since v1-alpha6 - */ - HIDDEN, - - /** - * A dismissed notification which - * is still executing code. - * - * @since v1-alpha6 - */ - DISMISSED_ACTIVE, - - /** - * A dismissed notification. - * - * @since v1-alpha6 - */ - DISMISSED, -} diff --git a/notification/src/main/java/de/staropensource/engine/notification/type/NotificationType.java b/notification/src/main/java/de/staropensource/engine/notification/type/NotificationType.java deleted file mode 100644 index 00ef6b822..000000000 --- a/notification/src/main/java/de/staropensource/engine/notification/type/NotificationType.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.notification.type; - -/** - * Determines the type of a notification. - * - * @since v1-alpha6 - */ -public enum NotificationType { - /** - * Marks a notification as an error notification. - * - * @since v1-alpha6 - */ - ERROR, - - /** - * Marks a notification as a warning notification. - * - * @since v1-alpha6 - */ - WARNING, - - /** - * Marks a notification as an informational notification. - * - * @since v1-alpha6 - */ - INFORMATIONAL, -} diff --git a/notification/src/main/java/module-info.java b/notification/src/main/java/module-info.java deleted file mode 100644 index 0319c8876..000000000 --- a/notification/src/main/java/module-info.java +++ /dev/null @@ -1,19 +0,0 @@ -/** - * The {@code notification} subsystem, which - * provides an extensive notification API. - * - * @since v1-alpha6 - */ -module sosengine.notification { - // Dependencies - // -> Engine - requires sosengine.base; - - // API access - exports de.staropensource.engine.notification; - exports de.staropensource.engine.notification.type; - - // Reflection access - opens de.staropensource.engine.notification; - opens de.staropensource.engine.notification.type; -} diff --git a/notification/src/main/javadoc/overview.html b/notification/src/main/javadoc/overview.html deleted file mode 100644 index 1f3acc8e7..000000000 --- a/notification/src/main/javadoc/overview.html +++ /dev/null @@ -1,22 +0,0 @@ - - -

Welcome to the sos!engine API documentation!
- You are currently in the documentation for the notification subsystem, which provides an extensive notification API.

- diff --git a/notification/src/main/javadoc/theme.css b/notification/src/main/javadoc/theme.css deleted file mode 120000 index 681484a8e..000000000 --- a/notification/src/main/javadoc/theme.css +++ /dev/null @@ -1 +0,0 @@ -../../../../src/main/javadoc/theme.css \ No newline at end of file diff --git a/rendering/README.md b/rendering/README.md deleted file mode 100644 index 9c9adcc97..000000000 --- a/rendering/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# The `windowing` subsystem -This subsystem provides abstract APIs for creating and managing windows and monitors, which can then be implemented by windowing APIs and used by applications and games. diff --git a/rendering/build.gradle b/rendering/build.gradle deleted file mode 100644 index 508cb3326..000000000 --- a/rendering/build.gradle +++ /dev/null @@ -1,146 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import org.gradle.internal.os.OperatingSystem - -// Plugins -plugins { - id("java") - id("io.freefair.lombok") version("${pluginLombok}") - id("maven-publish") -} - -// Determine operating system and architecture -switch (OperatingSystem.current()) { - case OperatingSystem.LINUX: - project.dependencyLwjglNatives = "natives-linux" - def osArch = System.getProperty("os.arch") - if (osArch.startsWith("arm") || osArch.startsWith("aarch64")) - project.dependencyLwjglNatives += osArch.contains("64") || osArch.startsWith("armv8") ? "-arm64" : "-arm32" - else if (osArch.startsWith("ppc")) - project.dependencyLwjglNatives += "-ppc64le" - else if (osArch.startsWith("riscv")) - project.dependencyLwjglNatives += "-riscv64" - break - case OperatingSystem.MAC_OS: - project.dependencyLwjglNatives = System.getProperty("os.arch").startsWith("aarch64") ? "natives-macos-arm64" : "natives-macos" - break - case OperatingSystem.WINDOWS: - def osArch = System.getProperty("os.arch") - project.dependencyLwjglNatives = osArch.contains("64") - ? "natives-windows${osArch.startsWith("aarch64") ? "-arm64" : ""}" - : "natives-windows-x86" - break -} - -// Dependencies -dependencies { - // Lombok - compileOnly("org.projectlombok:lombok:${dependencyLombok}") - annotationProcessor("org.projectlombok:lombok:${dependencyLombok}") - - // JetBrains Annotations - compileOnly("org.jetbrains:annotations:${dependencyJetbrainsAnnotations}") - - // LWJGL - implementation(platform("org.lwjgl:lwjgl-bom:${dependencyLwjgl}")) - implementation("org.lwjgl:lwjgl") - implementation("org.lwjgl:lwjgl-stb") - implementation("org.lwjgl:lwjgl-glfw") - implementation("org.lwjgl:lwjgl-bgfx") - runtimeOnly("org.lwjgl:lwjgl::${dependencyLwjglNatives}") - runtimeOnly("org.lwjgl:lwjgl-stb::${dependencyLwjglNatives}") - runtimeOnly("org.lwjgl:lwjgl-glfw::${dependencyLwjglNatives}") - runtimeOnly("org.lwjgl:lwjgl-bgfx::${dependencyLwjglNatives}") - if (project.dependencyLwjglNatives == "natives-macos" || project.dependencyLwjglNatives == "natives-macos-arm64") runtimeOnly("org.lwjgl:lwjgl-vulkan::${dependencyLwjglNatives}") - - // Project - implementation(project(":base")) -} - -// Javadoc configuration -javadoc { - outputs.upToDateWhen { false } // Force task execution - dependsOn(delombok) // Make sure the source is delomboked first - - javadoc { - setClasspath(files(project.sourceSets.main.compileClasspath)) // Include dependencies - - options { - if (new File(projectDir, "src/main/javadoc/theme.css").exists()) - stylesheetFile = new File(projectDir, "src/main/javadoc/theme.css") // Theming is cool :3 - setMemberLevel(JavadocMemberLevel.PUBLIC) // Only display public stuff - setOverview("src/main/javadoc/overview.html") // We want a custom overview page to greet the visitor - setLocale("en_US") // 你好 - addStringOption("Xwerror", "-quiet") // Fail build on warning - - setJFlags([ - "-Duser.language=en_US" // See above - ]) - } - } -} - -// Include javadoc and source jar during publishing -java { - withJavadocJar() - withSourcesJar() -} - -// Build publishing configuration -// Note: You can safely ignore any errors or warnings thrown by your IDE here -publishing { - repositories { - maven { - name = "staropensource" - url = uri("https://mvn.staropensource.de/engine") - credentials(org.gradle.api.credentials.PasswordCredentials) - authentication { - //noinspection GroovyAssignabilityCheck - basic (BasicAuthentication) - } - } - } - publications { - //noinspection GroovyAssignabilityCheck - maven (MavenPublication) { - groupId = group - artifactId = project.getName() - version = version - //noinspection GroovyAssignabilityCheck - from components.java - } - } -} - -// Fix delombok task -delombok.doFirst { - File target = file("${project.projectDir}/src/main/module-info.java") - File source = file("${project.projectDir}/src/main/java/module-info.java") - - target.delete() - source.renameTo(target) -} -delombok.doLast { - File target = file("${project.projectDir}/src/main/java/module-info.java") - File source = file("${project.projectDir}/src/main/module-info.java") - - target.delete() - source.renameTo(target) -} diff --git a/rendering/gradle b/rendering/gradle deleted file mode 120000 index 3337596a2..000000000 --- a/rendering/gradle +++ /dev/null @@ -1 +0,0 @@ -../gradle \ No newline at end of file diff --git a/rendering/gradlew b/rendering/gradlew deleted file mode 120000 index 502f5a2d3..000000000 --- a/rendering/gradlew +++ /dev/null @@ -1 +0,0 @@ -../gradlew \ No newline at end of file diff --git a/rendering/gradlew.bat b/rendering/gradlew.bat deleted file mode 120000 index 284013288..000000000 --- a/rendering/gradlew.bat +++ /dev/null @@ -1 +0,0 @@ -../gradlew.bat \ No newline at end of file diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystem.java b/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystem.java deleted file mode 100644 index de9885f06..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystem.java +++ /dev/null @@ -1,234 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering; - -import de.staropensource.engine.base.annotation.EngineSubsystem; -import de.staropensource.engine.base.annotation.EventListener; -import de.staropensource.engine.base.implementable.Event; -import de.staropensource.engine.base.implementable.SubsystemClass; -import de.staropensource.engine.base.implementable.helper.EventHelper; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.utility.information.EngineInformation; -import de.staropensource.engine.base.implementation.versioning.StarOpenSourceVersioningSystem; -import de.staropensource.engine.base.event.InternalEngineShutdownEvent; -import de.staropensource.engine.base.type.DependencyVector; -import de.staropensource.engine.base.utility.misc.Miscellaneous; -import de.staropensource.engine.rendering.event.InputEvent; -import de.staropensource.engine.rendering.event.RenderingErrorEvent; -import de.staropensource.engine.rendering.exception.NotOnMainThreadException; -import de.staropensource.engine.rendering.renderer.Renderer; -import de.staropensource.engine.rendering.type.Window; -import de.staropensource.engine.rendering.type.Platform; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; -import org.lwjgl.glfw.*; - -import java.util.ArrayList; - -import static org.lwjgl.glfw.GLFW.*; - -/** - * Main class of the {@code rendering} subsystem. - * - * @since v1-alpha9 - */ -@EngineSubsystem -@SuppressWarnings({ "JavadocDeclaration" }) -public final class RenderingSubsystem extends SubsystemClass { - /** - * Contains the class instance. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the class instance. - * - * @return class instance unless the subsystem is uninitialized - * @since v1-alpha9 - */ - @Getter - private static RenderingSubsystem instance = null; - - /** - * The {@link GLFWErrorCallback} to use. - *

- * Only declared publicly for freeing during engine shutdown. - * - * @since v1-alpha2 - */ - private GLFWErrorCallback errorCallback = null; - - // -----> Subsystem - /** - * Initializes this subsystem. - * - * @since v1-alpha9 - */ - public RenderingSubsystem() { - // Only allow one instance - if (instance == null) - instance = this; - else - Logger.crash("Only one instance of this class is allowed, use getInstance() instead of creating a new instance"); - } - - /** {@inheritDoc} */ - @Override - public @NotNull String getName() { - return "rendering"; - } - - /** {@inheritDoc} */ - @Override - public @NotNull DependencyVector getDependencyVector() { - return new DependencyVector.Builder() - .setIdentifier(getName()) - .setVersioningSystem(StarOpenSourceVersioningSystem.class) - .setVersion(EngineInformation.getVersioningString()) - .build(); - } - - /** {@inheritDoc} */ - @Override - public void initializeSubsystem() { - if (!Miscellaneous.onMainThread()) - Logger.crash("Unable to initialize the rendering subsystem whilst running on a non-main thread", new NotOnMainThreadException()); - - // Initialize WindowingSubsystemConfiguration and load it - new RenderingSubsystemConfiguration().loadConfiguration(); - - // Precompute event listeners - cacheEvents(); - - // Initialize GLFW - initGlfw(); - - // Initialize renderer - Renderer.initialize(); - - // Warn about subsystem and API instability - Logger.warn("The rendering subsystem is experimental. Subsystem and API stability are not guaranteed."); - } - - /** - * Caches all windowing subsystem events. - * - * @since v1-alpha9 - */ - private void cacheEvents() { - EventHelper.cacheEvent(RenderingErrorEvent.class); - EventHelper.cacheEvent(InputEvent.class); - } - - /** - * Initializes GLFW. - * - * @since v1-alpha9 - */ - private void initGlfw() { - try { - Logger.verb("Initializing GLFW"); - - // Set error callback - Logger.diag("Setting error callback"); - errorCallback = GLFWErrorCallback.create((error, description) -> new RenderingErrorEvent().callEvent("GLFW: " + GLFWErrorCallback.getDescription(description) + " [" + error + "]")).set(); - - // Set init hints - Logger.diag("Setting initialization hints"); - switch (RenderingSubsystemConfiguration.getInstance().getInitialPlatform()) { - case ANY -> glfwInitHint(GLFW_PLATFORM, GLFW_ANY_PLATFORM); - case WAYLAND -> tryPlatform(GLFW_PLATFORM_WAYLAND, Platform.WAYLAND); - case X11 -> tryPlatform(GLFW_PLATFORM_X11, Platform.X11); - case WIN32 -> tryPlatform(GLFW_PLATFORM_WIN32, Platform.WIN32); - case COCOA -> tryPlatform(GLFW_PLATFORM_COCOA, Platform.COCOA); - case NONE -> glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_NULL); - } - glfwInitHint(GLFW_WAYLAND_LIBDECOR, RenderingSubsystemConfiguration.getInstance().isInitialDisableLibdecor() ? GLFW_WAYLAND_DISABLE_LIBDECOR : GLFW_WAYLAND_PREFER_LIBDECOR); - - // Initialize GLFW - Logger.diag("Invoking glfwInit"); - if (!glfwInit()) - Logger.crash("Failed to initialize GLFW"); - } catch (UnsatisfiedLinkError error) { - Logger.crash("Failed to load LWJGL native libraries", error); - } - } - - /** - * Shuts the subsystem down. - * - * @since v1-alpha9 - */ - @EventListener(event = InternalEngineShutdownEvent.class) - @SuppressWarnings({ "unused" }) - protected static void shutdownSubsystem() { - if (instance == null) - return; - - Logger.verb("Shutting down"); - - long shutdownTime = Miscellaneous.measureExecutionTime(() -> { - // Close all windows - for (Window window : new ArrayList<>(Window.getWindows())) - window.close(); - - instance.errorCallback.free(); - glfwTerminate(); - }); - - Logger.info("Shut down in " + shutdownTime + "ms"); - } - - /** - * Logs about rendering errors. - * - * @see RenderingSubsystemConfiguration#errorRenderingFailures - * @since v1-alpha9 - */ - @EventListener(event = RenderingErrorEvent.class, priority = Event.Priority.EXCLUSIVELY_IMPORTANT) - private static void logRenderingError(@NotNull String error) { - Logger.error("Rendering error occurred: " + error); - } - - - // -----> Utility methods - /** - * Checks if the specified platform is compatible, - * and if so, specifies it as the platform to use. - * - * @param platform platform to try - * @param renderingPlatform {@link Platform} used to log that the platform is unsupported (set to {@code null} to disable) - * @since v1-alpha9 - */ - private void tryPlatform(int platform, @Nullable Platform renderingPlatform) { - if (glfwPlatformSupported(platform)) - if (platform != GLFW_PLATFORM_WAYLAND) - glfwInitHint(GLFW_PLATFORM, platform); - else { - Logger.warn("Wayland is not supported by the StarOpenSource Engine due to various issues with it, sorry."); - tryPlatform(GLFW_PLATFORM_X11, Platform.X11); - } - else { - if (renderingPlatform != null) - Logger.warn("Platform Platform." + renderingPlatform.name() + " is not supported GLFW. Using Platform.ANY instead"); - glfwInitHint(GLFW_PLATFORM, GLFW_ANY_PLATFORM); - } - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystemConfiguration.java b/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystemConfiguration.java deleted file mode 100644 index d413c61ff..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/RenderingSubsystemConfiguration.java +++ /dev/null @@ -1,405 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering; - -import de.staropensource.engine.base.implementable.Configuration; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.utility.PropertiesReader; -import de.staropensource.engine.rendering.event.RenderingErrorEvent; -import de.staropensource.engine.rendering.type.Adapter; -import de.staropensource.engine.rendering.type.Platform; -import de.staropensource.engine.rendering.type.Renderer; -import de.staropensource.engine.rendering.type.VsyncMode; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -/** - * Provides the configuration for the rendering subsystem. - * - * @since v1-alpha9 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public final class RenderingSubsystemConfiguration extends Configuration { - /** - * Contains the class instance. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the class instance. - * - * @return class instance unless {@link RenderingSubsystem} is uninitialized - * @since v1-alpha9 - */ - @Getter - private static RenderingSubsystemConfiguration instance; - - /** - * Contains the configuration prefix. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the configuration prefix. - * - * @return property group - * @since v1-alpha9 - */ - @Getter - public final @NotNull String group = "sosengine.rendering."; - - /** - * Contains if debugging options should be allowed. - * All debugging options will be forcefully set to - * {@code false} if this option is set to {@code false}. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns if debugging options should be allowed. - * All debugging options will be forcefully set to - * {@code false} if this option is set to {@code false}. - * - * @return debugging enabled? - * @since v1-alpha9 - */ - private boolean debug; - - /** - * Contains whether or not key presses - * and releases should be logged. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns whether or not key presses - * and releases should be logged. - * - * @return log key presses and releases? - * @since v1-alpha9 - */ - private boolean debugInput; - - /** - * Contains whether or not the delta time and - * FPS count should be logged to the console - * every second. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns whether or not the delta time and - * FPS count should be logged to the console - * every second. - * - * @return print delta time and FPS count? - * @since v1-alpha9 - */ - private boolean debugFrames; - - /** - * Contains if to log the state of all - * windows every second. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns if to log the state of all - * windows every second. - * - * @return log states of all windows? - * @since v1-alpha9 - */ - private boolean debugWindowStates; - - /** - * Contains if rendering information - * shall be visible on every window. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns if rendering information - * shall be visible on every window. - * - * @return display rendering information? - * @since v1-alpha0 - */ - private boolean debugRenderInfo; - - /** - * Contains if to allow updates to a window's - * position. May cause errors and crashes to - * appear, we do not know why. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns if to allow updates to a window's - * position. May cause errors and crashes to - * appear, we do not know why. - * - * @return allow window position updates? - * @since v1-alpha9 - */ - private boolean debugAllowPositionUpdates; - - - /** - * Contains the platform GLFW shall try initialising. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the platform GLFW shall try initialising. - * - * @return GLFW platform - * @since v1-alpha9 - */ - private Platform initialPlatform; - - /** - * Contains the adapter bgfx shall use. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the adapter bgfx shall use. - * - * @return bgfx adapter - * @since v1-alpha9 - */ - private Adapter initialAdapter; - - /** - * Contains the renderer bgfx shall use. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the renderer bgfx shall use. - * - * @return bgfx renderer - * @since v1-alpha9 - */ - private Renderer initialRenderer; - - /** - * Contains whether or not to disable support for - * libdecor. - *

- * Only affects the {@link Platform#WAYLAND} platform. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns whether or not to disable support for - * libdecor. - *

- * Only affects the {@link Platform#WAYLAND} platform. - * - * @return libdecor support disabled? - * @since v1-alpha9 - */ - private boolean initialDisableLibdecor; - - - /** - * Contains whether or not rendering - * errors should be logged. - *

- * The {@link RenderingErrorEvent} will - * be emitted anyway, regardless of the - * value of this variable. - * - * @see RenderingErrorEvent - * @since v1-alpha9 - * -- GETTER -- - * Returns whether or not rendering - * errors should be logged. - *

- * The {@link RenderingErrorEvent} will - * be emitted anyway, regardless of the - * value of this variable. - * - * @return log rendering failures? - * @see RenderingErrorEvent - * @since v1-alpha9 - */ - private boolean errorRenderingFailures; - - - /** - * Contains which {@link VsyncMode} to use. - *

- * This setting determines if and how V-Sync - * will operate, which (if enabled) tries to - * synchronize the frame rate to the monitor's - * refresh rate. See {@link VsyncMode} - * for more information. - * - * @see VsyncMode - * @since v1-alpha9 - * -- GETTER -- - * Returns which {@link VsyncMode} to use. - *

- * This setting determines if and how V-Sync - * will operate, which (if enabled) tries to - * synchronize the frame rate to the monitor's - * refresh rate. See {@link VsyncMode} - * for more information. - * - * @return active V-Sync mode - * @see VsyncMode - * @since v1-alpha9 - */ - private VsyncMode vsyncMode; - - /** - * Contains the maximum value of frames - * which can be rendered per second. - *

- * This value will have no effect on - * windows with V-Sync enabled. - * Set to {@code 0} for effectively - * no limit. Not recommended. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the maximum value of frames - * which can be rendered per second. - *

- * This value will have no effect on - * windows with V-Sync enabled. - * Set to {@code 0} for effectively - * no limit. Not recommended. - * - * @return maximum amount of frames per second - * @since v1-alpha9 - */ - private int maximumFramesPerSecond; - - /** - * Creates and initializes an instance of this class. - * - * @see RenderingSubsystem - * @since v1-alpha9 - */ - RenderingSubsystemConfiguration() { - instance = this; - - loadDefaultConfiguration(); - } - - /** {@inheritDoc} */ - @Override - protected void matchProperty(@NotNull PropertiesReader parser, @NotNull String property) { - switch (property) { - case "debug" -> debug = parser.getBoolean(group + property); - case "debugInput" -> debugInput = parser.getBoolean(group + property); - case "debugFrames" -> debugFrames = parser.getBoolean(group + property); - case "debugWindowStates" -> debugWindowStates = parser.getBoolean(group + property); - case "debugRenderInfo" -> debugRenderInfo = parser.getBoolean(group + property); - case "debugAllowPositionUpdates" -> debugAllowPositionUpdates = parser.getBoolean(group + property); - - case "initialPlatform" -> { - try { - initialPlatform = Platform.valueOf(parser.getString(group + property).toUpperCase()); - } catch (IllegalArgumentException ignored) { - Logger.error("Platform '" + parser.getString(group + property) + "' is not valid"); - } - } - case "initialAdapter" -> { - try { - initialAdapter = Adapter.valueOf(parser.getString(group + property).toUpperCase()); - } catch (IllegalArgumentException exception) { - Logger.error("Adapter '" + parser.getString(group + property) + "' is not valid"); - } - } - case "initialRenderer" -> { - try { - initialRenderer = Renderer.valueOf(parser.getString(group + property).toUpperCase()); - } catch (IllegalArgumentException exception) { - Logger.error("Renderer '" + parser.getString(group + property) + "' is not valid"); - } - } - case "initialDisableLibdecor" -> initialDisableLibdecor = parser.getBoolean(group + property); - - case "errorRenderingFailures" -> errorRenderingFailures = parser.getBoolean(group + property); - - case "vsyncMode" -> { - try { - vsyncMode = VsyncMode.valueOf(parser.getString(group + property).toUpperCase()); - } catch (IllegalArgumentException exception) { - Logger.error("V-Sync mode " + parser.getString(group + property) + " is not valid"); - } - } - case "maximumFramesPerSecond" -> maximumFramesPerSecond = parser.getInteger(group + property, true); - } - } - - /** {@inheritDoc} */ - @Override - protected void processSettings(@NotNull PropertiesReader parser) { - // Disable all debug options if 'debug' is disabled - if (!debug) { - debugInput = false; - debugFrames = false; - debugWindowStates = false; - debugRenderInfo = false; - debugAllowPositionUpdates = false; - } - } - - /** {@inheritDoc} */ - @Override - public void loadDefaultConfiguration() { - debug = true; - debugInput = false; - debugFrames = false; - debugWindowStates = false; - debugRenderInfo = true; - debugAllowPositionUpdates = false; - - initialPlatform = Platform.ANY; - initialAdapter = Adapter.ANY; - initialRenderer = Renderer.ANY; - initialDisableLibdecor = false; - - errorRenderingFailures = true; - - vsyncMode = VsyncMode.ON; - maximumFramesPerSecond = 60; - } - - /** {@inheritDoc} */ - @Override - public @Nullable Object getSetting(@NotNull String setting) { - switch (setting) { - case "debug" -> { return debug; } - case "debugInput" -> { return debugInput; } - case "debugFrames" -> { return debugFrames; } - case "debugWindowStates" -> { return debugWindowStates; } - case "debugRenderInfo" -> { return debugRenderInfo; } - case "debugAllowPositionUpdates" -> { return debugAllowPositionUpdates; } - - case "initialPlatform" -> { return initialPlatform; } - case "initialAdapter" -> { return initialAdapter; } - case "initialRenderer" -> { return initialRenderer; } - case "disableLibdecor" -> { return initialDisableLibdecor; } - - case "errorRenderingFailures" -> { return errorRenderingFailures; } - - case "vsyncMode" -> { return vsyncMode; } - case "maximumFramesPerSecond" -> { return maximumFramesPerSecond; } - default -> { return null; } - } - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/callback/KeyCallback.java b/rendering/src/main/java/de/staropensource/engine/rendering/callback/KeyCallback.java deleted file mode 100644 index a2cb50491..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/callback/KeyCallback.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.callback; - -import de.staropensource.engine.rendering.type.Window; -import de.staropensource.engine.rendering.event.InputEvent; -import de.staropensource.engine.rendering.type.Key; -import de.staropensource.engine.rendering.type.KeyState; -import org.jetbrains.annotations.NotNull; -import org.lwjgl.glfw.GLFWKeyCallbackI; - -import static org.lwjgl.glfw.GLFW.*; - -/** - * A {@link GLFWKeyCallbackI} implementation, which emits {@link InputEvent}. - * - * @since v1-alpha9 - */ -public final class KeyCallback extends WindowCallback implements GLFWKeyCallbackI { - /** - * An {@link InputEvent} instance, to avoid creating too many objects - * and making too many allocations, which would potentially decrease - * performance. - * - * @since v1-alpha9 - */ - private static final InputEvent event = new InputEvent(); - - /** - * Creates and initializes an instance of this class. - * - * @param window {@link Window} class - * @since v1-alpha9 - */ - public KeyCallback(@NotNull Window window) { - super(window); - } - - /** {@inheritDoc} */ - @Override - public void invoke(long window, int key, int scancode, int action, int mods) { - // Ignore GLFW_REPEAT action - if (action == GLFW_REPEAT) - return; - - event.callEvent( - // Attached window - getAttachedWindow(), - // Key - switch (key) { - case GLFW_KEY_UNKNOWN -> Key.UNKNOWN_KEY; - case GLFW_KEY_LEFT_ALT, GLFW_KEY_RIGHT_ALT -> Key.ALT; - case GLFW_KEY_APOSTROPHE -> Key.APOSTROPHE; - case GLFW_KEY_DOWN -> Key.ARROW_DOWN; - case GLFW_KEY_LEFT -> Key.ARROW_LEFT; - case GLFW_KEY_RIGHT -> Key.ARROW_RIGHT; - case GLFW_KEY_UP -> Key.ARROW_UP; - case GLFW_KEY_BACKSPACE -> Key.BACKSPACE; - case GLFW_KEY_LEFT_BRACKET -> Key.BRACKET_LEFT; - case GLFW_KEY_RIGHT_BRACKET -> Key.BRACKET_RIGHT; - case GLFW_KEY_CAPS_LOCK -> Key.CAPS_LOCK; - case GLFW_KEY_COMMA -> Key.COMMA; - case GLFW_KEY_LEFT_CONTROL -> Key.CONTROL_LEFT; - case GLFW_KEY_RIGHT_CONTROL -> Key.CONTROL_RIGHT; - case GLFW_KEY_DELETE -> Key.DELETE; - case GLFW_KEY_END -> Key.END; - case GLFW_KEY_ENTER -> Key.ENTER; - case GLFW_KEY_EQUAL -> Key.EQUAL; - case GLFW_KEY_ESCAPE -> Key.ESCAPE; - case GLFW_KEY_F1 -> Key.FUNCTION_1; - case GLFW_KEY_F2 -> Key.FUNCTION_2; - case GLFW_KEY_F3 -> Key.FUNCTION_3; - case GLFW_KEY_F4 -> Key.FUNCTION_4; - case GLFW_KEY_F5 -> Key.FUNCTION_5; - case GLFW_KEY_F6 -> Key.FUNCTION_6; - case GLFW_KEY_F7 -> Key.FUNCTION_7; - case GLFW_KEY_F8 -> Key.FUNCTION_8; - case GLFW_KEY_F9 -> Key.FUNCTION_9; - case GLFW_KEY_F10 -> Key.FUNCTION_10; - case GLFW_KEY_F11 -> Key.FUNCTION_11; - case GLFW_KEY_F12 -> Key.FUNCTION_12; - case GLFW_KEY_F13 -> Key.FUNCTION_13; - case GLFW_KEY_F14 -> Key.FUNCTION_14; - case GLFW_KEY_F15 -> Key.FUNCTION_15; - case GLFW_KEY_F16 -> Key.FUNCTION_16; - case GLFW_KEY_F17 -> Key.FUNCTION_17; - case GLFW_KEY_F18 -> Key.FUNCTION_18; - case GLFW_KEY_F19 -> Key.FUNCTION_19; - case GLFW_KEY_F20 -> Key.FUNCTION_20; - case GLFW_KEY_F21 -> Key.FUNCTION_21; - case GLFW_KEY_F22 -> Key.FUNCTION_22; - case GLFW_KEY_F23 -> Key.FUNCTION_23; - case GLFW_KEY_F24 -> Key.FUNCTION_24; - case GLFW_KEY_F25 -> Key.FUNCTION_25; - case GLFW_KEY_GRAVE_ACCENT -> Key.GRAVE; - case GLFW_KEY_HOME -> Key.HOME; - case GLFW_KEY_INSERT -> Key.INSERT; - case GLFW_KEY_KP_ADD -> Key.KEYPAD_ADD; - case GLFW_KEY_KP_DECIMAL -> Key.KEYPAD_DECIMAL; - case GLFW_KEY_KP_DIVIDE -> Key.KEYPAD_DIVIDE; - case GLFW_KEY_KP_ENTER -> Key.KEYPAD_ENTER; - case GLFW_KEY_KP_EQUAL -> Key.KEYPAD_EQUAL; - case GLFW_KEY_KP_MULTIPLY -> Key.KEYPAD_MULTIPLY; - case GLFW_KEY_KP_0 -> Key.KEYPAD_NUMBER_0; - case GLFW_KEY_KP_1 -> Key.KEYPAD_NUMBER_1; - case GLFW_KEY_KP_2 -> Key.KEYPAD_NUMBER_2; - case GLFW_KEY_KP_3 -> Key.KEYPAD_NUMBER_3; - case GLFW_KEY_KP_4 -> Key.KEYPAD_NUMBER_4; - case GLFW_KEY_KP_5 -> Key.KEYPAD_NUMBER_5; - case GLFW_KEY_KP_6 -> Key.KEYPAD_NUMBER_6; - case GLFW_KEY_KP_7 -> Key.KEYPAD_NUMBER_7; - case GLFW_KEY_KP_8 -> Key.KEYPAD_NUMBER_8; - case GLFW_KEY_KP_9 -> Key.KEYPAD_NUMBER_9; - case GLFW_KEY_KP_SUBTRACT -> Key.KEYPAD_SUBTRACT; - case GLFW_KEY_A -> Key.LETTER_A; - case GLFW_KEY_B -> Key.LETTER_B; - case GLFW_KEY_C -> Key.LETTER_C; - case GLFW_KEY_D -> Key.LETTER_D; - case GLFW_KEY_E -> Key.LETTER_E; - case GLFW_KEY_F -> Key.LETTER_F; - case GLFW_KEY_G -> Key.LETTER_G; - case GLFW_KEY_H -> Key.LETTER_H; - case GLFW_KEY_I -> Key.LETTER_I; - case GLFW_KEY_J -> Key.LETTER_J; - case GLFW_KEY_K -> Key.LETTER_K; - case GLFW_KEY_L -> Key.LETTER_L; - case GLFW_KEY_M -> Key.LETTER_M; - case GLFW_KEY_N -> Key.LETTER_N; - case GLFW_KEY_O -> Key.LETTER_O; - case GLFW_KEY_P -> Key.LETTER_P; - case GLFW_KEY_Q -> Key.LETTER_Q; - case GLFW_KEY_R -> Key.LETTER_R; - case GLFW_KEY_S -> Key.LETTER_S; - case GLFW_KEY_T -> Key.LETTER_T; - case GLFW_KEY_U -> Key.LETTER_U; - case GLFW_KEY_V -> Key.LETTER_V; - case GLFW_KEY_W -> Key.LETTER_W; - case GLFW_KEY_X -> Key.LETTER_X; - case GLFW_KEY_Y -> Key.LETTER_Y; - case GLFW_KEY_Z -> Key.LETTER_Z; - case GLFW_KEY_MENU -> Key.MENU; - case GLFW_KEY_LEFT_SUPER -> Key.META; - case GLFW_KEY_MINUS -> Key.MINUS; - case GLFW_KEY_0 -> Key.NUMBER_0; - case GLFW_KEY_1 -> Key.NUMBER_1; - case GLFW_KEY_2 -> Key.NUMBER_2; - case GLFW_KEY_3 -> Key.NUMBER_3; - case GLFW_KEY_4 -> Key.NUMBER_4; - case GLFW_KEY_5 -> Key.NUMBER_5; - case GLFW_KEY_6 -> Key.NUMBER_6; - case GLFW_KEY_7 -> Key.NUMBER_7; - case GLFW_KEY_8 -> Key.NUMBER_8; - case GLFW_KEY_9 -> Key.NUMBER_9; - case GLFW_KEY_NUM_LOCK -> Key.NUM_LOCK; - case GLFW_KEY_PAGE_DOWN -> Key.PAGE_DOWN; - case GLFW_KEY_PAGE_UP -> Key.PAGE_UP; - case GLFW_KEY_PAUSE -> Key.PAUSE; - case GLFW_KEY_PERIOD -> Key.PERIOD; - case GLFW_KEY_PRINT_SCREEN -> Key.PRINT; - case GLFW_KEY_SCROLL_LOCK -> Key.SCROLL_LOCK; - case GLFW_KEY_SEMICOLON -> Key.SEMICOLON; - case GLFW_KEY_LEFT_SHIFT -> Key.SHIFT_LEFT; - case GLFW_KEY_RIGHT_SHIFT -> Key.SHIFT_RIGHT; - case GLFW_KEY_SLASH -> Key.SLASH; - case GLFW_KEY_SPACE -> Key.SPACE; - case GLFW_KEY_TAB -> Key.TAB; - default -> throw new IllegalStateException("Key " + key + " is invalid"); - }, - // Key state - switch (action) { - case GLFW_PRESS -> KeyState.PRESSED; - case GLFW_RELEASE -> KeyState.RELEASED; - default -> throw new IllegalStateException("Action " + action + " is invalid"); - }); - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/callback/MouseButtonCallback.java b/rendering/src/main/java/de/staropensource/engine/rendering/callback/MouseButtonCallback.java deleted file mode 100644 index 75ad13b4d..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/callback/MouseButtonCallback.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.callback; - -import de.staropensource.engine.rendering.type.Window; -import de.staropensource.engine.rendering.event.InputEvent; -import de.staropensource.engine.rendering.type.Key; -import de.staropensource.engine.rendering.type.KeyState; -import org.jetbrains.annotations.NotNull; -import org.lwjgl.glfw.GLFWMouseButtonCallbackI; - -import static org.lwjgl.glfw.GLFW.*; - -/** - * A {@link GLFWMouseButtonCallbackI} implementation, which forward them to {@link InputEvent}. - * - * @since v1-alpha9 - */ -public final class MouseButtonCallback extends WindowCallback implements GLFWMouseButtonCallbackI { - /** - * An {@link InputEvent} instance, to avoid creating too many objects - * and making too many allocations, which would potentially decrease - * performance. - * - * @since v1-alpha9 - */ - private static final InputEvent event = new InputEvent(); - - /** - * Creates and initializes an instance of this class. - * - * @param window {@link Window} class - * @since v1-alpha9 - */ - public MouseButtonCallback(@NotNull Window window) { - super(window); - } - - /** {@inheritDoc} */ - @Override - public void invoke(long window, int key, int action, int mods) { - // Ignore GLFW_REPEAT action - if (action == GLFW_REPEAT) - return; - - event.callEvent( - // Attached window - getAttachedWindow(), - - // Key - switch (key) { - case GLFW_MOUSE_BUTTON_LEFT -> Key.MOUSE_LEFT; - case GLFW_MOUSE_BUTTON_MIDDLE -> Key.MOUSE_MIDDLE; - case GLFW_MOUSE_BUTTON_RIGHT -> Key.MOUSE_RIGHT; - case GLFW_MOUSE_BUTTON_4, GLFW_MOUSE_BUTTON_5, - GLFW_MOUSE_BUTTON_6, GLFW_MOUSE_BUTTON_7, - GLFW_MOUSE_BUTTON_8 -> Key.UNKNOWN_MOUSE_BUTTON; - default -> throw new IllegalStateException("Mouse button " + key + " is invalid"); - }, - // Key state - switch (action) { - case GLFW_PRESS -> KeyState.PRESSED; - case GLFW_RELEASE -> KeyState.RELEASED; - default -> throw new IllegalStateException("Action " + action + " is invalid"); - }); - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/callback/WindowCallback.java b/rendering/src/main/java/de/staropensource/engine/rendering/callback/WindowCallback.java deleted file mode 100644 index f7634bc2a..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/callback/WindowCallback.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.callback; - -import de.staropensource.engine.rendering.type.Window; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; - -/** - * Abstract class used for easily implementing - * callbacks which require a {@link Window} instance. - * - * @since v1-alpha9 - */ -@Getter -@SuppressWarnings({ "JavadocDeclaration" }) -public abstract class WindowCallback { - /** - * Refers to the {@link Window} instance - * this callback is tied to. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the {@link Window} instance - * this callback is tied to. - * - * @return attached {@link Window} instance - * @since v1-alpha9 - */ - private final @NotNull Window attachedWindow; - - /** - * Creates and initializes an instance of this abstract class. - * - * @param window {@link Window} class - * @since v1-alpha9 - */ - public WindowCallback(@NotNull Window window) { - this.attachedWindow = window; - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/callback/package-info.java b/rendering/src/main/java/de/staropensource/engine/rendering/callback/package-info.java deleted file mode 100644 index 4029cc3ef..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/callback/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Callbacks, which emit {@link de.staropensource.engine.base.implementable.Event}s. - * - * @since v1-alpha9 - */ -package de.staropensource.engine.rendering.callback; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/event/InputEvent.java b/rendering/src/main/java/de/staropensource/engine/rendering/event/InputEvent.java deleted file mode 100644 index b23520787..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/event/InputEvent.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.event; - -import de.staropensource.engine.base.implementable.Event; -import de.staropensource.engine.base.implementable.helper.EventHelper; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.rendering.RenderingSubsystemConfiguration; -import de.staropensource.engine.rendering.type.Window; -import de.staropensource.engine.rendering.type.Key; -import de.staropensource.engine.rendering.type.KeyState; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -/** - * Called when a key or button is pressed. - * - * @since v1-alpha9 - */ -public final class InputEvent implements Event { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha9 - */ - public InputEvent() {} - - /** - * {@inheritDoc} - * @see #callEvent(Window, Key, KeyState) - * @deprecated use {@link #callEvent(Window, Key, KeyState)} - */ - @Deprecated - @Override - public void callEvent() {} - - /** - * Emits the event and calls all event listeners. - * - * @param window window the input originated from. May be {@code null}, depending on the windowing API - * @param key key - * @param state key state - * @since v1-alpha9 - */ - public void callEvent(@Nullable Window window, @NotNull Key key, @NotNull KeyState state) { - if (RenderingSubsystemConfiguration.getInstance().isDebugInput()) - Logger.diag("Got input event: window=" + (window == null ? "\\" : window.getUniqueIdentifier()) + " key=" + key.name() + " state=" + state.name()); - - EventHelper.invokeAnnotatedMethods(getClass(), window, key, state); - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/event/RenderingErrorEvent.java b/rendering/src/main/java/de/staropensource/engine/rendering/event/RenderingErrorEvent.java deleted file mode 100644 index 3925a35a2..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/event/RenderingErrorEvent.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.event; - -import de.staropensource.engine.base.implementable.Event; -import de.staropensource.engine.base.implementable.helper.EventHelper; -import org.jetbrains.annotations.NotNull; - -/** - * Emitted when a rendering error occurs. - * - * @since v1-alpha9 - */ -public final class RenderingErrorEvent implements Event { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha9 - */ - public RenderingErrorEvent() {} - - /** - * {@inheritDoc} - * - * @deprecated use the {@code callEvent} method with arguments - * @see #callEvent(String) - */ - @Deprecated - @Override - public void callEvent() {} - - /** - * Emits the event and calls all event listeners. - * - * @param error error description - * @since v1-alpha9 - */ - public void callEvent(@NotNull String error) { - EventHelper.invokeAnnotatedMethods(getClass(), error); - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/event/RenderingThreadThrowableEvent.java b/rendering/src/main/java/de/staropensource/engine/rendering/event/RenderingThreadThrowableEvent.java deleted file mode 100644 index 3ca7e8bc7..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/event/RenderingThreadThrowableEvent.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.event; - -import de.staropensource.engine.base.implementable.Event; -import de.staropensource.engine.base.implementable.helper.EventHelper; -import org.jetbrains.annotations.NotNull; - -/** - * Emitted when the rendering thread exits due to an unhandled exception. - * - * @since v1-alpha9 - */ -public final class RenderingThreadThrowableEvent implements Event { - /** - * Creates and initializes an instance of this event. - * - * @since v1-alpha9 - */ - public RenderingThreadThrowableEvent() {} - - /** - * {@inheritDoc} - * - * @deprecated use the {@code callEvent} method with arguments - * @see #callEvent(Throwable) - */ - @Deprecated - @Override - public void callEvent() {} - - /** - * Emits the event and calls all event listeners. - * - * @param throwable thrown {@link Throwable} - * @since v1-alpha9 - */ - public void callEvent(@NotNull Throwable throwable) { - EventHelper.invokeAnnotatedMethods(getClass(), throwable); - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/event/package-info.java b/rendering/src/main/java/de/staropensource/engine/rendering/event/package-info.java deleted file mode 100644 index 451dc9f25..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/event/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Events. There's nothing more to say. - * - * @since v1-alpha9 - */ -package de.staropensource.engine.rendering.event; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/exception/NoMonitorsFoundException.java b/rendering/src/main/java/de/staropensource/engine/rendering/exception/NoMonitorsFoundException.java deleted file mode 100644 index aeecdd0c7..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/exception/NoMonitorsFoundException.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.exception; - -/** - * Thrown when trying to access one or more monitors but none are found. - * - * @since v1-alpha9 - */ -public final class NoMonitorsFoundException extends RuntimeException { - /** - * Creates and initializes an instance of this exception. - * - * @since v1-alpha9 - */ - public NoMonitorsFoundException() {} -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/exception/WindowCreationFailureException.java b/rendering/src/main/java/de/staropensource/engine/rendering/exception/WindowCreationFailureException.java deleted file mode 100644 index 522571af2..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/exception/WindowCreationFailureException.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.exception; - -import de.staropensource.engine.rendering.type.Window; -import org.jetbrains.annotations.NotNull; - -/** - * Thrown when a {@link Window} cannot be created. - * - * @since v1-alpha9 - */ -public final class WindowCreationFailureException extends RuntimeException { - /** - * Creates and initializes an instance of this exception. - * - * @since v1-alpha9 - */ - public WindowCreationFailureException() {} - - /** - * Creates and initializes an instance of this exception. - * - * @param message error message - * @since v1-alpha9 - */ - public WindowCreationFailureException(@NotNull String message) { - super(message); - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/exception/package-info.java b/rendering/src/main/java/de/staropensource/engine/rendering/exception/package-info.java deleted file mode 100644 index a847a91d1..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/exception/package-info.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Exceptions for windowing APIs. - *

- * These aren't meant for the windowing subsystem, - * but instead for windowing APIs, which may throw them. - * - * @since v1-alpha9 - */ -package de.staropensource.engine.rendering.exception; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/package-info.java b/rendering/src/main/java/de/staropensource/engine/rendering/package-info.java deleted file mode 100644 index a55ddcaee..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Code of the windowing subsystem. - * - * @since v1-alpha9 - */ -package de.staropensource.engine.rendering; diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/renderer/Renderer.java b/rendering/src/main/java/de/staropensource/engine/rendering/renderer/Renderer.java deleted file mode 100644 index 8a5e22202..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/renderer/Renderer.java +++ /dev/null @@ -1,356 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.renderer; - -import de.staropensource.engine.base.utility.misc.Miscellaneous; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import de.staropensource.engine.rendering.RenderingSubsystem; -import de.staropensource.engine.rendering.RenderingSubsystemConfiguration; -import de.staropensource.engine.rendering.exception.NotOnMainThreadException; -import de.staropensource.engine.rendering.type.FrameHandler; -import lombok.AccessLevel; -import lombok.Getter; -import lombok.Setter; -import org.jetbrains.annotations.NotNull; -import org.lwjgl.bgfx.BGFXInit; - -import java.time.LocalTime; -import java.util.*; - -import static org.lwjgl.bgfx.BGFX.*; - -/** - * Renders all windows out. - * - * @since v1-alpha9 - */ -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Renderer { - /** - * Contains all frame handlers. - *

- * Frame handlers are invoked before - * all windows are rendered, allowing - * the application or game to respond - * to frame renders. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns all frame handlers. - *

- * Frame handlers are invoked before - * all windows are rendered, allowing - * the application or game to respond - * to frame renders. - * - * @return frame handlers - * @since v1-alpha9 - */ - @Getter(value = AccessLevel.PACKAGE) - private static final @NotNull List<@NotNull FrameHandler> frameHandlers = Collections.synchronizedList(new ArrayList<>()); - - /** - * Contains if the renderer has been initialized. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns if the renderer has been initialized. - * - * @return renderer initialized? - * @since v1-alpha9 - */ - @Getter - private static boolean initialized = false; - - /** - * Contains if the renderer is running. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns if the renderer is running. - * - * @return renderer running? - * @since v1-alpha9 - */ - @Getter - private static boolean running = false; - - /** - * Contains the frame count aka. - * the amount of frames rendered. - *

- * Updated every frame. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the frame count aka. - * the amount of frames rendered. - *

- * Updated every frame. - * - * @return amount of frames rendered - * @since v1-alpha9 - * -- SETTER -- - * Sets the frame count aka. - * the amount of frames rendered. - *

- * Updated every frame. - * - * @param frameCount new amount of frames rendered - * @since v1-alpha9 - */ - @Getter - @Setter(value = AccessLevel.PACKAGE) - private static long frameCount = 0L; - - /** - * Contains the delta time. - *

- * Delta time is the time in seconds - * between the last and current frame. - *

- * Updated every frame. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the delta time, also - * known as the render time. - *

- * Delta time is the time in seconds - * between the last and current frame. - *

- * Updated every frame. - * - * @return delta time - * @since v1-alpha9 - * -- SETTER -- - * Sets the delta time, also - * known as the render time. - *

- * Delta time is the time in seconds - * between the last and current frame. - *

- * Updated every frame. - * - * @param deltaTime new delta time - * @since v1-alpha9 - */ - @Getter - @Setter(value = AccessLevel.PACKAGE) - private static double deltaTime = 0d; - - /** - * Contains the frames per second (FPS) count. - *

- * Updated every second. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the frames per second (FPS) count. - *

- * Updated every second. - * - * @return frames per second - * @since v1-alpha9 - * -- SETTER -- - * Sets the frames per second (FPS) count. - *

- * Updated every second. - * - * @param framesPerSecond new frames per second - * @since v1-alpha9 - */ - @Getter - @Setter(value = AccessLevel.PACKAGE) - private static double framesPerSecond = 0d; - - /** - * Contains the time it took - * to calculate the last frame. - *

- * Note: The {@code Waiting} count may be - * negative if the renderer is lagging behind. - * No waiting will be performed internally if - * this count is {@code <0}. - *

- * Updated every frame. - * - * @since v1-alpha9 - * -- GETTER -- - * Contains the time it took - * to calculate the last frame. - *

- * Updated every frame. - * - * @return last frame time - * @since v1-alpha9 - * -- SETTER -- - * Sets the time it took - * to calculate the last frame. - *

- * Updated every frame. - * - * @param lastFrameTime new last frame time - * @since v1-alpha9 - */ - @Getter - @Setter(value = AccessLevel.PACKAGE) - private static Map<@NotNull String, @NotNull Long> lastFrameTime = Collections.unmodifiableMap(new HashMap<>()); - - - // ----> Initialization - /** - * Creates and initializes an - * instance of this class. - * - * @since v1-alpha9 - */ - private Renderer() {} - - /** - * Initializes the renderer. - * - * @since v1-alpha9 - */ - public static void initialize() { - if (initialized) - return; - - addFrameHandler(new FrameHandler() { - @Override - public @NotNull FrameHandler.Priority getPriority() { - return Priority.VERY_IMPORTANT; - } - - @Override - public void run() { - bgfx_set_view_clear(0, BGFX_CLEAR_COLOR | BGFX_CLEAR_DEPTH, 0x00000000, 1.0f, 0); - } - }); - addFrameHandler(new FrameHandler() { - /** {@inheritDoc} */ - @Override - public @NotNull FrameHandler.Priority getPriority() { - return Priority.VERY_UNIMPORTANT; - } - - /** {@inheritDoc} */ - @Override - public void run() { - if (RenderingSubsystemConfiguration.getInstance().isDebugRenderInfo()) { - bgfx_dbg_text_printf(0, 0, 0x0f, "Time: " + NumberUtil.padNumbers(LocalTime.now().getHour(), 2) + ":" + NumberUtil.padNumbers(LocalTime.now().getMinute(), 2) + ":" + NumberUtil.padNumbers(LocalTime.now().getSecond(), 2)); - bgfx_dbg_text_printf(0, 1, 0x0f, "Frames: " + Renderer.getFrameCount()); - bgfx_dbg_text_printf(0, 2, 0x0f, "Frames/s: " + Renderer.getFramesPerSecond()); - bgfx_dbg_text_printf(0, 3, 0x0f, "Delta: " + Renderer.getDeltaTime() + "s"); - bgfx_dbg_text_printf(0, 4, 0x0f, "V-Sync mode: " + RenderingSubsystemConfiguration.getInstance().getVsyncMode().name()); - bgfx_dbg_text_printf(0, 6, 0x0f, "Rendering time:"); - - int offset = 7; - for (String item : lastFrameTime.keySet()) { - bgfx_dbg_text_printf(0, offset, 0x0f, item + ": " + lastFrameTime.get(item) + "ms"); - offset += 1; - } - } - } - }); - - initialized = true; - } - - - // -----> Frame handler management - /** - * Adds the specified frame handler. - * - * @param frameHandler {@link FrameHandler} to add - * @since v1-alpha9 - */ - public static void addFrameHandler(@NotNull FrameHandler frameHandler) { - frameHandlers.add(frameHandler); - frameHandlers.sort(Comparator.comparing(FrameHandler::getPriority)); - } - - /** - * Removes the specified frame handler. - * - * @param frameHandler {@link FrameHandler} to remove - * @since v1-alpha9 - */ - public static void removeFrameHandler(@NotNull FrameHandler frameHandler) { - frameHandlers.remove(frameHandler); - } - - - // -----> Rendering logic - /** - * Starts the renderer. - * - * @throws NotOnMainThreadException if not running on the main thread - * @throws RuntimeException on major rendering error - * @since v1-alpha9 - */ - public static void start() throws RuntimeException { - // Check if running on main thread - if (!Miscellaneous.onMainThread()) - throw new NotOnMainThreadException(); - - String threadName = Thread.currentThread().getName(); - int threadPriority = Thread.currentThread().getPriority(); - RuntimeException exception = null; - - // Update thread - Thread.currentThread().setName("Rendering thread"); - Thread.currentThread().setPriority(Thread.MAX_PRIORITY); - - // Start renderer - running = true; - try { - render(); - } catch (Throwable throwable) { - exception = new RuntimeException("Renderer failed", throwable); - } - - // Revert thread changes - Thread.currentThread().setName(threadName); - Thread.currentThread().setPriority(threadPriority); - - // Throw if necessary - if (exception != null) - throw exception; - } - - /** - * Renders all windows. - * - * @since v1-alpha9 - */ - @SuppressWarnings({ "InfiniteLoopStatement" }) - private static void render() { - while (true) { - RenderingCode.updateWindowStates(); - RenderingCode.resetFrame(); - RenderingCode.invokeFrameHandlers(); - RenderingCode.renderWindows(); - RenderingCode.waitForNextFrame(); - RenderingCode.performPerFrameOperations(); - RenderingCode.performPerSecondOperations(); - } - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/renderer/RenderingCode.java b/rendering/src/main/java/de/staropensource/engine/rendering/renderer/RenderingCode.java deleted file mode 100644 index 68bd78d59..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/renderer/RenderingCode.java +++ /dev/null @@ -1,265 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.renderer; - -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.utility.misc.Miscellaneous; -import de.staropensource.engine.base.utility.misc.NumberUtil; -import de.staropensource.engine.rendering.RenderingSubsystemConfiguration; -import de.staropensource.engine.rendering.type.FrameHandler; -import de.staropensource.engine.rendering.type.Window; -import de.staropensource.engine.rendering.type.VsyncMode; - -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.LinkedList; -import java.util.Map; - -import static org.lwjgl.bgfx.BGFX.*; -import static org.lwjgl.bgfx.BGFX.bgfx_frame; -import static org.lwjgl.glfw.GLFW.glfwPollEvents; - -/** - * Contains the rendering code. - * - * @since v1-alpha9 - */ -@SuppressWarnings("FieldCanBeLocal") -final class RenderingCode { - /** - * Contains the frame count of second ago. - * - * @since v1-alpha9 - */ - private static long previousFrameCount = 0L; - - /** - * Contains the current system time. - *

- * This variable is used for calculations where - * system time is used over multiple instructions, - * potentially allowing unwanted deviations in - * time and therefore the calculations. - * - * @since v1-alpha9 - */ - private static long systemTimeNow; - - /** - * Contains the system time at - * the end of the last frame. - *

- * Used for delta time calculation. - * - * @since v1-alpha9 - */ - private static long systemTimePrevious = System.currentTimeMillis(); - - /** - * Contains a list of delta - * time values over one second. - * - * @since v1-alpha9 - */ - private static final LinkedList deltaTimes = new LinkedList<>(); - - /** - * Contains separate timings in one frame. - * - * @since v1-alpha9 - */ - private static final Map execTimes = new LinkedHashMap<>(); - - /** - * Contains the amount to wait until the next frame is allowed to pass. - * - * @since v1-alpha9 - */ - private static long timesWait; - - /** - * Contains the time to wait until per-second - * operations can be executed again. - * - * @since v1-alpha9 - */ - private static long timesPSO = System.currentTimeMillis() + 1000; - - - /** - * Updates the states of all windows. - * - * @since v1-alpha0 - */ - public static void updateWindowStates() { - for (Window window : Window.getWindows()) - window.updateState(); - } - /** - * Resets all frame data. - * - * @since v1-alpha9 - */ - public static void resetFrame() { - bgfx_dbg_text_clear(0, false); - } - - /** - * Invokes all frame handlers. - * - * @since v1-alpha9 - */ - public static void invokeFrameHandlers() { - for (FrameHandler frameHandler : Renderer.getFrameHandlers()) - execTimes.put("Frame handler '" + frameHandler.getClass().getName() + "'", Miscellaneous.measureExecutionTime(frameHandler::run)); - } - - /** - * Renders all windows out. - * - * @since v1-alpha9 - */ - public static void renderWindows() { - execTimes.put("Rendering", Miscellaneous.measureExecutionTime(() -> { - // Poll for events - glfwPollEvents(); - - // Reset backbuffer - resetBackBuffer(); - - // Render all windows - for (Window window : Window.getWindows()) - if (window.isRendering()) - window.render(); - - // Advance to next frame - bgfx_frame(false); - })); - } - - /** - * Resets bgfx's backbuffer. - * - * @since v1-alpha9 - */ - private static void resetBackBuffer() { - int resetSettings = 0; - - if (RenderingSubsystemConfiguration.getInstance().getVsyncMode() == VsyncMode.ON) - resetSettings |= BGFX_RESET_TRANSPARENT_BACKBUFFER; - - for (Window window : Window.getWindows()) - if (window.isTransparent()) { - resetSettings |= BGFX_RESET_TRANSPARENT_BACKBUFFER; - break; - } - - bgfx_reset( - Window.getWindows().getFirst().getSize().getX(), - Window.getWindows().getFirst().getSize().getY(), - resetSettings, - BGFX_TEXTURE_FORMAT_RGBA4 - ); - } - - /** - * Waits for the next frame. - * - * @since v1-alpha9 - */ - public static void waitForNextFrame() { - execTimes.put("Waiting", 0L); - if (RenderingSubsystemConfiguration.getInstance().getVsyncMode() == VsyncMode.OFF && RenderingSubsystemConfiguration.getInstance().getMaximumFramesPerSecond() > 0) { - execTimes.replace("Waiting", (long) (1d / RenderingSubsystemConfiguration.getInstance().getMaximumFramesPerSecond() * 1000d)); - - for (String time : execTimes.keySet()) - if (!time.equals("Waiting")) - execTimes.replace("Waiting", execTimes.get("Waiting") - execTimes.get(time)); - - // Wait until next frame - if (execTimes.get("Waiting") > 0) { - timesWait = execTimes.get("Waiting") + System.currentTimeMillis(); - - while (System.currentTimeMillis() < timesWait) - Thread.onSpinWait(); - } - } - } - - /** - * Performs per-frame operations. - * - * @since v1-alpha9 - */ - public static void performPerFrameOperations() { - Renderer.setFrameCount(Renderer.getFrameCount() + 1); - Renderer.setLastFrameTime(new HashMap<>(execTimes)); - systemTimeNow = System.currentTimeMillis(); - Renderer.setDeltaTime((double) (systemTimeNow - systemTimePrevious) / 1000); - systemTimePrevious = systemTimeNow; - deltaTimes.add(Renderer.getDeltaTime()); - execTimes.clear(); - } - - /** - * Performs per-second operations. - * - * @since v1-alpha9 - */ - public static void performPerSecondOperations() { - // Perform per-second operations - if (System.currentTimeMillis() >= timesPSO) { - // Calculate FPS count - Renderer.setFramesPerSecond( 1 / NumberUtil.calculateMeanDouble(deltaTimes)); - - // Log frame count - if (RenderingSubsystemConfiguration.getInstance().isDebugFrames()) - Logger.diag("Frames " + previousFrameCount + "-" + Renderer.getFrameCount() + "\n-> Frames/s: " + Renderer.getFramesPerSecond() + "\n-> Delta time: " + Renderer.getDeltaTime()); - - // Log window states - if (RenderingSubsystemConfiguration.getInstance().isDebugWindowStates()) - for (Window window : Window.getWindows()) - Logger.diag( - "Window state for " + window.getUniqueIdentifier() + "\n" + - "-> Terminated: " + window.isTerminated() + "\n" + - "-> Name: " + window.getName() + "\n" + - "-> Title: " + window.getTitle() + "\n" + - "-> Size: " + window.getSize() + "\n" + - " -> Minimum: " + window.getMinimumSize() + "\n" + - " -> Maximum: " + window.getMaximumSize() + "\n" + - "-> Position: " + window.getPosition() + "\n" + - "-> Mode: " + window.getMode() + "\n" + - "-> Resizable: " + window.isResizable() + "\n" + - "-> Borderless: " + window.isBorderless() + "\n" + - "-> Focused: " + window.isFocused() + "\n" + - "-> On top: " + window.isOnTop() + "\n" + - "-> Transparent: " + window.isTransparent() + "\n" + - "-> Rendering: " + window.isRendering() - ); - - - - // Reset per-second variables - previousFrameCount = Renderer.getFrameCount(); - deltaTimes.clear(); - timesPSO = System.currentTimeMillis() + 1000; - } - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/FrameHandler.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/FrameHandler.java deleted file mode 100644 index a0d834ef4..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/FrameHandler.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.type; - -import org.jetbrains.annotations.NotNull; - -/** - * Used for performing actions - * before a frame is rendered. - * - * @since v1-alpha9 - */ -public interface FrameHandler { - /** - * Returns the priority this frame handler has. - * - * @return priority - * @since v1-alpha9 - */ - @NotNull FrameHandler.Priority getPriority(); - - /** - * Invokes this frame handler. - * - * @since v1-alpha9 - */ - void run(); - - /** - * Contains all priority levels - * a {@link FrameHandler} can have. - * - * @since v1-alpha9 - */ - enum Priority { - /** - * {@link FrameHandler}s with - * this priority are called first. - * - * @since v1-alpha9 - */ - VERY_IMPORTANT, - - /** - * {@link FrameHandler}s with - * this priority are called 2nd. - * - * @since v1-alpha9 - */ - IMPORTANT, - - /** - * {@link FrameHandler}s with - * this priority are called 3rd. - * - * @since v1-alpha9 - */ - DEFAULT, - - /** - * {@link FrameHandler}s with - * this priority are called 4th. - * - * @since v1-alpha9 - */ - UNIMPORTANT, - - /** - * {@link FrameHandler}s with - * this priority are called last. - * - * @since v1-alpha9 - */ - VERY_UNIMPORTANT, - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/Key.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/Key.java deleted file mode 100644 index db034a965..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/Key.java +++ /dev/null @@ -1,758 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.type; - -/** - * Contains a list of keys which can be recognized by the engine. - * - * @since v1-alpha9 - */ -public enum Key { - /** - * An unknown key. - * - * @since v1-alpha9 - */ - UNKNOWN_KEY, - /** - * An unknown mouse button. - * - * @since v1-alpha9 - */ - UNKNOWN_MOUSE_BUTTON, - - /** - * The left mouse button. - * - * @since v1-alpha9 - */ - MOUSE_LEFT, - /** - * The middle mouse button. - * - * @since v1-alpha9 - */ - MOUSE_MIDDLE, - /** - * The right mouse button. - * - * @since v1-alpha9 - */ - MOUSE_RIGHT, - - /** - * The {@code ALT} modifier key. - * - * @since v1-alpha9 - */ - ALT, - /** - * The {@code '} key. - * - * @since v1-alpha9 - */ - APOSTROPHE, - /** - * The {@code DOWN} arrow key. - * - * @since v1-alpha9 - */ - ARROW_DOWN, - /** - * The {@code LEFT} arrow key. - * - * @since v1-alpha9 - */ - ARROW_LEFT, - /** - * The {@code RIGHT} arrow key. - * - * @since v1-alpha9 - */ - ARROW_RIGHT, - /** - * The {@code UP} arrow key. - * - * @since v1-alpha9 - */ - ARROW_UP, - /** - * The {@code \} key. - * - * @since v1-alpha9 - */ - BACKSLASH, - /** - * The {@code BACKSPACE} key. - * - * @since v1-alpha9 - */ - BACKSPACE, - /** - * The left {@code [} key. - * - * @since v1-alpha9 - */ - BRACKET_LEFT, - /** - * The right {@code ]} key. - * - * @since v1-alpha9 - */ - BRACKET_RIGHT, - /** - * THE {@code CAPSLOCK} KEY. - * - * @since v1-alpha9 - */ - CAPS_LOCK, - /** - * The {@code ,} key. - * - * @since v1-alpha9 - */ - COMMA, - /** - * The left {@code CTRL} modifier key. - * - * @since v1-alpha9 - */ - CONTROL_LEFT, - /** - * The right {@code CTRL} modifier key. - * - * @since v1-alpha9 - */ - CONTROL_RIGHT, - /** - * The {@code DEL} key. - * - * @since v1-alpha9 - */ - DELETE, - /** - * The {@code END} key. - * - * @since v1-alpha9 - */ - END, - /** - * The {@code ENTER} key. - * - * @since v1-alpha9 - */ - ENTER, - /** - * The {@code =} key. - * - * @since v1-alpha9 - */ - EQUAL, - /** - * The {@code ESC} key. - * - * @since v1-alpha9 - */ - ESCAPE, - /** - * The {@code F1} key. - * - * @since v1-alpha9 - */ - FUNCTION_1, - /** - * The {@code F2} key. - * - * @since v1-alpha9 - */ - FUNCTION_2, - /** - * The {@code F3} key. - * - * @since v1-alpha9 - */ - FUNCTION_3, - /** - * The {@code F4} key. - * - * @since v1-alpha9 - */ - FUNCTION_4, - /** - * The {@code F5} key. - * - * @since v1-alpha9 - */ - FUNCTION_5, - /** - * The {@code F6} key. - * - * @since v1-alpha9 - */ - FUNCTION_6, - /** - * The {@code F7} key. - * - * @since v1-alpha9 - */ - FUNCTION_7, - /** - * The {@code F8} key. - * - * @since v1-alpha9 - */ - FUNCTION_8, - /** - * The {@code F9} key. - * - * @since v1-alpha9 - */ - FUNCTION_9, - /** - * The {@code F10} key. - * - * @since v1-alpha9 - */ - FUNCTION_10, - /** - * The {@code F11} key. - * - * @since v1-alpha9 - */ - FUNCTION_11, - /** - * The {@code F12} key. - * - * @since v1-alpha9 - */ - FUNCTION_12, - /** - * The {@code F13} key. - * - * @since v1-alpha9 - */ - FUNCTION_13, - /** - * The {@code F14} key. - * - * @since v1-alpha9 - */ - FUNCTION_14, - /** - * The {@code F15} key. - * - * @since v1-alpha9 - */ - FUNCTION_15, - /** - * The {@code F16} key. - * - * @since v1-alpha9 - */ - FUNCTION_16, - /** - * The {@code F17} key. - * - * @since v1-alpha9 - */ - FUNCTION_17, - /** - * The {@code F18} key. - * - * @since v1-alpha9 - */ - FUNCTION_18, - /** - * The {@code F19} key. - * - * @since v1-alpha9 - */ - FUNCTION_19, - /** - * The {@code F20} key. - * - * @since v1-alpha9 - */ - FUNCTION_20, - /** - * The {@code F21} key. - * - * @since v1-alpha9 - */ - FUNCTION_21, - /** - * The {@code F22} key. - * - * @since v1-alpha9 - */ - FUNCTION_22, - /** - * The {@code F23} key. - * - * @since v1-alpha9 - */ - FUNCTION_23, - /** - * The {@code F24} key. - * - * @since v1-alpha9 - */ - FUNCTION_24, - /** - * The {@code F25} key. - * - * @since v1-alpha9 - */ - FUNCTION_25, - /** - * The {@code `} key. - * - * @since v1-alpha9 - */ - GRAVE, - /** - * The {@code HOME} key. - * - * @since v1-alpha9 - */ - HOME, - /** - * THe {@code INS} key. - * - * @since v1-alpha9 - */ - INSERT, - /** - * The {@code +} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_ADD, - /** - * The {@code -} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_DECIMAL, - /** - * The {@code /} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_DIVIDE, - /** - * The {@code ENTER} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_ENTER, - /** - * The {@code =} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_EQUAL, - /** - * The {@code *} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_MULTIPLY, - /** - * The number {@code 0} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_NUMBER_0, - /** - * The number {@code 1} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_NUMBER_1, - /** - * The number {@code 2} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_NUMBER_2, - /** - * The number {@code 3} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_NUMBER_3, - /** - * The number {@code 4} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_NUMBER_4, - /** - * The number {@code 5} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_NUMBER_5, - /** - * The number {@code 6} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_NUMBER_6, - /** - * The number {@code 7} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_NUMBER_7, - /** - * The number {@code 8} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_NUMBER_8, - /** - * The number {@code 9} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_NUMBER_9, - /** - * The {@code -} key on your keypad. - * - * @since v1-alpha9 - */ - KEYPAD_SUBTRACT, - /** - * The letter {@code A} key. - * - * @since v1-alpha9 - */ - LETTER_A, - /** - * The letter {@code B} key. - * - * @since v1-alpha9 - */ - LETTER_B, - /** - * The letter {@code C} key. - * - * @since v1-alpha9 - */ - LETTER_C, - /** - * The letter {@code D} key. - * - * @since v1-alpha9 - */ - LETTER_D, - /** - * The letter {@code E} key. - * - * @since v1-alpha9 - */ - LETTER_E, - /** - * The letter {@code F} key. - * - * @since v1-alpha9 - */ - LETTER_F, - /** - * The letter {@code G} key. - * - * @since v1-alpha9 - */ - LETTER_G, - /** - * The letter {@code H} key. - * - * @since v1-alpha9 - */ - LETTER_H, - /** - * The letter {@code I} key. - * - * @since v1-alpha9 - */ - LETTER_I, - /** - * The letter {@code J} key. - * - * @since v1-alpha9 - */ - LETTER_J, - /** - * The letter {@code K} key. - * - * @since v1-alpha9 - */ - LETTER_K, - /** - * The letter {@code L} key. - * - * @since v1-alpha9 - */ - LETTER_L, - /** - * The letter {@code M} key. - * - * @since v1-alpha9 - */ - LETTER_M, - /** - * The letter {@code N} key. - * - * @since v1-alpha9 - */ - LETTER_N, - /** - * The letter {@code O} key. - * - * @since v1-alpha9 - */ - LETTER_O, - /** - * The letter {@code P} key. - * - * @since v1-alpha9 - */ - LETTER_P, - /** - * The letter {@code Q} key. - * - * @since v1-alpha9 - */ - LETTER_Q, - /** - * The letter {@code R} key. - * - * @since v1-alpha9 - */ - LETTER_R, - /** - * The letter {@code S} key. - * - * @since v1-alpha9 - */ - LETTER_S, - /** - * The letter {@code T} key. - * - * @since v1-alpha9 - */ - LETTER_T, - /** - * The letter {@code U} key. - * - * @since v1-alpha9 - */ - LETTER_U, - /** - * The letter {@code V} key. - * - * @since v1-alpha9 - */ - LETTER_V, - /** - * The letter {@code W} key. - * - * @since v1-alpha9 - */ - LETTER_W, - /** - * The letter {@code X} key. - * - * @since v1-alpha9 - */ - LETTER_X, - /** - * The letter {@code Y} key. - * - * @since v1-alpha9 - */ - LETTER_Y, - /** - * The letter {@code Z} key. - * - * @since v1-alpha9 - */ - LETTER_Z, - /** - * The {@code MENU} key, which brings up the right click menu. - * - * @since v1-alpha9 - */ - MENU, - /** - * The {@code META} key, also known as the {@code SUPER} key. - *

- * Windows users will recognize this key as the Windows key. - * - * @since v1-alpha9 - */ - META, - /** - * The {@code -} key. - * - * @since v1-alpha9 - */ - MINUS, - /** - * The number {@code 0}. - * - * @since v1-alpha9 - */ - NUMBER_0, - /** - * The number {@code 1}. - * - * @since v1-alpha9 - */ - NUMBER_1, - /** - * The number {@code 2}. - * - * @since v1-alpha9 - */ - NUMBER_2, - /** - * The number {@code 3}. - * - * @since v1-alpha9 - */ - NUMBER_3, - /** - * The number {@code 4}. - * - * @since v1-alpha9 - */ - NUMBER_4, - /** - * The number {@code 5}. - * - * @since v1-alpha9 - */ - NUMBER_5, - /** - * The number {@code 6}. - * - * @since v1-alpha9 - */ - NUMBER_6, - /** - * The number {@code 7}. - * - * @since v1-alpha9 - */ - NUMBER_7, - /** - * The number {@code 8}. - * - * @since v1-alpha9 - */ - NUMBER_8, - /** - * The number {@code 9}. - * - * @since v1-alpha9 - */ - NUMBER_9, - /** - * The {@code NUM} key. - * - * @since v1-alpha9 - */ - NUM_LOCK, - /** - * The {@code PAGE DOWN} key. - * - * @since v1-alpha9 - */ - PAGE_DOWN, - /** - * The {@code PAGE UP} key. - * - * @since v1-alpha9 - */ - PAGE_UP, - /** - * The {@code PAUSE} key. - * - * @since v1-alpha9 - */ - PAUSE, - /** - * The {@code .} key. - * - * @since v1-alpha9 - */ - PERIOD, - /** - * The {@code PRINT} key. - * - * @since v1-alpha9 - */ - PRINT, - /** - * The {@code SCROLL} key. - * - * @since v1-alpha9 - */ - SCROLL_LOCK, - /** - * The {@code ;} key. - * - * @since v1-alpha9 - */ - SEMICOLON, - /** - * The left {@code SHIFT} modifier key. - * - * @since v1-alpha9 - */ - SHIFT_LEFT, - /** - * The right {@code SHIFT} modifier key. - * - * @since v1-alpha9 - */ - SHIFT_RIGHT, - /** - * The {@code /} key. - * - * @since v1-alpha9 - */ - SLASH, - /** - * The {@code ENTER} key. - * - * @since v1-alpha9 - */ - SPACE, - /** - * The {@code TAB} key. - * - * @since v1-alpha9 - */ - TAB, -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/Platform.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/Platform.java deleted file mode 100644 index 1d3fadb88..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/Platform.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.type; - -/** - * Represents all available platforms. - * - * @since v1-alpha9 - */ -public enum Platform { - /** - * Allows GLFW to autodetect the platform to use. - * - * @since v1-alpha9 - */ - ANY, - - /** - * Prefer initializing with the Wayland platform. - * - * @since v1-alpha9 - */ - WAYLAND, - - /** - * Prefer initializing with the X11 platform. - * - * @since v1-alpha9 - */ - X11, - - /** - * Prefer initializing with the Win32 platform. - * - * @since v1-alpha9 - */ - WIN32, - - /** - * Prefer initializing with the Cocoa platform. - * - * @since v1-alpha9 - */ - COCOA, - - /** - * Prefer initializing headless. - * - * @since v1-alpha9 - */ - NONE -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/Renderer.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/Renderer.java deleted file mode 100644 index 703e4b62c..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/Renderer.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.type; - -/** - * Represents all available renderers. - * - * @since v1-alpha9 - */ -public enum Renderer { - /** - * Allows the bgfx to autodetect the renderer to use. - * - * @since v1-alpha9 - */ - ANY, - - /** - * Tells bgfx to use AGC for rendering. - * - * @since v1-alpha9 - */ - AGC, - - /** - * Tells bgfx to use Direct 3D 11 for rendering. - * - * @since v1-alpha9 - */ - DIRECT3D_11, - - /** - * Tells bgfx to use Direct 3D 12 for rendering. - * - * @since v1-alpha9 - */ - DIRECT3D_12, - - /** - * Tells bgfx to use GNM for rendering. - * - * @since v1-alpha9 - */ - GNM, - - /** - * Tells bgfx to use Metal for rendering. - * - * @since v1-alpha9 - */ - METAL, - - /** - * Tells bgfx to use NVM for rendering. - * - * @since v1-alpha9 - */ - NVM, - - /** - * Tells bgfx to use OpenGL for rendering. - * - * @since v1-alpha9 - */ - OPENGL, - - /** - * Tells bgfx to use OpenGL ES for rendering. - * - * @since v1-alpha9 - */ - OPENGL_ES, - - /** - * Tells bgfx to use Vulkan for rendering. - * - * @since v1-alpha9 - */ - VULKAN, -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/VsyncMode.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/VsyncMode.java deleted file mode 100644 index f32171013..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/VsyncMode.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.type; - -import de.staropensource.engine.rendering.RenderingSubsystemConfiguration; - -/** - * Controls how V-Sync operates. - * - * @since v1-alpha9 - */ -public enum VsyncMode { - /** - * Disables V-Sync. The frame rate will be uncapped and will allow - * for processing an unlimited amount of frames (if not limited by - * {@link RenderingSubsystemConfiguration#maximumFramesPerSecond}). - * - * @since v1-alpha9 - */ - OFF, - - /** - * Enables V-Sync and will cap the window's frame rate - * at the refresh rate of the target monitor. - * - * @since v1-alpha9 - */ - ON -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/Window.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/Window.java deleted file mode 100644 index cc83acf94..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/Window.java +++ /dev/null @@ -1,1674 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.rendering.type; - -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.Tristate; -import de.staropensource.engine.base.type.vector.Vec2i; -import de.staropensource.engine.base.utility.misc.Miscellaneous; -import de.staropensource.engine.base.utility.misc.TypeConversion; -import de.staropensource.engine.rendering.RenderingSubsystemConfiguration; -import de.staropensource.engine.rendering.callback.KeyCallback; -import de.staropensource.engine.rendering.callback.MouseButtonCallback; -import de.staropensource.engine.rendering.event.InputEvent; -import de.staropensource.engine.rendering.exception.NotOnMainThreadException; -import de.staropensource.engine.rendering.exception.WindowCreationFailureException; -import lombok.AccessLevel; -import lombok.Getter; -import lombok.Setter; -import org.jetbrains.annotations.ApiStatus; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; -import org.lwjgl.bgfx.BGFXInit; -import org.lwjgl.glfw.*; -import org.lwjgl.stb.STBImage; -import org.lwjgl.system.MemoryStack; - -import java.io.Closeable; -import java.nio.ByteBuffer; -import java.nio.DoubleBuffer; -import java.nio.IntBuffer; -import java.nio.file.Path; -import java.util.*; - -import static org.lwjgl.bgfx.BGFX.*; -import static org.lwjgl.glfw.GLFW.*; -import static org.lwjgl.system.MemoryStack.*; -import static org.lwjgl.system.MemoryUtil.*; - -/** - * Abstract class for implementing windows in a windowing API. - *

- * Note that many window properties may be overridden by any - * window manager or compositor. Make sure to poll for changes - * in {@link #updateState()}. - * - * @since v1-alpha9 - */ -@Getter -@SuppressWarnings({ "unused", "JavadocDeclaration" }) -public final class Window implements Closeable { - // -----> Static variables - /** - * A set of all active windows. - * - * @since v1-alpha9 - */ - private static final @NotNull List<@NotNull Window> windows = new ArrayList<>(); - - - // -----> Instance variables - /** - * Contains the unique window identifier. - *

- * This identifier is unique to every window and does not change during runtime. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the unique window identifier. - *

- * This identifier is unique to every window and does not change during runtime. - * - * @return unique identifier - * @since v1-alpha9 - */ - private final UUID uniqueIdentifier = UUID.randomUUID(); - - /** - * Contains if this window can be interacted with or not. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns if this window can be interacted with or not. - * - * @return closed flag state - * @since v1-alpha9 - * -- SETTER -- - * Sets if this window can be interacted with or not. - * - * @param closed new closed flag state - * @since v1-alpha9 - */ - @Setter(AccessLevel.PROTECTED) - private boolean terminated = false; - - /** - * Contains if this window is fresh. - *

- * Only enabled during the window's - * initialization phase to prevent - * crashes and segmentation faults. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns if this window is fresh. - *

- * Only enabled during the window's - * initialization phase to prevent - * crashes and segmentation faults. - * - * @return fresh flag state - * @since v1-alpha9 - */ - @Getter(value = AccessLevel.NONE) - @Setter(value = AccessLevel.NONE) - private boolean fresh = true; - - /** - * Contains if to reinitialize this - * window on the next state update. - * - * @since v1-alpha9 - */ - @Getter(value = AccessLevel.NONE) - @Setter(value = AccessLevel.NONE) - private boolean reinitialize = false; - - /** - * Contains the internal GLFW window identifier. - * - * @since v1-alpha9 - */ - @Getter(value = AccessLevel.NONE) - @Setter(value = AccessLevel.NONE) - private long internalWindowIdentifier = 0L; - - /** - * Contains the internal bgfx view identifier. - * - * @since v1-alpha9 - */ - @Getter(value = AccessLevel.NONE) - @Setter(value = AccessLevel.NONE) - private int internalViewIdentifier = 0; - - /** - * Contains queued window property updates. - * - * @since v1-release0 - */ - @Getter(value = AccessLevel.NONE) - @Setter(value = AccessLevel.NONE) - private final @NotNull Map<@NotNull String, @NotNull Object> queuedPropertyUpdates = new HashMap<>(); - - /** - * Contains the name of this window. - *

- * Window names should: - *

    - *
  • be lowercase,
  • - *
  • be simple,
  • - *
  • be not very long,
  • - *
  • only contain letters, numbers, hyphens and dots, and
  • - *
  • represent the name of your application and window purpose (if your application supports multiple windows)
  • - *
- *

- * On some platforms this may be used for window identification. - * A prime example of this is X11 and Wayland, where window - * managers and compositors can use this information to identify - * windows and customize them. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the name of this window. - *

- * Window names should: - *

    - *
  • be lowercase,
  • - *
  • be simple,
  • - *
  • be not very long,
  • - *
  • only contain letters, numbers, hyphens and dots, and
  • - *
  • represent the name of your application and window purpose (if your application supports multiple windows)
  • - *
- *

- * On some platforms this may be used for window identification. - * A prime example of this is X11 and Wayland, where window - * managers and compositors can use this information to identify - * windows and customize them. - * - * @return window title - * @since v1-alpha9 - */ - private String name; - - /** - * Contains the title of this window. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the window title. - * - * @return window title - * @since v1-alpha9 - */ - private String title; - - /** - * Contains file paths to window - * icons in the PNG format. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns file paths to window - * icons in the PNG format. - * - * @return file paths to icons - * @since v1-alpha9 - */ - private @NotNull Path [] icons; - - /** - * Contains the size of this window. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the window size. - * - * @return window size - * @since v1-alpha9 - */ - private Vec2i size; - - /** - * Contains the minimum size of this window. - *

- * If set to {@code -1}, will enforce no minimum window size. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the minimum window size. - *

- * If set to {@code -1}, will enforce no minimum window size. - * - * @return minimum window size - * @since v1-alpha9 - */ - private Vec2i minimumSize; - - /** - * Contains the maximum size of this window. - *

- * If set to {@code -1}, will enforce no maximum window size. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the maximum window size. - *

- * If set to {@code -1}, will enforce no maximum window size. - * - * @return maximum window size - * @since v1-alpha9 - */ - private Vec2i maximumSize; - - /** - * Contains the position of this window. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the window position. - * - * @return window position - * @since v1-alpha9 - */ - private Vec2i position; - - /** - * Contains in which {@link Mode} this window is in. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns the window mode. - * - * @return window mode - * @since v1-alpha9 - */ - private Window.Mode mode; - - /** - * Contains if this window can be resized by the user. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns if the window is resizable. - * - * @return resizable flag state - * @since v1-alpha9 - */ - private boolean resizable; - - /** - * Contains if this window should have a border and decorations. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns if the window should be rendered without any decorations. - * - * @return borderless flag state - * @since v1-alpha9 - */ - private boolean borderless; - - /** - * Contains if the window is focused. - * -- GETTER -- - * Returns if the window is focused. - * - * @return focusable flag state - * @since v1-alpha9 - */ - private boolean focused; - - /** - * Contains if this window should be displayed on top of all other windows. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns if the window is displayed over regular windows. - * - * @return on top flag state - * @since v1-alpha9 - */ - private boolean onTop; - - /** - * Enables or disables transparency support for this window. - *

- * Availability depends on the windowing API, compositor or - * window manager and potentially system settings. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns if the window can be transparent. - *

- * Availability depends on the windowing API, compositor or - * window manager and potentially system settings. - * - * @return transparency flag state - * @since v1-alpha9 - */ - private boolean transparent; - - /** - * Contains if this window should be rendered. - * - * @since v1-alpha9 - * -- GETTER -- - * Returns if the window should be rendered. - * - * @return rendering flag state - * @since v1-alpha9 - * -- SETTER -- - * Sets if the window should be rendered. - * - * @param rendering new rendering flag state - * @since v1-alpha9 - */ - @Setter - private boolean rendering; - - /** - * Contains the {@link GLFWKeyCallback} used - * for emitting {@link InputEvent}s. - * - * @since v1-alpha9 - */ - @Getter(value = AccessLevel.NONE) - private GLFWKeyCallback keyCallback; - - /** - * Contains the {@link GLFWMouseButtonCallback} used - * for emitting {@link InputEvent}s. - * - * @since v1-alpha9 - */ - @Getter(value = AccessLevel.NONE) - private GLFWMouseButtonCallback mouseButtonCallback; - - - // -----> Static methods - /** - * Returns a set of active windows. - * - * @return active windows - * @since v1-alpha9 - */ - public static @NotNull List<@NotNull Window> getWindows() { - return Collections.unmodifiableList(windows); - } - - - // -----> Creation - /** - * Creates and initializes an - * instance of this abstract class. - * - * @throws NotOnMainThreadException if not running on the main thread - * @since v1-alpha9 - */ - private Window() {} - - /** - * Finishes the window creation phase. - * - * @since v1-alpha9 - */ - private void finishWindowCreation() { - Logger.verb( - "Created new window " + uniqueIdentifier + "\n" + - "-> Name: " + name + "\n" + - "-> Title: " + title + "\n" + - "-> Size: " + size + "\n" + - " -> Minimum: " + minimumSize + "\n" + - " -> Maximum: " + maximumSize + "\n" + - "-> Position: " + position + "\n" + - "-> Mode: " + mode + "\n" + - "-> Resizable: " + resizable + "\n" + - "-> Borderless: " + borderless + "\n" + - "-> On top: " + onTop + "\n" + - "-> Transparent: " + transparent + "\n" + - "-> Rendering: " + rendering - ); - - // Initialize window - initializeWindow(); - - // Update state - updateState(); - - // Initialize bgfx - initializeBgfx(); - - // Declare window as ready - windows.add(this); - fresh = false; - } - - - // -----> Initialization - /** - * Triggers a window reinitialization - * in the next state update. - * - * @since v1-alpha9 - */ - private void triggerReinitialization() { - if (!fresh && !reinitialize) - reinitialize = true; - } - - /** - * Initializes this window. - * - * @throws NotOnMainThreadException if not running on the main thread - * @since v1-alpha9 - */ - private void initializeWindow() throws NotOnMainThreadException { - // Ensure running on the main thread - if (!Miscellaneous.onMainThread()) - throw new NotOnMainThreadException(); - - // Destroy existing window - if (!fresh) - closeInternal(); - - // Set window hints - glfwWindowHint(GLFW_POSITION_X, position.getX()); - glfwWindowHint(GLFW_POSITION_Y, position.getY()); - glfwWindowHint(GLFW_CENTER_CURSOR, GLFW_FALSE); - glfwWindowHint(GLFW_FOCUSED, GLFW_TRUE); - glfwWindowHint(GLFW_FOCUS_ON_SHOW, GLFW_TRUE); - glfwWindowHint(GLFW_AUTO_ICONIFY, GLFW_FALSE); - glfwWindowHint(GLFW_DECORATED, TypeConversion.booleanToInteger(!borderless)); - glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); // we want to use bgfx - glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_FALSE); - glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, TypeConversion.booleanToInteger(transparent)); - glfwWindowHintString(GLFW_WAYLAND_APP_ID, name); - glfwWindowHintString(GLFW_X11_CLASS_NAME, name); - glfwWindowHintString(GLFW_X11_INSTANCE_NAME, name); - - // Create window - internalWindowIdentifier = glfwCreateWindow(size.getX(), size.getY(), "", NULL, NULL); - if (internalWindowIdentifier == NULL) - throw new WindowCreationFailureException(); - - // Create callbacks - keyCallback = GLFWKeyCallback.create(new KeyCallback(this)); - mouseButtonCallback = GLFWMouseButtonCallback.create(new MouseButtonCallback(this)); - - // Set callback - glfwSetKeyCallback(internalWindowIdentifier, keyCallback); - glfwSetMouseButtonCallback(internalWindowIdentifier, mouseButtonCallback); - } - - /** - * Initializes bgfx. - * - * @since v1-alpha9 - */ - private void initializeBgfx() { - // Ensure the window is not terminated - if (terminated) - return; - - try (MemoryStack stack = stackPush()) { - Logger.verb("Initializing bgfx"); - - // Initialize BGFXInit struct - Logger.diag("Initializing BGFXInit struct"); - BGFXInit init = BGFXInit.calloc(stack); - bgfx_init_ctor(init); - - // Set renderer - if (glfwGetPlatform() == GLFW_PLATFORM_NULL) - init.type(BGFX_RENDERER_TYPE_NOOP); - else - switch (RenderingSubsystemConfiguration.getInstance().getInitialRenderer()) { - case ANY -> {} - case AGC -> init.type(BGFX_RENDERER_TYPE_AGC); - case DIRECT3D_11 -> init.type(BGFX_RENDERER_TYPE_DIRECT3D11); - case DIRECT3D_12 -> init.type(BGFX_RENDERER_TYPE_DIRECT3D12); - case GNM -> init.type(BGFX_RENDERER_TYPE_GNM); - case METAL -> init.type(BGFX_RENDERER_TYPE_METAL); - case NVM -> init.type(BGFX_RENDERER_TYPE_NVN); - case OPENGL -> init.type(BGFX_RENDERER_TYPE_OPENGL); - case OPENGL_ES -> init.type(BGFX_RENDERER_TYPE_OPENGLES); - case VULKAN -> init.type(BGFX_RENDERER_TYPE_VULKAN); - } - - // Set adapter - Logger.diag("Setting adapter"); - init.vendorId(switch (RenderingSubsystemConfiguration.getInstance().getInitialAdapter()) { - case ANY -> BGFX_PCI_ID_NONE; - case SOFTWARE -> BGFX_PCI_ID_SOFTWARE_RASTERIZER; - case AMD -> BGFX_PCI_ID_AMD; - case APPLE -> BGFX_PCI_ID_APPLE; - case INTEL -> BGFX_PCI_ID_INTEL; - case NVIDIA -> BGFX_PCI_ID_NVIDIA; - case MICROSOFT -> BGFX_PCI_ID_MICROSOFT; - }); - - // Set initial resolution - Logger.diag("Setting initial resolution"); - init - .resolution( - it -> it - .width(size.getX()) - .height(size.getY()) - .reset(BGFX_RESET_NONE) - ); - - // Determine platform to render for - Logger.diag("Setting platform"); - switch (glfwGetPlatform()) { - case GLFW_PLATFORM_X11 -> init - .platformData() - .ndt(GLFWNativeX11.glfwGetX11Display()) - .nwh(GLFWNativeX11.glfwGetX11Window(internalWindowIdentifier)); - case GLFW_PLATFORM_WAYLAND -> init - .platformData() - .ndt(GLFWNativeWayland.glfwGetWaylandDisplay()) - .nwh(GLFWNativeWayland.glfwGetWaylandWindow(internalWindowIdentifier)); - case GLFW_PLATFORM_WIN32 -> init - .platformData() - .nwh(GLFWNativeWin32.glfwGetWin32Window(internalWindowIdentifier)); - case GLFW_PLATFORM_COCOA -> init - .platformData() - .nwh(GLFWNativeCocoa.glfwGetCocoaWindow(internalWindowIdentifier)); - default -> Logger.crash("Invalid GLFW platform \"" + glfwGetPlatform() + "\""); - } - - // Initialize bgfx - Logger.diag("Invoking bgfx_init"); - if (!bgfx_init(init)) - Logger.crash("Unable to initialize bgfx"); - - bgfx_set_debug(BGFX_DEBUG_TEXT); - } catch (UnsatisfiedLinkError error) { - Logger.crash("Failed to load LWJGL native libraries", error); - } - } - - /** - * Updates the state of this window. - *

- * Do not call this method manually or you - * may cause unintended side effects. - * - * @throws NotOnMainThreadException if not running on the main thread - * @since v1-alpha9 - */ - public void updateState() throws NotOnMainThreadException { - // Ensure the window is not terminated - if (terminated) - return; - - // Ensure running on the main thread - if (!Miscellaneous.onMainThread()) - throw new NotOnMainThreadException(); - - if (reinitialize) { - reinitialize = false; - initializeWindow(); - } - - - // Update basic properties - // -> Title - if (queuedPropertyUpdates.containsKey("title")) glfwSetWindowTitle(internalWindowIdentifier, (String) queuedPropertyUpdates.get("title")); - else title = glfwGetWindowTitle(internalWindowIdentifier); - // -> Minimum & maximum size - glfwSetWindowSizeLimits(internalWindowIdentifier, minimumSize.getX(), minimumSize.getY(), maximumSize.getX(), maximumSize.getY()); - - - // Update window mode - if (queuedPropertyUpdates.containsKey("mode")) - switch ((Mode) queuedPropertyUpdates.get("mode")) { - case HIDDEN -> glfwHideWindow(internalWindowIdentifier); - case WINDOWED -> { - glfwShowWindow(internalWindowIdentifier); - glfwRestoreWindow(internalWindowIdentifier); - } - case MINIMIZED -> { - glfwShowWindow(internalWindowIdentifier); - glfwIconifyWindow(internalWindowIdentifier); - } - case MAXIMIZED -> { - glfwShowWindow(internalWindowIdentifier); - glfwMaximizeWindow(internalWindowIdentifier); - } - } - else - if (!TypeConversion.integerToBoolean(glfwGetWindowAttrib(internalWindowIdentifier, GLFW_VISIBLE))) - mode = Mode.HIDDEN; - if (TypeConversion.integerToBoolean(glfwGetWindowAttrib(internalWindowIdentifier, GLFW_ICONIFIED))) - mode = Mode.MINIMIZED; - else if (TypeConversion.integerToBoolean(glfwGetWindowAttrib(internalWindowIdentifier, GLFW_MAXIMIZED))) - mode = Mode.MAXIMIZED; - else - mode = Mode.WINDOWED; - - - // Update size and position - try (MemoryStack stack = stackPush()) { - IntBuffer width = stack.mallocInt(3); - IntBuffer height = stack.mallocInt(3); - - if (queuedPropertyUpdates.containsKey("size")) { - width.put(((Vec2i) queuedPropertyUpdates.get("size")).getX()); - height.put(((Vec2i) queuedPropertyUpdates.get("size")).getY()); - // TODO - if (!fresh) - glfwSetWindowSize(internalWindowIdentifier, width.get(), height.get()); - } else { - glfwGetWindowSize(internalWindowIdentifier, width, height); - size = new Vec2i(width.get(), height.get()); - } - - if (RenderingSubsystemConfiguration.getInstance().isDebugAllowPositionUpdates() && queuedPropertyUpdates.containsKey("position")) { - width.put(((Vec2i) queuedPropertyUpdates.get("position")).getX()); - height.put(((Vec2i) queuedPropertyUpdates.get("position")).getY()); - glfwSetWindowPos(internalWindowIdentifier, width.get(), height.get()); - } else { - glfwGetWindowPos(internalWindowIdentifier, width, height); - position = new Vec2i(width.get(), height.get()); - } - } - - // Update booleans - // -> Resizable - if (queuedPropertyUpdates.containsKey("resizable")) - glfwSetWindowAttrib(internalWindowIdentifier, GLFW_RESIZABLE, TypeConversion.booleanToInteger((Boolean) queuedPropertyUpdates.get("resizable"))); - else - resizable = TypeConversion.integerToBoolean(glfwGetWindowAttrib(internalWindowIdentifier, GLFW_RESIZABLE)); - // -> Focused - focused = TypeConversion.integerToBoolean(glfwGetWindowAttrib(internalWindowIdentifier, GLFW_FOCUSED)); - // -> On top - if (queuedPropertyUpdates.containsKey("onTop")) - glfwSetWindowAttrib(internalWindowIdentifier, GLFW_FLOATING, TypeConversion.booleanToInteger((Boolean) queuedPropertyUpdates.get("onTop"))); - else - onTop = TypeConversion.integerToBoolean(glfwGetWindowAttrib(internalWindowIdentifier, GLFW_FLOATING)); - - // Clear property updates queue - queuedPropertyUpdates.clear(); - } - - /** - * Renders this window. - *

- * Do not call this method manually or you - * may cause unintended side effects. - * - * @throws NotOnMainThreadException if not running on the main thread - * @since v1-alpha9 - */ - public void render() throws NotOnMainThreadException { - // Ensure the window is not terminated - if (terminated) - return; - - // Ensure rendering is enabled - if (!isRendering()) - return; - - bgfx_set_view_rect(0, 0, 0, size.getX(), size.getY()); - } - - /** - * Terminates the window, making it unable to be interacted with. - * - * @since v1-alpha9 - */ - public void close() throws NotOnMainThreadException { - // Ensure running on the main thread - if (!Miscellaneous.onMainThread()) - throw new NotOnMainThreadException(); - - // Ensure the window is not terminated - if (terminated) - return; - - windows.remove(this); - terminated = true; - closeInternal(); - } - - /** - * Terminates the window without affecting it's state. - * For internal use only. - * - * @throws NotOnMainThreadException if not running on the main thread - * @since v1-alpha9 - */ - private void closeInternal() { - // Terminate bgfx - if (glfwGetPlatform() != GLFW_PLATFORM_NULL) - bgfx_shutdown(); - - // Destroy the window - Callbacks.glfwFreeCallbacks(internalWindowIdentifier); - glfwDestroyWindow(internalWindowIdentifier); - } - - /** - * Requests the user's attention. - *

- * What the window manager or compositor will - * do with that request is uncertain. It may - * be ignored, cause the icon in some bar or - * dock to flash to blink or who knows what. - * - * @since v1-alpha9 - */ - public void requestAttention() { - // Ensure running on the main thread - if (!Miscellaneous.onMainThread()) - throw new NotOnMainThreadException(); - - // Ensure the window is not terminated - if (terminated) - return; - - glfwRequestWindowAttention(internalWindowIdentifier); - } - - /** - * Will cause the window to be - * focused immediately, even - * without any user input. - * - * @since v1-alpha9 - */ - public void focus() { - // Ensure running on the main thread - if (!Miscellaneous.onMainThread()) - throw new NotOnMainThreadException(); - - // Ensure the window is not terminated - if (terminated) - return; - - glfwFocusWindow(internalWindowIdentifier); - } - - - // -----> Getters & setters - /** - * Returns if the user, window manager or - * compositor send a request for the window to close. - * - * @return {@code true} if a window closure has been requested - * @since v1-alpha9 - */ - public boolean isClosureRequested() { - // Ensure running on the main thread - if (!Miscellaneous.onMainThread()) - throw new NotOnMainThreadException(); - - // Ensure the window is not terminated - if (terminated) - return false; - - return glfwWindowShouldClose(internalWindowIdentifier); - } - - /** - * Returns the position of the cursor. - * - * @return cursor position inside the window - * @since v1-alpha9 - */ - public @NotNull Vec2i getCursorPosition() { - try (MemoryStack stack = stackPush()) { - DoubleBuffer x = stack.mallocDouble(1); - DoubleBuffer y = stack.mallocDouble(1); - - glfwGetCursorPos(internalWindowIdentifier, x, y); - return new Vec2i((int) x.get(), (int) y.get()); - } - } - - /** - * Sets the name of this window. - *

- * Window names should: - *

    - *
  • be lowercase,
  • - *
  • be simple,
  • - *
  • be not very long,
  • - *
  • only contain letters, numbers, hyphens and dots, and
  • - *
  • represent the name of your application and window purpose (if your application supports multiple windows)
  • - *
- *

- * On some platforms this may be used for window identification. - * A prime example of this is X11 and Wayland, where window - * managers and compositors can use this information to identify - * windows and customize them. - * - * @param name new name - * @since v1-alpha9 - */ - public void setName(@NotNull String name) { - // Ensure the window is not terminated - if (terminated) - return; - - this.name = name; - triggerReinitialization(); - } - - /** - * Sets the window title. - * - * @param title new title - * @since v1-alpha9 - */ - public void setTitle(@NotNull String title) { - // Ensure the window is not terminated - if (terminated) - return; - - this.title = title; - queuedPropertyUpdates.put("title", title); - } - - /** - * Sets the icon(s) for this window. - * - * @param icons new file paths to icons - * @since v1-alpha9 - */ - @ApiStatus.Experimental - public void setIcons(@NotNull Path @Nullable [] icons) { - // Ensure the window is not terminated - if (terminated) - return; - - // TODO - if (System.currentTimeMillis() > 0) - return; - - this.icons = icons; - if (icons != null) - try (GLFWImage.Buffer iconsBuffer = GLFWImage.malloc(icons.length)) { - Logger.warn("GlfwWindow#setIcons is experimental and may cause engine or JVM crashes. Here be dragons!"); - Logger.diag("icons.length = " + icons.length); - - List iconBuffers = new ArrayList<>(); - IntBuffer width = memAllocInt(1); - IntBuffer height = memAllocInt(1); - IntBuffer channels = memAllocInt(1); - - for (Path filepath : icons) { - Logger.diag("iterating icons » " + iconBuffers.size() + " » " + filepath); - // Load icon - Logger.diag("loading icon"); - iconBuffers.add(STBImage.stbi_load(filepath.toAbsolutePath().toString(), width, height, channels, 4)); - - if (iconBuffers.getLast() == null) { - Logger.warn("Icon " + iconsBuffer.position() + " could not be loaded" + (STBImage.stbi_failure_reason() == null ? "" : ": " + STBImage.stbi_failure_reason())); - continue; - } - - // Save into 'iconsBuffer' - Logger.diag("saving into buffer"); - iconsBuffer - .position(iconsBuffer.position() + 1) - .width(width.get(0)) - .height(height.get(0)) - .pixels(iconBuffers.getLast()); - } - Logger.diag("out of iteration"); - - // Set icons - Logger.diag("setting position"); - iconsBuffer.position(0); - Logger.diag("setting icons"); - Logger.flush(); - glfwSetWindowIcon(internalWindowIdentifier, iconsBuffer); - - // Free icons - Logger.diag("freeing icons"); - for (ByteBuffer buffer : iconBuffers) - if (buffer != null) { - Logger.diag("freeing buffer"); - STBImage.stbi_image_free(buffer); - } else - Logger.diag("skipping null buffer"); - } - } - - /** - * Sets the size of this window. - * - * @param size new size - * @since v1-alpha9 - */ - @ApiStatus.Experimental - public void setSize(@NotNull Vec2i size) { - // Ensure the window is not terminated - if (terminated) - return; - - this.size = size; - queuedPropertyUpdates.put("size", size); - } - - /** - * Sets the minimum size this window can have. - *

- * No minimum size will be enforced for - * an axis if it's respective value is - * set to {@code -1}. - * - * @param minimumSize new minimum size - * @since v1-alpha9 - */ - public void setMinimumSize(@NotNull Vec2i minimumSize) { - // Ensure the window is not terminated - if (terminated) - return; - - this.minimumSize = minimumSize; - queuedPropertyUpdates.put("minimumSize", minimumSize); - } - - /** - * Sets the maximum size this window can have. - *

- * No maximum size will be enforced for - * an axis if it's respective value is - * set to {@code -1}. - * - * @param maximumSize new maximum size - * @since v1-alpha9 - */ - public void setMaximumSize(@NotNull Vec2i maximumSize) { - // Ensure the window is not terminated - if (terminated) - return; - - this.maximumSize = maximumSize; - queuedPropertyUpdates.put("maximumSize", maximumSize); - } - - /** - * Sets the position of this window. - * - * @param position new position - * @since v1-alpha9 - */ - @ApiStatus.Experimental - public void setPosition(@NotNull Vec2i position) { - // Ensure the window is not terminated - if (isTerminated()) - return; - - this.position = position; - queuedPropertyUpdates.put("position", position); - } - - /** - * Sets in which mode this window shall be in. - * - * @param mode new mode - * @since v1-alpha9 - */ - public void setMode(@NotNull Window.Mode mode) { - // Ensure the window is not terminated - if (terminated) - return; - - this.mode = mode; - queuedPropertyUpdates.put("mode", mode); - } - - /** - * Sets this window can be resized. - * - * @param resizable shall be resizable? - * @since v1-alpha9 - */ - public void setResizable(boolean resizable) { - // Ensure the window is not terminated - if (terminated) - return; - - this.resizable = resizable; - queuedPropertyUpdates.put("resizable", resizable); - } - - /** - * Sets if this window shall have any decorations. - * - * @param borderless shall have no decorations? - * @since v1-alpha9 - */ - public void setBorderless(boolean borderless) { - // Ensure the window is not terminated - if (terminated) - return; - - triggerReinitialization(); - this.borderless = borderless; - } - - /** - * Sets if this window should be displayed above all others. - * - * @param onTop shall be on top of all regular windows? - * @since v1-alpha9 - */ - public void setOnTop(boolean onTop) { - // Ensure the window is not terminated - if (terminated) - return; - - this.onTop = onTop; - queuedPropertyUpdates.put("onTop", onTop); - } - - /** - * Sets if this window can be transparent. - *

- * Availability depends on the windowing API, compositor or - * window manager and potentially system settings. - * - * @param transparent shall be transparent? - * @since v1-alpha9 - */ - public void setTransparent(boolean transparent) { - // Ensure the window is not terminated - if (terminated) - return; - - triggerReinitialization(); - this.transparent = transparent; - } - - // -----> Inner classes - /** - * How a window can be displayed. - * - * @since v1-alpha9 - */ - public enum Mode { - /** - * Marks the window as hidden, making it invisible and unable to be interacted with. - * - * @since v1-alpha9 - */ - HIDDEN, - - /** - * Marks the window as windowed, which - * will allow the user to drag around the window freely. - * - * @since v1-alpha9 - */ - WINDOWED, - - /** - * Same as {@link #HIDDEN} mode, but the window can be - * summoned back into {@link #WINDOWED} mode by the user - * by (for example) clicking an icon or {@code ALT+TAB}-ing. - * - * @since v1-alpha9 - */ - MINIMIZED, - - /** - * Same as {@link #WINDOWED}, but will make the window occupy - * most of the screen space, except for windows/bars/docks. - * - * @since v1-alpha9 - */ - MAXIMIZED, - - /** - * Makes the window will have the same - * size as the monitor it is currently on. - * - * @since v1-alpha9 - */ - BORDERLESS_FULLSCREEN, - - /** - * Makes the window occupy the entire - * monitor it is currently on without - * allowing other windows to occupy - * the same space. - *

- * This will increase rendering - * throughput as the window manager - * or compositor does not need to - * care about other windows occupying - * the same monitor. Use (and recommend) - * this mode if you/your users - * want more frames per second. - * - * @since v1-alpha9 - */ - EXCLUSIVE_FULLSCREEN - } - - /** - * Provides an API for building {@link Window}s more easily. - * - * @since v1-alpha9 - */ - @SuppressWarnings({ "unused" }) - public static final class Builder { - /** - * Contains the window name. - * - * @see Window#name - * @since v1-alpha9 - */ - private @Nullable String name = null; - - /** - * Contains the window title. - * - * @see Window#title - * @since v1-alpha9 - */ - private @Nullable String title = null; - - /** - * Contains the window icons in the PNG format. - * - * @see Window#icons - * @since v1-alpha9 - */ - private @NotNull Path @Nullable [] icons = null; - - /** - * Contains the window size. - * - * @see Window#size - * @since v1-alpha9 - */ - private @Nullable Vec2i size = null; - - /** - * Contains the minimum window size. - * - * @see Window#minimumSize - * @since v1-alpha9 - */ - private @Nullable Vec2i minimumSize = null; - - /** - * Contains the maximum window size. - * - * @see Window#maximumSize - * @since v1-alpha9 - */ - private @Nullable Vec2i maximumSize = null; - - /** - * Contains the window position. - * - * @see Window#position - * @since v1-alpha9 - */ - private @Nullable Vec2i position = null; - - /** - * Contains the window mode. - * - * @see Window#mode - * @since v1-alpha9 - */ - private @Nullable Window.Mode mode = null; - - /** - * Contains the resizable flag. - * - * @see Window#resizable - * @since v1-alpha9 - */ - private @NotNull Tristate resizable = Tristate.UNSET; - - /** - * Contains the borderless flag. - * - * @see Window#borderless - * @since v1-alpha9 - */ - private @NotNull Tristate borderless = Tristate.UNSET; - - /** - * Contains the on top flag. - * - * @see Window#onTop - * @since v1-alpha9 - */ - private @NotNull Tristate onTop = Tristate.UNSET; - - /** - * Contains the transparency flag. - * - * @see Window#transparent - * @since v1-alpha9 - */ - private @NotNull Tristate transparent = Tristate.UNSET; - - /** - * Contains the rendering flag. - * - * @see Window#rendering - * @since v1-alpha9 - */ - private @NotNull Tristate rendering = Tristate.UNSET; - - /** - * Constructs this class. - * - * @since v1-alpha9 - */ - public Builder() {} - - /** - * Builds a new {@link Window} instance. - * - * @throws IllegalStateException if {@link #title}, {@link #size} or {@link #position} is unset - * @throws NotOnMainThreadException if not running on the main thread - * @return {@link Window} instance or {@code null} if another window is already initialized - * @since v1-alpha9 - */ - public @Nullable Window build() throws NotOnMainThreadException { - // Check if another window already exists - if (!getWindows().isEmpty()) - return null; - - // Booleanized tristates with default values - boolean resizableBoolean = true; - boolean borderlessBoolean = false; - boolean focusableBoolean = true; - boolean onTopBoolean = false; - boolean transparentBoolean = false; - boolean renderingBoolean = true; - - // Check for required fields - if (name == null) - throw new IllegalStateException("The window name is unset"); - if (title == null) - throw new IllegalStateException("The window title is unset"); - if (size == null) - throw new IllegalStateException("The window size is unset"); - if (position == null) - throw new IllegalStateException("The window position is unset"); - - // Set defaults - if (minimumSize == null) - minimumSize = new Vec2i(-1, -1); - if (maximumSize == null) - maximumSize = new Vec2i(-1, -1); - if (mode == null) - mode = Mode.WINDOWED; - - // Override booleanized tristate defaults - if (resizable == Tristate.FALSE) - resizableBoolean = false; - if (borderless == Tristate.TRUE) - borderlessBoolean = true; - if (onTop == Tristate.TRUE) - onTopBoolean = true; - if (transparent == Tristate.TRUE) - transparentBoolean = true; - if (rendering == Tristate.FALSE) - renderingBoolean = false; - - // Create new Window instance - Window window = new Window(); - window.setName(name); - window.setTitle(title); - window.setIcons(icons); - window.setSize(size); - window.setMinimumSize(minimumSize); - window.setMaximumSize(maximumSize); - window.setPosition(position); - window.setMode(mode); - window.setResizable(resizableBoolean); - window.setBorderless(borderlessBoolean); - window.setOnTop(onTopBoolean); - window.setTransparent(transparentBoolean); - window.setRendering(renderingBoolean); - window.finishWindowCreation(); - return window; - } - - /** - * Returns the window name. - * - * @return window name - * @see Window#name - * @since v1-alpha9 - */ - public @Nullable String getName() { - return name; - } - - /** - * Returns the window title. - * - * @return window title - * @see Window#title - * @since v1-alpha9 - */ - public @Nullable String getTitle() { - return title; - } - - /** - * Returns file paths to window - * icons in the PNG format. - * - * @return file paths to icons - * @see Window#icons - * @since v1-alpha9 - */ - public @NotNull Path @Nullable [] getIcons() { - return icons; - } - - /** - * Returns the window size. - * - * @return window size - * @see Window#size - * @since v1-alpha9 - */ - public @Nullable Vec2i getSize() { - return size; - } - - /** - * Returns the minimum window size. - * - * @return minimum window size - * @see Window#minimumSize - * @since v1-alpha9 - */ - public @Nullable Vec2i getMinimumSize() { - return minimumSize; - } - - /** - * Returns the maximum window size. - * - * @return maximum window size - * @see Window#maximumSize - * @since v1-alpha9 - */ - public @Nullable Vec2i getMaximumSize() { - return maximumSize; - } - - /** - * Returns the window position. - * - * @return window position - * @see Window#position - * @since v1-alpha9 - */ - public @Nullable Vec2i getPosition() { - return position; - } - - /** - * Returns the window mode. - * - * @return window mode - * @see Window#mode - * @since v1-alpha9 - */ - public @Nullable Window.Mode getWindowMode() { - return mode; - } - - /** - * Returns the resizable flag state. - * - * @return resizable flag state - * @see Window#resizable - * @since v1-alpha9 - */ - public @NotNull Tristate getResizable() { - return resizable; - } - - /** - * Returns the borderless flag state. - * - * @return borderless flag state - * @see Window#borderless - * @since v1-alpha9 - */ - public @NotNull Tristate getBorderless() { - return borderless; - } - - /** - * Returns the on top flag state. - * - * @return on top flag state - * @see Window#onTop - * @since v1-alpha9 - */ - public @NotNull Tristate getOnTop() { - return onTop; - } - - /** - * Returns the transparency flag state. - * - * @return transparency flag state - * @see Window#transparent - * @since v1-alpha9 - */ - public @NotNull Tristate getTransparent() { - return transparent; - } - - /** - * Returns the rendering flag state. - * - * @return rendering flag state - * @see Window#rendering - * @since v1-alpha9 - */ - public @NotNull Tristate getRendering() { - return rendering; - } - - /** - * Sets the window name. - * - * @param name new window name - * @return builder instance - * @see Window#name - * @since v1-alpha9 - */ - public @NotNull Builder setName(@Nullable String name) { - this.name = name; - return this; - } - - /** - * Sets the window title. - * - * @param title new window title - * @return builder instance - * @see Window#title - * @since v1-alpha9 - */ - public @NotNull Builder setTitle(@Nullable String title) { - this.title = title; - return this; - } - - /** - * Sets file paths to window - * icons in the PNG format. - * - * @param icons new file paths to icons - * @return builder instance - * @see Window#icons - * @since v1-alpha9 - */ - public @NotNull Builder setIcons(@NotNull Path @Nullable [] icons) { - this.icons = icons; - return this; - } - - /** - * Sets the window size. - * - * @param size new window size - * @return builder instance - * @see Window#size - * @since v1-alpha9 - */ - public @NotNull Builder setSize(@Nullable Vec2i size) { - this.size = size; - return this; - } - - /** - * Sets the minimum window size. - * - * @param minimumSize new minimum window size - * @return builder instance - * @see Window#minimumSize - * @since v1-alpha9 - */ - public @NotNull Builder setMinimumSize(@Nullable Vec2i minimumSize) { - this.minimumSize = minimumSize; - return this; - } - - /** - * Sets the maximum window size. - * - * @param maximumSize new maximum window size - * @return builder instance - * @see Window#maximumSize - * @since v1-alpha9 - */ - public @NotNull Builder setMaximumSize(@Nullable Vec2i maximumSize) { - this.maximumSize = maximumSize; - return this; - } - - /** - * Sets the window position. - * - * @param position new window position - * @return builder instance - * @see Window#position - * @since v1-alpha9 - */ - public @NotNull Builder setPosition(@Nullable Vec2i position) { - this.position = position; - return this; - } - - /** - * Sets the window mode. - * - * @param mode new window mode - * @return builder instance - * @see Window#mode - * @since v1-alpha9 - */ - public @NotNull Builder setWindowMode(@Nullable Window.Mode mode) { - this.mode = mode; - return this; - } - - /** - * Sets the resizable flag. - * - * @param resizable new resizable flag state - * @return builder instance - * @see Window#resizable - * @since v1-alpha9 - */ - public @NotNull Builder setResizable(@NotNull Tristate resizable) { - this.resizable = resizable; - return this; - } - - /** - * Sets the borderless flag. - * - * @param borderless new borderless flag state - * @return builder instance - * @see Window#borderless - * @since v1-alpha9 - */ - public @NotNull Builder setBorderless(@NotNull Tristate borderless) { - this.borderless = borderless; - return this; - } - - /** - * Sets the on top flag. - * - * @param onTop new on top flag state - * @return builder instance - * @see Window#onTop - * @since v1-alpha9 - */ - public @NotNull Builder setOnTop(@NotNull Tristate onTop) { - this.onTop = onTop; - return this; - } - - /** - * Sets the transparency flag. - * - * @param transparent new transparency flag state - * @return builder instance - * @see Window#transparent - * @since v1-alpha9 - */ - public @NotNull Builder setTransparent(@NotNull Tristate transparent) { - this.transparent = transparent; - return this; - } - - /** - * Sets the rendering flag. - * - * @param rendering new rendering flag state - * @return builder instance - * @see Window#rendering - * @since v1-alpha9 - */ - public @NotNull Builder setRendering(@NotNull Tristate rendering) { - this.rendering = rendering; - return this; - } - } -} diff --git a/rendering/src/main/java/de/staropensource/engine/rendering/type/package-info.java b/rendering/src/main/java/de/staropensource/engine/rendering/type/package-info.java deleted file mode 100644 index 3b4574d72..000000000 --- a/rendering/src/main/java/de/staropensource/engine/rendering/type/package-info.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Data types in form of enums and classes. - * - * @since v1-alpha9 - */ -package de.staropensource.engine.rendering.type; diff --git a/rendering/src/main/java/module-info.java b/rendering/src/main/java/module-info.java deleted file mode 100644 index 1625da003..000000000 --- a/rendering/src/main/java/module-info.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * The {@code rendering} subsystem, responsible for - * initializing and managing windows and rendering APIs. - * - * @since v1-alpha9 - */ -module sosengine.rendering { - // Dependencies - // -> Engine - requires transitive sosengine.base; - // -> Libraries - requires transitive static lombok; - requires transitive org.jetbrains.annotations; - requires org.lwjgl.stb; - requires org.lwjgl.glfw; - requires org.lwjgl.bgfx; - requires java.desktop; - - // API access - exports de.staropensource.engine.rendering; - exports de.staropensource.engine.rendering.event; - exports de.staropensource.engine.rendering.exception; - exports de.staropensource.engine.rendering.renderer; - exports de.staropensource.engine.rendering.type; - - // Reflection access - opens de.staropensource.engine.rendering; - opens de.staropensource.engine.rendering.event; - opens de.staropensource.engine.rendering.exception; - opens de.staropensource.engine.rendering.renderer; - opens de.staropensource.engine.rendering.type; -} diff --git a/rendering/src/main/javadoc/overview.html b/rendering/src/main/javadoc/overview.html deleted file mode 100644 index 80f584283..000000000 --- a/rendering/src/main/javadoc/overview.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -

Welcome to the sos!engine API documentation!
- You are currently in the documentation for the windowing subsystem, which provides abstract APIs for creating and managing windows and monitors.

-

This subsystem's interfaces are mainly useful for windowing APIs, creating implementations for them.

- diff --git a/rendering/src/main/javadoc/theme.css b/rendering/src/main/javadoc/theme.css deleted file mode 120000 index 681484a8e..000000000 --- a/rendering/src/main/javadoc/theme.css +++ /dev/null @@ -1 +0,0 @@ -../../../../src/main/javadoc/theme.css \ No newline at end of file diff --git a/settings.gradle b/settings.gradle.kts similarity index 84% rename from settings.gradle rename to settings.gradle.kts index 47f07ace5..41420e59e 100644 --- a/settings.gradle +++ b/settings.gradle.kts @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,12 +18,11 @@ * along with this program. If not, see . */ -rootProject.setName("sos!engine") +// Project settings +rootProject.name = "sos!engine" +// Subprojects +include("") // scan root +include("logging") include("base") -include("testing") -include("ansi") -include("slf4j-compat") -include("notification") -include("rendering") include("testapp") diff --git a/slf4j-compat/README.md b/slf4j-compat/README.md deleted file mode 100644 index 32262eab0..000000000 --- a/slf4j-compat/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# The `slf4j-compat` subsystem -This subsystem provides compatibility with [SLF4J](https://slf4j.org) and redirects all log calls to the engine's own logger. diff --git a/slf4j-compat/build.gradle b/slf4j-compat/build.gradle deleted file mode 100644 index 058d2121d..000000000 --- a/slf4j-compat/build.gradle +++ /dev/null @@ -1,112 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -// Plugins -plugins { - id("java") - id("io.freefair.lombok") version("${pluginLombok}") - id("maven-publish") -} - -// Dependencies -dependencies { - // Lombok - compileOnly("org.projectlombok:lombok:${dependencyLombok}") - annotationProcessor("org.projectlombok:lombok:${dependencyLombok}") - - // JetBrains Annotations - compileOnly("org.jetbrains:annotations:${dependencyJetbrainsAnnotations}") - - // SLF4J - implementation("org.slf4j:slf4j-api:${dependencySlf4j}") - - // Project - implementation(project(":base")) -} - -// Javadoc configuration -javadoc { - outputs.upToDateWhen { false } // Force task execution - dependsOn(delombok) // Make sure the source is delomboked first - - javadoc { - setClasspath(files(project.sourceSets.main.compileClasspath)) // Include dependencies - - options { - if (new File(projectDir, "src/main/javadoc/theme.css").exists()) - stylesheetFile = new File(projectDir, "src/main/javadoc/theme.css") // Theming is cool :3 - setMemberLevel(JavadocMemberLevel.PUBLIC) // Only display public stuff - setOverview("src/main/javadoc/overview.html") // We want a custom overview page to greet the visitor - setLocale("en_US") // 你好 - addStringOption("Xwerror", "-quiet") // Fail build on warning - - setJFlags([ - "-Duser.language=en_US" // See above - ]) - } - } -} - -// Include javadoc and source jar during publishing -java { - withJavadocJar() - withSourcesJar() -} - -// Build publishing configuration -// Note: You can safely ignore any errors or warnings thrown by your IDE here -publishing { - repositories { - maven { - name = "staropensource" - url = uri("https://mvn.staropensource.de/engine") - credentials(org.gradle.api.credentials.PasswordCredentials) - authentication { - //noinspection GroovyAssignabilityCheck - basic (BasicAuthentication) - } - } - } - publications { - //noinspection GroovyAssignabilityCheck - maven (MavenPublication) { - groupId = group - artifactId = project.getName() - version = version - //noinspection GroovyAssignabilityCheck - from components.java - } - } -} - -// Fix delombok task -delombok.doFirst { - File target = file("${project.projectDir}/src/main/module-info.java") - File source = file("${project.projectDir}/src/main/java/module-info.java") - - target.delete() - source.renameTo(target) -} -delombok.doLast { - File target = file("${project.projectDir}/src/main/java/module-info.java") - File source = file("${project.projectDir}/src/main/module-info.java") - - target.delete() - source.renameTo(target) -} diff --git a/slf4j-compat/gradle b/slf4j-compat/gradle deleted file mode 120000 index 3337596a2..000000000 --- a/slf4j-compat/gradle +++ /dev/null @@ -1 +0,0 @@ -../gradle \ No newline at end of file diff --git a/slf4j-compat/gradlew b/slf4j-compat/gradlew deleted file mode 120000 index 502f5a2d3..000000000 --- a/slf4j-compat/gradlew +++ /dev/null @@ -1 +0,0 @@ -../gradlew \ No newline at end of file diff --git a/slf4j-compat/gradlew.bat b/slf4j-compat/gradlew.bat deleted file mode 120000 index 284013288..000000000 --- a/slf4j-compat/gradlew.bat +++ /dev/null @@ -1 +0,0 @@ -../gradlew.bat \ No newline at end of file diff --git a/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/CompatibilityLogger.java b/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/CompatibilityLogger.java deleted file mode 100644 index 430d44808..000000000 --- a/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/CompatibilityLogger.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.slf4j_compat; - -import de.staropensource.engine.base.Engine; -import de.staropensource.engine.base.EngineConfiguration; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.logging.LogLevel; -import org.jetbrains.annotations.Nullable; -import org.slf4j.Marker; -import org.slf4j.event.Level; -import org.slf4j.helpers.LegacyAbstractLogger; -import org.slf4j.helpers.MessageFormatter; - -/** - * A SLF4J Logger that redirects all log calls to sos!engine's Logger. - * - * @since v1-alpha0 - */ -public final class CompatibilityLogger extends LegacyAbstractLogger { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha6 - */ - CompatibilityLogger(String name) { - this.name = name; - } - - /** - * Returns the fully qualified caller name. - * - * @return null - * @since v1-alpha0 - */ - @Override - protected @Nullable String getFullyQualifiedCallerName() { - return null; - } - - /** - * Returns if {@code LogLevel.DIAGNOSTIC} is enabled. - * - * @return {@code LogLevel.DIAGNOSTIC} status - * @see LogLevel#DIAGNOSTIC - * @since v1-alpha0 - */ - public boolean isTraceEnabled() { - return isLevelAllowed(LogLevel.DIAGNOSTIC); - } - - /** - * Returns if {@code LogLevel.VERBOSE} is enabled. - * - * @return {@code LogLevel.VERBOSE} status - * @see LogLevel#VERBOSE - * @since v1-alpha0 - */ - public boolean isDebugEnabled() { - return isLevelAllowed(LogLevel.VERBOSE); - } - - /** - * Returns if {@code LogLevel.INFORMATIONAL} is enabled. - * - * @return {@code LogLevel.INFORMATIONAL} status - * @see LogLevel#INFORMATIONAL - * @since v1-alpha0 - */ - public boolean isInfoEnabled() { - return isLevelAllowed(LogLevel.INFORMATIONAL); - } - - /** - * Returns if {@code LogLevel.WARNING} is enabled. - * - * @return {@code LogLevel.WARNING} status - * @see LogLevel#WARNING - * @since v1-alpha0 - */ - public boolean isWarnEnabled() { - return isLevelAllowed(LogLevel.WARNING); - } - - /** - * Returns if {@code LogLevel.ERROR} is enabled. - * - * @return {@code LogLevel.ERROR} status - * @see LogLevel#ERROR - * @since v1-alpha0 - */ - public boolean isErrorEnabled() { - return isLevelAllowed(LogLevel.ERROR); - } - - /** - * Just redirects to {@code forwardLogCall}. - * - * @param level SLF4J level for this event - * @param marker marker to be used for this event, may be null. - * @param messagePattern message pattern which will be parsed and formatted - * @param arguments array of arguments to be formatted, may be null - * @param throwable exception whose stack trace should be logged, may be null - * @see #forwardLogCall(Level, String, Object[], Throwable) - * @since v1-alpha0 - */ - @Override - protected void handleNormalizedLoggingCall(Level level, Marker marker, String messagePattern, Object[] arguments, Throwable throwable) { - forwardLogCall(level, messagePattern, arguments, throwable); - } - - /** - * Is the given log level currently enabled? - * - * @param level log level to check - * @return whether the logger is enabled for the given level - * @since v1-alpha0 - */ - private boolean isLevelAllowed(LogLevel level) { - if (Engine.getInstance() == null || EngineConfiguration.getInstance() == null) - return false; - else - return EngineConfiguration.getInstance().getLogLevel().compareTo(level) < 0; - } - - /** - * Forwards log calls from SLF4J to the StarOpenSource Engine. - * - * @param level log level, in sos!engine's style - * @param pattern message pattern - * @param arguments unused - * @param throwable throwable - * @since v1-alpha0 - */ - private void forwardLogCall(Level level, String pattern, Object[] arguments, Throwable throwable) { - // Only forward log calls if the subsystem is fully initialized - if (Slf4jCompatSubsystem.isInitialized()) - Logger.handle( - switch (level) { - case TRACE -> LogLevel.DIAGNOSTIC; - case DEBUG -> LogLevel.VERBOSE; - case INFO -> LogLevel.INFORMATIONAL; - case WARN -> LogLevel.WARNING; - case ERROR -> LogLevel.ERROR; - }, - Thread.currentThread().getStackTrace()[5], - MessageFormatter.basicArrayFormat(pattern, arguments) - ); - } -} diff --git a/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/CompatibilityLoggerFactory.java b/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/CompatibilityLoggerFactory.java deleted file mode 100644 index 4edf55ed2..000000000 --- a/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/CompatibilityLoggerFactory.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.slf4j_compat; - -import org.jetbrains.annotations.NotNull; -import org.slf4j.ILoggerFactory; -import org.slf4j.Logger; - -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ConcurrentMap; - -/** - * Factory for {@link CompatibilityLogger}. - * - * @since v1-alpha0 - */ -public final class CompatibilityLoggerFactory implements ILoggerFactory { - ConcurrentMap<@NotNull String, @NotNull Logger> loggerMap; - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha0 - */ - public CompatibilityLoggerFactory() { - loggerMap = new ConcurrentHashMap<>(); - } - - /** - * Returns an appropriate {@link CompatibilityLogger} instance by name. - *

- * This method will call {@link #createLogger(String)} if the logger - * has not been created yet. - * - * @param name name - * @since v1-alpha0 - */ - public Logger getLogger(String name) { - return loggerMap.computeIfAbsent(name, this::createLogger); - } - - /** - * Actually creates the Logger. - * - * @param name name - * @since v1-alpha0 - */ - private Logger createLogger(String name) { - return new CompatibilityLogger(name); - } -} diff --git a/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/CompatibilityLoggerProvider.java b/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/CompatibilityLoggerProvider.java deleted file mode 100644 index da3a21039..000000000 --- a/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/CompatibilityLoggerProvider.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.slf4j_compat; - -import de.staropensource.engine.base.utility.information.EngineInformation; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.slf4j.ILoggerFactory; -import org.slf4j.IMarkerFactory; -import org.slf4j.helpers.BasicMarkerFactory; -import org.slf4j.helpers.NOPMDCAdapter; -import org.slf4j.spi.MDCAdapter; -import org.slf4j.spi.SLF4JServiceProvider; - -/** - * Provider for {@link CompatibilityLogger}. - * - * @since v1-alpha0 - */ -@Getter -public final class CompatibilityLoggerProvider implements SLF4JServiceProvider { - /** - * Contains a {@link CompatibilityLoggerFactory}. - * - * @since v1-alpha0 - */ - private ILoggerFactory loggerFactory; - - /** - * Contains a {@link BasicMarkerFactory}. - * - * @since v1-alpha0 - * -- GETTER -- - * {@inheritDoc} - */ - private IMarkerFactory markerFactory; - - /** - * Contains a {@link NOPMDCAdapter}. - * - * @since v1-alpha0 - * -- GETTER -- - * {@inheritDoc} - * - * @since v1-alpha0 - */ - private MDCAdapter mDCAdapter; - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha0 - */ - public CompatibilityLoggerProvider() {} - - /** {@inheritDoc} */ - @Override - public void initialize() { - loggerFactory = new CompatibilityLoggerFactory(); - markerFactory = new BasicMarkerFactory(); - mDCAdapter = new NOPMDCAdapter(); - } - - /** {@inheritDoc} */ - public @NotNull String getRequestedApiVersion() { - return EngineInformation.getDependencySlf4j(); - } -} diff --git a/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/Slf4jCompatSubsystem.java b/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/Slf4jCompatSubsystem.java deleted file mode 100644 index 11f900e75..000000000 --- a/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/Slf4jCompatSubsystem.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.slf4j_compat; - -import de.staropensource.engine.base.annotation.EngineSubsystem; -import de.staropensource.engine.base.implementable.SubsystemClass; -import de.staropensource.engine.base.utility.information.EngineInformation; -import de.staropensource.engine.base.implementation.versioning.StarOpenSourceVersioningSystem; -import de.staropensource.engine.base.event.LogEvent; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.DependencyVector; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.slf4j.LoggerFactory; - -/** - * Main class of the SLF4J Compatibility subsystem. - * Note: Forwarded SLF4J messages do not trigger {@link LogEvent}s to prevent stack overflows. - * - * @since v1-alpha0 - */ -@EngineSubsystem -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Slf4jCompatSubsystem extends SubsystemClass { - /** - * Contains the class instance. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the class instance. - * - * @return class instance unless the subsystem is uninitialized - * @since v1-alpha0 - */ - @Getter - private static Slf4jCompatSubsystem instance = null; - - /** - * Contains whether or not the - * subsystem is fully initialized. - * - * @since v1-alpha8 - * -- GETTER -- - * Returns whether or not the - * subsystem is fully initialized. - * - * @return subsystem initialization status - * @since v1-alpha8 - */ - @Getter - private static boolean initialized = false; - - /** - * Initializes this subsystem. - * - * @since v1-alpha0 - */ - public Slf4jCompatSubsystem() { - // Check if subsystem has already initialized - if (instance == null) - instance = this; - else - Logger.crash("Only one instance of this class is allowed, use getInstance() instead of creating a new instance"); - - // Create log rules to prevent excessive log messages from the Reflections library - Logger.disallowMessage(".*[Reflections took].*"); - Logger.disallowMessage(".*[could not create Vfs.Dir].*"); - - initialized = true; - } - - /** {@inheritDoc} */ - @Override - public @NotNull String getName() { - return "slf4j-compat"; - } - - /** {@inheritDoc} */ - @Override - public void initializeSubsystem() { - LoggerFactory.getLogger(Slf4jCompatSubsystem.class).debug("If you see this then the SLF4J Compatibility Subsystem is working!"); - } - - /** {@inheritDoc} */ - @Override - public @NotNull DependencyVector getDependencyVector() { - return new DependencyVector.Builder() - .setIdentifier("slf4j-compat") - .setVersioningSystem(StarOpenSourceVersioningSystem.class) - .setVersion(EngineInformation.getVersioningString()) - .build(); - } -} diff --git a/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/package-info.java b/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/package-info.java deleted file mode 100644 index 47241e041..000000000 --- a/slf4j-compat/src/main/java/de/staropensource/engine/slf4j_compat/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Code of the SLF4J Compatibility subsystem. - * - * @see de.staropensource.engine.slf4j_compat.Slf4jCompatSubsystem#Slf4jCompatSubsystem() - * @since v1-alpha0 - */ -package de.staropensource.engine.slf4j_compat; diff --git a/slf4j-compat/src/main/javadoc/overview.html b/slf4j-compat/src/main/javadoc/overview.html deleted file mode 100644 index 9a09f2c79..000000000 --- a/slf4j-compat/src/main/javadoc/overview.html +++ /dev/null @@ -1,23 +0,0 @@ - - -

Welcome to the sos!engine API documentation!
- You are currently in the documentation for the slf4j-compat subsystem, providing compatibility with SLF4J.

-

This subsystem does not provide any utility for your application, it's just used to redirect SLF4J calls to sos!engine's own logger.

- diff --git a/slf4j-compat/src/main/javadoc/theme.css b/slf4j-compat/src/main/javadoc/theme.css deleted file mode 120000 index 681484a8e..000000000 --- a/slf4j-compat/src/main/javadoc/theme.css +++ /dev/null @@ -1 +0,0 @@ -../../../../src/main/javadoc/theme.css \ No newline at end of file diff --git a/slf4j-compat/src/main/module-info.java b/slf4j-compat/src/main/module-info.java deleted file mode 100644 index 764c767ce..000000000 --- a/slf4j-compat/src/main/module-info.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * The {@code slf4j-compat} subsystem, which helps bridging the gap between SLF4J and - * the StarOpenSource Engine by forwarding all SLF4J calls to the engine you love. - * - * @since v1-alpha1 - */ -module sosengine.slf4j_compat { - // Dependencies - // -> Engine - requires transitive sosengine.base; - // -> Libraries - requires transitive static lombok; - requires transitive org.jetbrains.annotations; - requires org.slf4j; - - // API access - exports de.staropensource.engine.slf4j_compat; - - // Reflection access - opens de.staropensource.engine.slf4j_compat; -} diff --git a/slf4j-compat/src/main/resources/META-INF/services/org.slf4j.spi.SLF4JServiceProvider b/slf4j-compat/src/main/resources/META-INF/services/org.slf4j.spi.SLF4JServiceProvider deleted file mode 100644 index 24abfa72a..000000000 --- a/slf4j-compat/src/main/resources/META-INF/services/org.slf4j.spi.SLF4JServiceProvider +++ /dev/null @@ -1 +0,0 @@ -de.staropensource.engine.slf4j_compat.CompatibilityLoggerProvider diff --git a/src/main/javadoc/overview.html b/src/main/javadoc/overview.html deleted file mode 100644 index 06cb6754e..000000000 --- a/src/main/javadoc/overview.html +++ /dev/null @@ -1,25 +0,0 @@ - - -

Welcome to the sos!engine API documentation!
- You are currently viewing the API documentation of the StarOpenSource Engine and it's official subsystems.

- -

For a simplified documentation, see the sos!engine documentation.
- For the engine source code, visit sos!git.

- diff --git a/src/main/javadoc/theme.css b/src/main/javadoc/theme.css deleted file mode 100644 index 58cdbb43b..000000000 --- a/src/main/javadoc/theme.css +++ /dev/null @@ -1,1308 +0,0 @@ -/* - * Javadoc style sheet - */ - -@import url('resources/fonts/dejavu.css'); - -/* - * These CSS custom properties (variables) define the core color and font - * properties used in this stylesheet. - */ -:root { - /* body, block and code fonts */ - --body-font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; - --block-font-family: 'DejaVu Serif', Georgia, "Times New Roman", Times, serif; - --code-font-family: 'DejaVu Sans Mono', monospace; - /* Base font sizes for body and code elements */ - --body-font-size: 14px; - --code-font-size: 14px; - /* Text colors for body and block elements */ - --body-text-color: #353833; - --block-text-color: #474747; - /* Background colors for various structural elements */ - --body-background-color: #ffffff; - --section-background-color: #f8f8f8; - --detail-background-color: #ffffff; - /* Colors for navigation bar and table captions */ - --navbar-background-color: #4D7A97; - --navbar-text-color: #ffffff; - /* Background color for subnavigation and various headers */ - --subnav-background-color: #dee3e9; - /* Background and text colors for selected tabs and navigation items */ - --selected-background-color: #f8981d; - --selected-text-color: #253441; - --selected-link-color: #1f389c; - /* Background colors for generated tables */ - --even-row-color: #ffffff; - --odd-row-color: #eeeeef; - /* Text color for page title */ - --title-color: #2c4557; - /* Text colors for links */ - --link-color: #4A6782; - --link-color-active: #bb7a2a; - /* Snippet colors */ - --snippet-background-color: #ebecee; - --snippet-text-color: var(--block-text-color); - --snippet-highlight-color: #f7c590; - /* Border colors for structural elements and user defined tables */ - --border-color: #ededed; - --table-border-color: #000000; - /* Search input colors */ - --search-input-background-color: #ffffff; - --search-input-text-color: #000000; - --search-input-placeholder-color: #909090; - /* Highlight color for active search tag target */ - --search-tag-highlight-color: #ffff00; - /* Adjustments for icon and active background colors of copy-to-clipboard buttons */ - --copy-icon-brightness: 100%; - --copy-button-background-color-active: rgba(168, 168, 176, 0.3); - /* Colors for invalid tag notifications */ - --invalid-tag-background-color: #ffe6e6; - --invalid-tag-text-color: #000000; -} -/* - * Styles for individual HTML elements. - * - * These are styles that are specific to individual HTML elements. Changing them affects the style of a particular - * HTML element throughout the page. - */ -body { - background-color:var(--body-background-color); - color:var(--body-text-color); - font-family:var(--body-font-family); - font-size:var(--body-font-size); - margin:0; - padding:0; - height:100%; - width:100%; -} -iframe { - margin:0; - padding:0; - height:100%; - width:100%; - overflow-y:scroll; - border:none; -} -a:link, a:visited { - text-decoration:none; - color:var(--link-color); -} -a[href]:hover, a[href]:focus { - text-decoration:none; - color:var(--link-color-active); -} -pre { - font-family:var(--code-font-family); - font-size:1em; -} -h1 { - font-size:1.428em; -} -h2 { - font-size:1.285em; -} -h3 { - font-size:1.14em; -} -h4 { - font-size:1.072em; -} -h5 { - font-size:1.001em; -} -h6 { - font-size:0.93em; -} -/* Disable font boosting for selected elements */ -h1, h2, h3, h4, h5, h6, div.member-signature { - max-height: 1000em; -} -ul { - list-style-type:disc; -} -code, tt { - font-family:var(--code-font-family); -} -:not(h1, h2, h3, h4, h5, h6) > code, -:not(h1, h2, h3, h4, h5, h6) > tt { - font-size:var(--code-font-size); - padding-top:4px; - margin-top:8px; - line-height:1.4em; -} -dt code { - font-family:var(--code-font-family); - font-size:1em; - padding-top:4px; -} -.summary-table dt code { - font-family:var(--code-font-family); - font-size:1em; - vertical-align:top; - padding-top:4px; -} -sup { - font-size:8px; -} -button { - font-family: var(--body-font-family); - font-size: 1em; -} -/* - * Styles for HTML generated by javadoc. - * - * These are style classes that are used by the standard doclet to generate HTML documentation. - */ - -/* - * Styles for document title and copyright. - */ -.about-language { - float:right; - padding:0 21px 8px 8px; - font-size:0.915em; - margin-top:-9px; - height:2.9em; -} -.legal-copy { - margin-left:.5em; -} -/* - * Styles for navigation bar. - */ -@media screen { - div.flex-box { - position:fixed; - display:flex; - flex-direction:column; - height: 100%; - width: 100%; - } - header.flex-header { - flex: 0 0 auto; - } - div.flex-content { - flex: 1 1 auto; - overflow-y: auto; - } -} -.top-nav { - background-color:var(--navbar-background-color); - color:var(--navbar-text-color); - float:left; - width:100%; - clear:right; - min-height:2.8em; - padding:10px 0 0 0; - overflow:hidden; - font-size:0.857em; -} -button#navbar-toggle-button { - display:none; -} -ul.sub-nav-list-small { - display: none; -} -.sub-nav { - background-color:var(--subnav-background-color); - float:left; - width:100%; - overflow:hidden; - font-size:0.857em; -} -.sub-nav div { - clear:left; - float:left; - padding:6px; - text-transform:uppercase; -} -.sub-nav .sub-nav-list { - padding-top:4px; -} -ul.nav-list { - display:block; - margin:0 25px 0 0; - padding:0; -} -ul.sub-nav-list { - float:left; - margin:0 25px 0 0; - padding:0; -} -ul.nav-list li { - list-style:none; - float:left; - padding: 5px 6px; - text-transform:uppercase; -} -.sub-nav .nav-list-search { - float:right; - margin:0; - padding:6px; - clear:none; - text-align:right; - position:relative; -} -ul.sub-nav-list li { - list-style:none; - float:left; -} -.top-nav a:link, .top-nav a:active, .top-nav a:visited { - color:var(--navbar-text-color); - text-decoration:none; - text-transform:uppercase; -} -.top-nav a:hover { - color:var(--link-color-active); -} -.nav-bar-cell1-rev { - background-color:var(--selected-background-color); - color:var(--selected-text-color); - margin: auto 5px; -} -.skip-nav { - position:absolute; - top:auto; - left:-9999px; - overflow:hidden; -} -/* - * Hide navigation links and search box in print layout - */ -@media print { - ul.nav-list, div.sub-nav { - display:none; - } -} -/* - * Styles for page header. - */ -.title { - color:var(--title-color); - margin:10px 0; -} -.sub-title { - margin:5px 0 0 0; -} -ul.contents-list { - margin: 0 0 15px 0; - padding: 0; - list-style: none; -} -ul.contents-list li { - font-size:0.93em; -} -/* - * Styles for headings. - */ -body.class-declaration-page .summary h2, -body.class-declaration-page .details h2, -body.class-use-page h2, -body.module-declaration-page .block-list h2 { - font-style: italic; - padding:0; - margin:15px 0; -} -body.class-declaration-page .summary h3, -body.class-declaration-page .details h3, -body.class-declaration-page .summary .inherited-list h2 { - background-color:var(--subnav-background-color); - border:1px solid var(--border-color); - margin:0 0 6px -8px; - padding:7px 5px; -} -/* - * Styles for page layout containers. - */ -main { - clear:both; - padding:10px 20px; - position:relative; -} -dl.notes > dt { - font-family: var(--body-font-family); - font-size:0.856em; - font-weight:bold; - margin:10px 0 0 0; - color:var(--body-text-color); -} -dl.notes > dd { - margin:5px 10px 10px 0; - font-size:1em; - font-family:var(--block-font-family) -} -dl.name-value > dt { - margin-left:1px; - font-size:1.1em; - display:inline; - font-weight:bold; -} -dl.name-value > dd { - margin:0 0 0 1px; - font-size:1.1em; - display:inline; -} -/* - * Styles for lists. - */ -li.circle { - list-style:circle; -} -ul.horizontal li { - display:inline; - font-size:0.9em; -} -div.inheritance { - margin:0; - padding:0; -} -div.inheritance div.inheritance { - margin-left:2em; -} -ul.block-list, -ul.details-list, -ul.member-list, -ul.summary-list { - margin:10px 0 10px 0; - padding:0; -} -ul.block-list > li, -ul.details-list > li, -ul.member-list > li, -ul.summary-list > li { - list-style:none; - margin-bottom:15px; - line-height:1.4; -} -ul.ref-list { - padding:0; - margin:0; -} -ul.ref-list > li { - list-style:none; -} -.summary-table dl, .summary-table dl dt, .summary-table dl dd { - margin-top:0; - margin-bottom:1px; -} -ul.tag-list, ul.tag-list-long { - padding-left: 0; - list-style: none; -} -ul.tag-list li { - display: inline; -} -ul.tag-list li:not(:last-child):after, -ul.tag-list-long li:not(:last-child):after -{ - content: ", "; - white-space: pre-wrap; -} -ul.preview-feature-list { - list-style: none; - margin:0; - padding:0.1em; - line-height: 1.6em; -} -/* - * Styles for tables. - */ -.summary-table, .details-table { - width:100%; - border-spacing:0; - border:1px solid var(--border-color); - border-top:0; - padding:0; -} -.caption { - position:relative; - text-align:left; - background-repeat:no-repeat; - color:var(--selected-text-color); - clear:none; - overflow:hidden; - padding: 10px 0 0 1px; - margin:0; -} -.caption a:link, .caption a:visited { - color:var(--selected-link-color); -} -.caption a:hover, -.caption a:active { - color:var(--navbar-text-color); -} -.caption span { - font-weight:bold; - white-space:nowrap; - padding:5px 12px 7px 12px; - display:inline-block; - float:left; - background-color:var(--selected-background-color); - border: none; - height:16px; -} -div.table-tabs { - padding:10px 0 0 1px; - margin:10px 0 0 0; -} -div.table-tabs > button { - border: none; - cursor: pointer; - padding: 5px 12px 7px 12px; - font-weight: bold; - margin-right: 8px; -} -div.table-tabs > .active-table-tab { - background: var(--selected-background-color); - color: var(--selected-text-color); -} -div.table-tabs > button.table-tab { - background: var(--navbar-background-color); - color: var(--navbar-text-color); -} -.two-column-search-results { - display: grid; - grid-template-columns: minmax(400px, max-content) minmax(400px, auto); -} -div.checkboxes { - line-height: 2em; -} -div.checkboxes > span { - margin-left: 10px; -} -div.checkboxes > label { - margin-left: 8px; - white-space: nowrap; -} -div.checkboxes > label > input { - margin: 0 2px; -} -.two-column-summary { - display: grid; - grid-template-columns: minmax(25%, max-content) minmax(25%, auto); -} -.three-column-summary { - display: grid; - grid-template-columns: minmax(15%, max-content) minmax(20%, max-content) minmax(20%, auto); -} -.three-column-release-summary { - display: grid; - grid-template-columns: minmax(40%, max-content) minmax(10%, max-content) minmax(40%, auto); -} -.four-column-summary { - display: grid; - grid-template-columns: minmax(10%, max-content) minmax(15%, max-content) minmax(15%, max-content) minmax(15%, auto); -} -@media screen and (max-width: 1000px) { - .four-column-summary { - display: grid; - grid-template-columns: minmax(15%, max-content) minmax(15%, auto); - } -} -@media screen and (max-width: 800px) { - .two-column-search-results { - display: grid; - grid-template-columns: minmax(40%, max-content) minmax(40%, auto); - } - .three-column-summary { - display: grid; - grid-template-columns: minmax(10%, max-content) minmax(25%, auto); - } - .three-column-release-summary { - display: grid; - grid-template-columns: minmax(70%, max-content) minmax(30%, max-content) - } - .three-column-summary .col-last, - .three-column-release-summary .col-last{ - grid-column-end: span 2; - } -} -@media screen and (max-width: 600px) { - .two-column-summary { - display: grid; - grid-template-columns: 1fr; - } -} -.summary-table > div, .details-table > div { - text-align:left; - padding: 8px 3px 3px 7px; - overflow-x: auto; - scrollbar-width: thin; -} -.col-first, .col-second, .col-last, .col-constructor-name, .col-summary-item-name { - vertical-align:top; - padding-right:0; - padding-top:8px; - padding-bottom:3px; -} -.table-header { - background:var(--subnav-background-color); - font-weight: bold; -} -/* Sortable table columns */ -.table-header[onclick] { - cursor: pointer; -} -.table-header[onclick]::after { - content:""; - display:inline-block; - background-image:url('data:image/svg+xml; utf8, \ - \ - '); - background-size:100% 100%; - width:9px; - height:14px; - margin-left:4px; - margin-bottom:-3px; -} -.table-header[onclick].sort-asc::after { - background-image:url('data:image/svg+xml; utf8, \ - \ - \ - '); - -} -.table-header[onclick].sort-desc::after { - background-image:url('data:image/svg+xml; utf8, \ - \ - \ - '); -} -.col-first, .col-first { - font-size:0.93em; -} -.col-second, .col-second, .col-last, .col-constructor-name, .col-summary-item-name, .col-last { - font-size:0.93em; -} -.col-first, .col-second, .col-constructor-name { - vertical-align:top; - overflow: auto; -} -.col-last { - white-space:normal; -} -.col-first a:link, .col-first a:visited, -.col-second a:link, .col-second a:visited, -.col-first a:link, .col-first a:visited, -.col-second a:link, .col-second a:visited, -.col-constructor-name a:link, .col-constructor-name a:visited, -.col-summary-item-name a:link, .col-summary-item-name a:visited { - font-weight:bold; -} -.even-row-color, .even-row-color .table-header { - background-color:var(--even-row-color); -} -.odd-row-color, .odd-row-color .table-header { - background-color:var(--odd-row-color); -} -/* - * Styles for contents. - */ -div.block { - font-size:var(--body-font-size); - font-family:var(--block-font-family); -} -.col-last div { - padding-top:0; -} -.col-last a { - padding-bottom:3px; -} -.module-signature, -.package-signature, -.type-signature, -.member-signature { - font-family:var(--code-font-family); - font-size:1em; - margin:14px 0; - white-space: pre-wrap; -} -.module-signature, -.package-signature, -.type-signature { - margin-top: 0; -} -.member-signature .type-parameters-long, -.member-signature .parameters, -.member-signature .exceptions { - display: inline-block; - vertical-align: top; - white-space: pre; -} -.member-signature .type-parameters { - white-space: normal; -} -/* - * Styles for formatting effect. - */ -.source-line-no { - /* Color of line numbers in source pages can be set via custom property below */ - color:var(--source-linenumber-color, green); - padding:0 30px 0 0; -} -.block { - display:block; - margin:0 10px 5px 0; - color:var(--block-text-color); -} -.deprecated-label, .description-from-type-label, .implementation-label, .member-name-link, -.module-label-in-package, .module-label-in-type, .package-label-in-type, -.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link, .preview-label { - font-weight:bold; -} -.deprecation-comment, .help-footnote, .preview-comment { - font-style:italic; -} -.deprecation-block { - font-size:1em; - font-family:var(--block-font-family); - border-style:solid; - border-width:thin; - border-radius:10px; - padding:10px; - margin-bottom:10px; - margin-right:10px; - display:inline-block; -} -.preview-block { - font-size:1em; - font-family:var(--block-font-family); - border-style:solid; - border-width:thin; - border-radius:10px; - padding:10px; - margin-bottom:10px; - margin-right:10px; - display:inline-block; -} -div.block div.deprecation-comment { - font-style:normal; -} -details.invalid-tag, span.invalid-tag { - font-size:1em; - font-family:var(--block-font-family); - color: var(--invalid-tag-text-color); - background: var(--invalid-tag-background-color); - border: thin solid var(--table-border-color); - border-radius:2px; - padding: 2px 4px; - display:inline-block; -} -details summary { - cursor: pointer; -} -/* - * Styles specific to HTML5 elements. - */ -main, nav, header, footer, section { - display:block; -} -/* - * Styles for javadoc search. - */ -.ui-state-active { - /* Overrides the color of selection used in jQuery UI */ - background: var(--selected-background-color); - border: 1px solid var(--selected-background-color); - color: var(--selected-text-color); -} -.ui-autocomplete-category { - font-weight:bold; - font-size:15px; - padding:7px 0 7px 3px; - background-color:var(--navbar-background-color); - color:var(--navbar-text-color); -} -.ui-autocomplete { - max-height:85%; - max-width:65%; - overflow-y:auto; - overflow-x:auto; - scrollbar-width: thin; - white-space:nowrap; - box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); -} -ul.ui-autocomplete { - position:fixed; - z-index:1; - background-color: var(--body-background-color); -} -ul.ui-autocomplete li { - float:left; - clear:both; - min-width:100%; -} -ul.ui-autocomplete li.ui-static-link { - position:sticky; - bottom:0; - left:0; - background: var(--subnav-background-color); - padding: 5px 0; - font-family: var(--body-font-family); - font-size: 0.93em; - font-weight: bolder; - z-index: 2; -} -li.ui-static-link a, li.ui-static-link a:visited { - text-decoration:none; - color:var(--link-color); - float:right; - margin-right:20px; -} -.ui-autocomplete .result-item { - font-size: inherit; -} -.ui-autocomplete .result-highlight { - font-weight:bold; -} -#search-input, #page-search-input { - background-image:url('resources/glass.png'); - background-size:13px; - background-repeat:no-repeat; - background-position:2px 3px; - background-color: var(--search-input-background-color); - color: var(--search-input-text-color); - border-color: var(--border-color); - padding-left:20px; - width: 250px; - margin: 0; -} -#search-input { - margin-left: 4px; -} -#reset-button { - background-color: transparent; - background-image:url('resources/x.png'); - background-repeat:no-repeat; - background-size:contain; - border:0; - border-radius:0; - width:12px; - height:12px; - position:absolute; - right:12px; - top:10px; - font-size:0; -} -::placeholder { - color:var(--search-input-placeholder-color); - opacity: 1; -} -.search-tag-desc-result { - font-style:italic; - font-size:11px; -} -.search-tag-holder-result { - font-style:italic; - font-size:12px; -} -.search-tag-result:target { - background-color:var(--search-tag-highlight-color); -} -details.page-search-details { - display: inline-block; -} -div#result-container { - font-size: 1em; -} -div#result-container a.search-result-link { - padding: 0; - margin: 4px 0; - width: 100%; -} -#result-container .result-highlight { - font-weight:bolder; -} -.page-search-info { - background-color: var(--subnav-background-color); - border-radius: 3px; - border: 0 solid var(--border-color); - padding: 0 8px; - overflow: hidden; - height: 0; - transition: all 0.2s ease; -} -div.table-tabs > button.table-tab { - background: var(--navbar-background-color); - color: var(--navbar-text-color); -} -.page-search-header { - padding: 5px 12px 7px 12px; - font-weight: bold; - margin-right: 3px; - background-color:var(--navbar-background-color); - color:var(--navbar-text-color); - display: inline-block; -} -button.page-search-header { - border: none; - cursor: pointer; -} -span#page-search-link { - text-decoration: underline; -} -.module-graph span, .sealed-graph span { - display:none; - position:absolute; -} -.module-graph:hover span, .sealed-graph:hover span { - display:block; - margin: -100px 0 0 100px; - z-index: 1; -} -.inherited-list { - margin: 10px 0 10px 0; -} -section.class-description { - line-height: 1.4; -} -.summary section[class$="-summary"], .details section[class$="-details"], -.class-uses .detail, .serialized-class-details { - padding: 0 20px 5px 10px; - border: 1px solid var(--border-color); - background-color: var(--section-background-color); -} -.inherited-list, section[class$="-details"] .detail { - padding:0 0 5px 8px; - background-color:var(--detail-background-color); - border:none; -} -.vertical-separator { - padding: 0 5px; -} -ul.help-section-list { - margin: 0; -} -ul.help-subtoc > li { - display: inline-block; - padding-right: 5px; - font-size: smaller; -} -ul.help-subtoc > li::before { - content: "\2022" ; - padding-right:2px; -} -.help-note { - font-style: italic; -} -/* - * Indicator icon for external links. - */ -main a[href*="://"]::after { - content:""; - display:inline-block; - background-image:url('data:image/svg+xml; utf8, \ - \ - \ - '); - background-size:100% 100%; - width:7px; - height:7px; - margin-left:2px; - margin-bottom:4px; -} -main a[href*="://"]:hover::after, -main a[href*="://"]:focus::after { - background-image:url('data:image/svg+xml; utf8, \ - \ - \ - '); -} -/* - * Styles for header/section anchor links - */ -a.anchor-link { - opacity: 0; - transition: opacity 0.1s; -} -:hover > a.anchor-link { - opacity: 80%; -} -a.anchor-link:hover, -a.anchor-link:focus-visible, -a.anchor-link.visible { - opacity: 100%; -} -a.anchor-link > img { - width: 0.9em; - height: 0.9em; -} -/* - * Styles for copy-to-clipboard buttons - */ -button.copy { - opacity: 70%; - border: none; - border-radius: 3px; - position: relative; - background:none; - transition: opacity 0.3s; - cursor: pointer; -} -:hover > button.copy { - opacity: 80%; -} -button.copy:hover, -button.copy:active, -button.copy:focus-visible, -button.copy.visible { - opacity: 100%; -} -button.copy img { - position: relative; - background: none; - filter: brightness(var(--copy-icon-brightness)); -} -button.copy:active { - background-color: var(--copy-button-background-color-active); -} -button.copy span { - color: var(--body-text-color); - position: relative; - top: -0.1em; - transition: all 0.1s; - font-size: 0.76rem; - line-height: 1.2em; - opacity: 0; -} -button.copy:hover span, -button.copy:focus-visible span, -button.copy.visible span { - opacity: 100%; -} -/* search page copy button */ -button#page-search-copy { - margin-left: 0.4em; - padding:0.3em; - top:0.13em; -} -button#page-search-copy img { - width: 1.2em; - height: 1.2em; - padding: 0.01em 0; - top: 0.15em; -} -button#page-search-copy span { - color: var(--body-text-color); - line-height: 1.2em; - padding: 0.2em; - top: -0.18em; -} -div.page-search-info:hover button#page-search-copy span { - opacity: 100%; -} -/* snippet copy button */ -button.snippet-copy { - position: absolute; - top: 6px; - right: 6px; - height: 1.7em; - padding: 2px; -} -button.snippet-copy img { - width: 18px; - height: 18px; - padding: 0.05em 0; -} -button.snippet-copy span { - line-height: 1.2em; - padding: 0.2em; - position: relative; - top: -0.5em; -} -div.snippet-container:hover button.snippet-copy span { - opacity: 100%; -} -/* - * Styles for user-provided tables. - * - * borderless: - * No borders, vertical margins, styled caption. - * This style is provided for use with existing doc comments. - * In general, borderless tables should not be used for layout purposes. - * - * plain: - * Plain borders around table and cells, vertical margins, styled caption. - * Best for small tables or for complex tables for tables with cells that span - * rows and columns, when the "striped" style does not work well. - * - * striped: - * Borders around the table and vertical borders between cells, striped rows, - * vertical margins, styled caption. - * Best for tables that have a header row, and a body containing a series of simple rows. - */ - -table.borderless, -table.plain, -table.striped { - margin-top: 10px; - margin-bottom: 10px; -} -table.borderless > caption, -table.plain > caption, -table.striped > caption { - font-weight: bold; - font-size: smaller; -} -table.borderless th, table.borderless td, -table.plain th, table.plain td, -table.striped th, table.striped td { - padding: 2px 5px; -} -table.borderless, -table.borderless > thead > tr > th, table.borderless > tbody > tr > th, table.borderless > tr > th, -table.borderless > thead > tr > td, table.borderless > tbody > tr > td, table.borderless > tr > td { - border: none; -} -table.borderless > thead > tr, table.borderless > tbody > tr, table.borderless > tr { - background-color: transparent; -} -table.plain { - border-collapse: collapse; - border: 1px solid var(--table-border-color); -} -table.plain > thead > tr, table.plain > tbody tr, table.plain > tr { - background-color: transparent; -} -table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, -table.plain > thead > tr > td, table.plain > tbody > tr > td, table.plain > tr > td { - border: 1px solid var(--table-border-color); -} -table.striped { - border-collapse: collapse; - border: 1px solid var(--table-border-color); -} -table.striped > thead { - background-color: var(--subnav-background-color); -} -table.striped > thead > tr > th, table.striped > thead > tr > td { - border: 1px solid var(--table-border-color); -} -table.striped > tbody > tr:nth-child(even) { - background-color: var(--odd-row-color) -} -table.striped > tbody > tr:nth-child(odd) { - background-color: var(--even-row-color) -} -table.striped > tbody > tr > th, table.striped > tbody > tr > td { - border-left: 1px solid var(--table-border-color); - border-right: 1px solid var(--table-border-color); -} -table.striped > tbody > tr > th { - font-weight: normal; -} -/** - * Tweak style for small screens. - */ -@media screen and (max-width: 920px) { - header.flex-header { - max-height: 100vh; - overflow-y: auto; - } - div#navbar-top { - height: 2.8em; - transition: height 0.35s ease; - } - ul.nav-list { - display: block; - width: 40%; - float:left; - clear: left; - margin: 10px 0 0 0; - padding: 0; - } - ul.nav-list li { - float: none; - padding: 6px; - margin-left: 10px; - margin-top: 2px; - } - ul.sub-nav-list-small { - display:block; - height: 100%; - width: 50%; - float: right; - clear: right; - background-color: var(--subnav-background-color); - color: var(--body-text-color); - margin: 6px 0 0 0; - padding: 0; - } - ul.sub-nav-list-small ul { - padding-left: 20px; - } - ul.sub-nav-list-small a:link, ul.sub-nav-list-small a:visited { - color:var(--link-color); - } - ul.sub-nav-list-small a:hover { - color:var(--link-color-active); - } - ul.sub-nav-list-small li { - list-style:none; - float:none; - padding: 6px; - margin-top: 1px; - text-transform:uppercase; - } - ul.sub-nav-list-small > li { - margin-left: 10px; - } - ul.sub-nav-list-small li p { - margin: 5px 0; - } - div#navbar-sub-list { - display: none; - } - .top-nav a:link, .top-nav a:active, .top-nav a:visited { - display: block; - } - button#navbar-toggle-button { - width: 3.4em; - height: 2.8em; - background-color: transparent; - display: block; - float: left; - border: 0; - margin: 0 10px; - cursor: pointer; - font-size: 10px; - } - button#navbar-toggle-button .nav-bar-toggle-icon { - display: block; - width: 24px; - height: 3px; - margin: 1px 0 4px 0; - border-radius: 2px; - transition: all 0.1s; - background-color: var(--navbar-text-color); - } - button#navbar-toggle-button.expanded span.nav-bar-toggle-icon:nth-child(1) { - transform: rotate(45deg); - transform-origin: 10% 10%; - width: 26px; - } - button#navbar-toggle-button.expanded span.nav-bar-toggle-icon:nth-child(2) { - opacity: 0; - } - button#navbar-toggle-button.expanded span.nav-bar-toggle-icon:nth-child(3) { - transform: rotate(-45deg); - transform-origin: 10% 90%; - width: 26px; - } -} -@media screen and (max-width: 800px) { - .about-language { - padding-right: 16px; - } - ul.nav-list li { - margin-left: 5px; - } - ul.sub-nav-list-small > li { - margin-left: 5px; - } - main { - padding: 10px; - } - .summary section[class$="-summary"], .details section[class$="-details"], - .class-uses .detail, .serialized-class-details { - padding: 0 8px 5px 8px; - } - body { - -webkit-text-size-adjust: none; - } -} -@media screen and (max-width: 400px) { - .about-language { - font-size: 10px; - padding-right: 12px; - } -} -@media screen and (max-width: 400px) { - .nav-list-search { - width: 94%; - } - #search-input, #page-search-input { - width: 70%; - } -} -@media screen and (max-width: 320px) { - .nav-list-search > label { - display: none; - } - .nav-list-search { - width: 90%; - } - #search-input, #page-search-input { - width: 80%; - } -} - -pre.snippet { - background-color: var(--snippet-background-color); - color: var(--snippet-text-color); - padding: 10px; - margin: 12px 0; - overflow: auto; - white-space: pre; -} -div.snippet-container { - position: relative; -} -@media screen and (max-width: 800px) { - pre.snippet { - padding-top: 26px; - } - button.snippet-copy { - top: 4px; - right: 4px; - } -} -pre.snippet .italic { - font-style: italic; -} -pre.snippet .bold { - font-weight: bold; -} -pre.snippet .highlighted { - background-color: var(--snippet-highlight-color); - border-radius: 10%; -} -/* - This stylesheet file makes the page appear dark. - Stolen from: - https://docs.oracle.com/en/java/javase/21/javadoc/programmers-guide-javadoc-css-themes.html - */ -:root { - --body-text-color: #e0e0e3; - --block-text-color: #e6e7ef; - --body-background-color: #404040; - --section-background-color: #484848; - --detail-background-color: #404040; - --navbar-background-color: #505076; - --navbar-text-color: #ffffff; - --subnav-background-color: #303030; - --selected-background-color: #f8981d; - --selected-text-color: #253441; - --selected-link-color: #1f389c; - --even-row-color: #484848; - --odd-row-color: #383838; - --title-color: #ffffff; - --link-color: #a0c0f8; - --link-color-active: #ffb863; - --snippet-background-color: #383838; - --snippet-text-color: var(--block-text-color); - --snippet-highlight-color: #f7c590; - --border-color: #383838; - --table-border-color: #000000; - --search-input-background-color: #000000; - --search-input-text-color: #ffffff; - --search-input-placeholder-color: #909090; - --search-tag-highlight-color: #ffff00; - --copy-icon-brightness: 250%; - --copy-button-background-color-active: rgba(168, 168, 176, 0.3); - --invalid-tag-background-color: #ffe6e6; - --invalid-tag-text-color: #000000; -} diff --git a/src/main/javadoc/theme.overlay.css b/src/main/javadoc/theme.overlay.css deleted file mode 100644 index 45ac35722..000000000 --- a/src/main/javadoc/theme.overlay.css +++ /dev/null @@ -1,36 +0,0 @@ -/* - This stylesheet file makes the page appear dark. - Stolen from: - https://docs.oracle.com/en/java/javase/21/javadoc/programmers-guide-javadoc-css-themes.html - */ -:root { - --body-text-color: #e0e0e3; - --block-text-color: #e6e7ef; - --body-background-color: #404040; - --section-background-color: #484848; - --detail-background-color: #404040; - --navbar-background-color: #505076; - --navbar-text-color: #ffffff; - --subnav-background-color: #303030; - --selected-background-color: #f8981d; - --selected-text-color: #253441; - --selected-link-color: #1f389c; - --even-row-color: #484848; - --odd-row-color: #383838; - --title-color: #ffffff; - --link-color: #a0c0f8; - --link-color-active: #ffb863; - --snippet-background-color: #383838; - --snippet-text-color: var(--block-text-color); - --snippet-highlight-color: #f7c590; - --border-color: #383838; - --table-border-color: #000000; - --search-input-background-color: #000000; - --search-input-text-color: #ffffff; - --search-input-placeholder-color: #909090; - --search-tag-highlight-color: #ffff00; - --copy-icon-brightness: 250%; - --copy-button-background-color-active: rgba(168, 168, 176, 0.3); - --invalid-tag-background-color: #ffe6e6; - --invalid-tag-text-color: #000000; -} diff --git a/src/main/javadoc/theme.source.css b/src/main/javadoc/theme.source.css deleted file mode 100644 index f71489f86..000000000 --- a/src/main/javadoc/theme.source.css +++ /dev/null @@ -1,1272 +0,0 @@ -/* - * Javadoc style sheet - */ - -@import url('resources/fonts/dejavu.css'); - -/* - * These CSS custom properties (variables) define the core color and font - * properties used in this stylesheet. - */ -:root { - /* body, block and code fonts */ - --body-font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; - --block-font-family: 'DejaVu Serif', Georgia, "Times New Roman", Times, serif; - --code-font-family: 'DejaVu Sans Mono', monospace; - /* Base font sizes for body and code elements */ - --body-font-size: 14px; - --code-font-size: 14px; - /* Text colors for body and block elements */ - --body-text-color: #353833; - --block-text-color: #474747; - /* Background colors for various structural elements */ - --body-background-color: #ffffff; - --section-background-color: #f8f8f8; - --detail-background-color: #ffffff; - /* Colors for navigation bar and table captions */ - --navbar-background-color: #4D7A97; - --navbar-text-color: #ffffff; - /* Background color for subnavigation and various headers */ - --subnav-background-color: #dee3e9; - /* Background and text colors for selected tabs and navigation items */ - --selected-background-color: #f8981d; - --selected-text-color: #253441; - --selected-link-color: #1f389c; - /* Background colors for generated tables */ - --even-row-color: #ffffff; - --odd-row-color: #eeeeef; - /* Text color for page title */ - --title-color: #2c4557; - /* Text colors for links */ - --link-color: #4A6782; - --link-color-active: #bb7a2a; - /* Snippet colors */ - --snippet-background-color: #ebecee; - --snippet-text-color: var(--block-text-color); - --snippet-highlight-color: #f7c590; - /* Border colors for structural elements and user defined tables */ - --border-color: #ededed; - --table-border-color: #000000; - /* Search input colors */ - --search-input-background-color: #ffffff; - --search-input-text-color: #000000; - --search-input-placeholder-color: #909090; - /* Highlight color for active search tag target */ - --search-tag-highlight-color: #ffff00; - /* Adjustments for icon and active background colors of copy-to-clipboard buttons */ - --copy-icon-brightness: 100%; - --copy-button-background-color-active: rgba(168, 168, 176, 0.3); - /* Colors for invalid tag notifications */ - --invalid-tag-background-color: #ffe6e6; - --invalid-tag-text-color: #000000; -} -/* - * Styles for individual HTML elements. - * - * These are styles that are specific to individual HTML elements. Changing them affects the style of a particular - * HTML element throughout the page. - */ -body { - background-color:var(--body-background-color); - color:var(--body-text-color); - font-family:var(--body-font-family); - font-size:var(--body-font-size); - margin:0; - padding:0; - height:100%; - width:100%; -} -iframe { - margin:0; - padding:0; - height:100%; - width:100%; - overflow-y:scroll; - border:none; -} -a:link, a:visited { - text-decoration:none; - color:var(--link-color); -} -a[href]:hover, a[href]:focus { - text-decoration:none; - color:var(--link-color-active); -} -pre { - font-family:var(--code-font-family); - font-size:1em; -} -h1 { - font-size:1.428em; -} -h2 { - font-size:1.285em; -} -h3 { - font-size:1.14em; -} -h4 { - font-size:1.072em; -} -h5 { - font-size:1.001em; -} -h6 { - font-size:0.93em; -} -/* Disable font boosting for selected elements */ -h1, h2, h3, h4, h5, h6, div.member-signature { - max-height: 1000em; -} -ul { - list-style-type:disc; -} -code, tt { - font-family:var(--code-font-family); -} -:not(h1, h2, h3, h4, h5, h6) > code, -:not(h1, h2, h3, h4, h5, h6) > tt { - font-size:var(--code-font-size); - padding-top:4px; - margin-top:8px; - line-height:1.4em; -} -dt code { - font-family:var(--code-font-family); - font-size:1em; - padding-top:4px; -} -.summary-table dt code { - font-family:var(--code-font-family); - font-size:1em; - vertical-align:top; - padding-top:4px; -} -sup { - font-size:8px; -} -button { - font-family: var(--body-font-family); - font-size: 1em; -} -/* - * Styles for HTML generated by javadoc. - * - * These are style classes that are used by the standard doclet to generate HTML documentation. - */ - -/* - * Styles for document title and copyright. - */ -.about-language { - float:right; - padding:0 21px 8px 8px; - font-size:0.915em; - margin-top:-9px; - height:2.9em; -} -.legal-copy { - margin-left:.5em; -} -/* - * Styles for navigation bar. - */ -@media screen { - div.flex-box { - position:fixed; - display:flex; - flex-direction:column; - height: 100%; - width: 100%; - } - header.flex-header { - flex: 0 0 auto; - } - div.flex-content { - flex: 1 1 auto; - overflow-y: auto; - } -} -.top-nav { - background-color:var(--navbar-background-color); - color:var(--navbar-text-color); - float:left; - width:100%; - clear:right; - min-height:2.8em; - padding:10px 0 0 0; - overflow:hidden; - font-size:0.857em; -} -button#navbar-toggle-button { - display:none; -} -ul.sub-nav-list-small { - display: none; -} -.sub-nav { - background-color:var(--subnav-background-color); - float:left; - width:100%; - overflow:hidden; - font-size:0.857em; -} -.sub-nav div { - clear:left; - float:left; - padding:6px; - text-transform:uppercase; -} -.sub-nav .sub-nav-list { - padding-top:4px; -} -ul.nav-list { - display:block; - margin:0 25px 0 0; - padding:0; -} -ul.sub-nav-list { - float:left; - margin:0 25px 0 0; - padding:0; -} -ul.nav-list li { - list-style:none; - float:left; - padding: 5px 6px; - text-transform:uppercase; -} -.sub-nav .nav-list-search { - float:right; - margin:0; - padding:6px; - clear:none; - text-align:right; - position:relative; -} -ul.sub-nav-list li { - list-style:none; - float:left; -} -.top-nav a:link, .top-nav a:active, .top-nav a:visited { - color:var(--navbar-text-color); - text-decoration:none; - text-transform:uppercase; -} -.top-nav a:hover { - color:var(--link-color-active); -} -.nav-bar-cell1-rev { - background-color:var(--selected-background-color); - color:var(--selected-text-color); - margin: auto 5px; -} -.skip-nav { - position:absolute; - top:auto; - left:-9999px; - overflow:hidden; -} -/* - * Hide navigation links and search box in print layout - */ -@media print { - ul.nav-list, div.sub-nav { - display:none; - } -} -/* - * Styles for page header. - */ -.title { - color:var(--title-color); - margin:10px 0; -} -.sub-title { - margin:5px 0 0 0; -} -ul.contents-list { - margin: 0 0 15px 0; - padding: 0; - list-style: none; -} -ul.contents-list li { - font-size:0.93em; -} -/* - * Styles for headings. - */ -body.class-declaration-page .summary h2, -body.class-declaration-page .details h2, -body.class-use-page h2, -body.module-declaration-page .block-list h2 { - font-style: italic; - padding:0; - margin:15px 0; -} -body.class-declaration-page .summary h3, -body.class-declaration-page .details h3, -body.class-declaration-page .summary .inherited-list h2 { - background-color:var(--subnav-background-color); - border:1px solid var(--border-color); - margin:0 0 6px -8px; - padding:7px 5px; -} -/* - * Styles for page layout containers. - */ -main { - clear:both; - padding:10px 20px; - position:relative; -} -dl.notes > dt { - font-family: var(--body-font-family); - font-size:0.856em; - font-weight:bold; - margin:10px 0 0 0; - color:var(--body-text-color); -} -dl.notes > dd { - margin:5px 10px 10px 0; - font-size:1em; - font-family:var(--block-font-family) -} -dl.name-value > dt { - margin-left:1px; - font-size:1.1em; - display:inline; - font-weight:bold; -} -dl.name-value > dd { - margin:0 0 0 1px; - font-size:1.1em; - display:inline; -} -/* - * Styles for lists. - */ -li.circle { - list-style:circle; -} -ul.horizontal li { - display:inline; - font-size:0.9em; -} -div.inheritance { - margin:0; - padding:0; -} -div.inheritance div.inheritance { - margin-left:2em; -} -ul.block-list, -ul.details-list, -ul.member-list, -ul.summary-list { - margin:10px 0 10px 0; - padding:0; -} -ul.block-list > li, -ul.details-list > li, -ul.member-list > li, -ul.summary-list > li { - list-style:none; - margin-bottom:15px; - line-height:1.4; -} -ul.ref-list { - padding:0; - margin:0; -} -ul.ref-list > li { - list-style:none; -} -.summary-table dl, .summary-table dl dt, .summary-table dl dd { - margin-top:0; - margin-bottom:1px; -} -ul.tag-list, ul.tag-list-long { - padding-left: 0; - list-style: none; -} -ul.tag-list li { - display: inline; -} -ul.tag-list li:not(:last-child):after, -ul.tag-list-long li:not(:last-child):after -{ - content: ", "; - white-space: pre-wrap; -} -ul.preview-feature-list { - list-style: none; - margin:0; - padding:0.1em; - line-height: 1.6em; -} -/* - * Styles for tables. - */ -.summary-table, .details-table { - width:100%; - border-spacing:0; - border:1px solid var(--border-color); - border-top:0; - padding:0; -} -.caption { - position:relative; - text-align:left; - background-repeat:no-repeat; - color:var(--selected-text-color); - clear:none; - overflow:hidden; - padding: 10px 0 0 1px; - margin:0; -} -.caption a:link, .caption a:visited { - color:var(--selected-link-color); -} -.caption a:hover, -.caption a:active { - color:var(--navbar-text-color); -} -.caption span { - font-weight:bold; - white-space:nowrap; - padding:5px 12px 7px 12px; - display:inline-block; - float:left; - background-color:var(--selected-background-color); - border: none; - height:16px; -} -div.table-tabs { - padding:10px 0 0 1px; - margin:10px 0 0 0; -} -div.table-tabs > button { - border: none; - cursor: pointer; - padding: 5px 12px 7px 12px; - font-weight: bold; - margin-right: 8px; -} -div.table-tabs > .active-table-tab { - background: var(--selected-background-color); - color: var(--selected-text-color); -} -div.table-tabs > button.table-tab { - background: var(--navbar-background-color); - color: var(--navbar-text-color); -} -.two-column-search-results { - display: grid; - grid-template-columns: minmax(400px, max-content) minmax(400px, auto); -} -div.checkboxes { - line-height: 2em; -} -div.checkboxes > span { - margin-left: 10px; -} -div.checkboxes > label { - margin-left: 8px; - white-space: nowrap; -} -div.checkboxes > label > input { - margin: 0 2px; -} -.two-column-summary { - display: grid; - grid-template-columns: minmax(25%, max-content) minmax(25%, auto); -} -.three-column-summary { - display: grid; - grid-template-columns: minmax(15%, max-content) minmax(20%, max-content) minmax(20%, auto); -} -.three-column-release-summary { - display: grid; - grid-template-columns: minmax(40%, max-content) minmax(10%, max-content) minmax(40%, auto); -} -.four-column-summary { - display: grid; - grid-template-columns: minmax(10%, max-content) minmax(15%, max-content) minmax(15%, max-content) minmax(15%, auto); -} -@media screen and (max-width: 1000px) { - .four-column-summary { - display: grid; - grid-template-columns: minmax(15%, max-content) minmax(15%, auto); - } -} -@media screen and (max-width: 800px) { - .two-column-search-results { - display: grid; - grid-template-columns: minmax(40%, max-content) minmax(40%, auto); - } - .three-column-summary { - display: grid; - grid-template-columns: minmax(10%, max-content) minmax(25%, auto); - } - .three-column-release-summary { - display: grid; - grid-template-columns: minmax(70%, max-content) minmax(30%, max-content) - } - .three-column-summary .col-last, - .three-column-release-summary .col-last{ - grid-column-end: span 2; - } -} -@media screen and (max-width: 600px) { - .two-column-summary { - display: grid; - grid-template-columns: 1fr; - } -} -.summary-table > div, .details-table > div { - text-align:left; - padding: 8px 3px 3px 7px; - overflow-x: auto; - scrollbar-width: thin; -} -.col-first, .col-second, .col-last, .col-constructor-name, .col-summary-item-name { - vertical-align:top; - padding-right:0; - padding-top:8px; - padding-bottom:3px; -} -.table-header { - background:var(--subnav-background-color); - font-weight: bold; -} -/* Sortable table columns */ -.table-header[onclick] { - cursor: pointer; -} -.table-header[onclick]::after { - content:""; - display:inline-block; - background-image:url('data:image/svg+xml; utf8, \ - \ - '); - background-size:100% 100%; - width:9px; - height:14px; - margin-left:4px; - margin-bottom:-3px; -} -.table-header[onclick].sort-asc::after { - background-image:url('data:image/svg+xml; utf8, \ - \ - \ - '); - -} -.table-header[onclick].sort-desc::after { - background-image:url('data:image/svg+xml; utf8, \ - \ - \ - '); -} -.col-first, .col-first { - font-size:0.93em; -} -.col-second, .col-second, .col-last, .col-constructor-name, .col-summary-item-name, .col-last { - font-size:0.93em; -} -.col-first, .col-second, .col-constructor-name { - vertical-align:top; - overflow: auto; -} -.col-last { - white-space:normal; -} -.col-first a:link, .col-first a:visited, -.col-second a:link, .col-second a:visited, -.col-first a:link, .col-first a:visited, -.col-second a:link, .col-second a:visited, -.col-constructor-name a:link, .col-constructor-name a:visited, -.col-summary-item-name a:link, .col-summary-item-name a:visited { - font-weight:bold; -} -.even-row-color, .even-row-color .table-header { - background-color:var(--even-row-color); -} -.odd-row-color, .odd-row-color .table-header { - background-color:var(--odd-row-color); -} -/* - * Styles for contents. - */ -div.block { - font-size:var(--body-font-size); - font-family:var(--block-font-family); -} -.col-last div { - padding-top:0; -} -.col-last a { - padding-bottom:3px; -} -.module-signature, -.package-signature, -.type-signature, -.member-signature { - font-family:var(--code-font-family); - font-size:1em; - margin:14px 0; - white-space: pre-wrap; -} -.module-signature, -.package-signature, -.type-signature { - margin-top: 0; -} -.member-signature .type-parameters-long, -.member-signature .parameters, -.member-signature .exceptions { - display: inline-block; - vertical-align: top; - white-space: pre; -} -.member-signature .type-parameters { - white-space: normal; -} -/* - * Styles for formatting effect. - */ -.source-line-no { - /* Color of line numbers in source pages can be set via custom property below */ - color:var(--source-linenumber-color, green); - padding:0 30px 0 0; -} -.block { - display:block; - margin:0 10px 5px 0; - color:var(--block-text-color); -} -.deprecated-label, .description-from-type-label, .implementation-label, .member-name-link, -.module-label-in-package, .module-label-in-type, .package-label-in-type, -.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link, .preview-label { - font-weight:bold; -} -.deprecation-comment, .help-footnote, .preview-comment { - font-style:italic; -} -.deprecation-block { - font-size:1em; - font-family:var(--block-font-family); - border-style:solid; - border-width:thin; - border-radius:10px; - padding:10px; - margin-bottom:10px; - margin-right:10px; - display:inline-block; -} -.preview-block { - font-size:1em; - font-family:var(--block-font-family); - border-style:solid; - border-width:thin; - border-radius:10px; - padding:10px; - margin-bottom:10px; - margin-right:10px; - display:inline-block; -} -div.block div.deprecation-comment { - font-style:normal; -} -details.invalid-tag, span.invalid-tag { - font-size:1em; - font-family:var(--block-font-family); - color: var(--invalid-tag-text-color); - background: var(--invalid-tag-background-color); - border: thin solid var(--table-border-color); - border-radius:2px; - padding: 2px 4px; - display:inline-block; -} -details summary { - cursor: pointer; -} -/* - * Styles specific to HTML5 elements. - */ -main, nav, header, footer, section { - display:block; -} -/* - * Styles for javadoc search. - */ -.ui-state-active { - /* Overrides the color of selection used in jQuery UI */ - background: var(--selected-background-color); - border: 1px solid var(--selected-background-color); - color: var(--selected-text-color); -} -.ui-autocomplete-category { - font-weight:bold; - font-size:15px; - padding:7px 0 7px 3px; - background-color:var(--navbar-background-color); - color:var(--navbar-text-color); -} -.ui-autocomplete { - max-height:85%; - max-width:65%; - overflow-y:auto; - overflow-x:auto; - scrollbar-width: thin; - white-space:nowrap; - box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); -} -ul.ui-autocomplete { - position:fixed; - z-index:1; - background-color: var(--body-background-color); -} -ul.ui-autocomplete li { - float:left; - clear:both; - min-width:100%; -} -ul.ui-autocomplete li.ui-static-link { - position:sticky; - bottom:0; - left:0; - background: var(--subnav-background-color); - padding: 5px 0; - font-family: var(--body-font-family); - font-size: 0.93em; - font-weight: bolder; - z-index: 2; -} -li.ui-static-link a, li.ui-static-link a:visited { - text-decoration:none; - color:var(--link-color); - float:right; - margin-right:20px; -} -.ui-autocomplete .result-item { - font-size: inherit; -} -.ui-autocomplete .result-highlight { - font-weight:bold; -} -#search-input, #page-search-input { - background-image:url('resources/glass.png'); - background-size:13px; - background-repeat:no-repeat; - background-position:2px 3px; - background-color: var(--search-input-background-color); - color: var(--search-input-text-color); - border-color: var(--border-color); - padding-left:20px; - width: 250px; - margin: 0; -} -#search-input { - margin-left: 4px; -} -#reset-button { - background-color: transparent; - background-image:url('resources/x.png'); - background-repeat:no-repeat; - background-size:contain; - border:0; - border-radius:0; - width:12px; - height:12px; - position:absolute; - right:12px; - top:10px; - font-size:0; -} -::placeholder { - color:var(--search-input-placeholder-color); - opacity: 1; -} -.search-tag-desc-result { - font-style:italic; - font-size:11px; -} -.search-tag-holder-result { - font-style:italic; - font-size:12px; -} -.search-tag-result:target { - background-color:var(--search-tag-highlight-color); -} -details.page-search-details { - display: inline-block; -} -div#result-container { - font-size: 1em; -} -div#result-container a.search-result-link { - padding: 0; - margin: 4px 0; - width: 100%; -} -#result-container .result-highlight { - font-weight:bolder; -} -.page-search-info { - background-color: var(--subnav-background-color); - border-radius: 3px; - border: 0 solid var(--border-color); - padding: 0 8px; - overflow: hidden; - height: 0; - transition: all 0.2s ease; -} -div.table-tabs > button.table-tab { - background: var(--navbar-background-color); - color: var(--navbar-text-color); -} -.page-search-header { - padding: 5px 12px 7px 12px; - font-weight: bold; - margin-right: 3px; - background-color:var(--navbar-background-color); - color:var(--navbar-text-color); - display: inline-block; -} -button.page-search-header { - border: none; - cursor: pointer; -} -span#page-search-link { - text-decoration: underline; -} -.module-graph span, .sealed-graph span { - display:none; - position:absolute; -} -.module-graph:hover span, .sealed-graph:hover span { - display:block; - margin: -100px 0 0 100px; - z-index: 1; -} -.inherited-list { - margin: 10px 0 10px 0; -} -section.class-description { - line-height: 1.4; -} -.summary section[class$="-summary"], .details section[class$="-details"], -.class-uses .detail, .serialized-class-details { - padding: 0 20px 5px 10px; - border: 1px solid var(--border-color); - background-color: var(--section-background-color); -} -.inherited-list, section[class$="-details"] .detail { - padding:0 0 5px 8px; - background-color:var(--detail-background-color); - border:none; -} -.vertical-separator { - padding: 0 5px; -} -ul.help-section-list { - margin: 0; -} -ul.help-subtoc > li { - display: inline-block; - padding-right: 5px; - font-size: smaller; -} -ul.help-subtoc > li::before { - content: "\2022" ; - padding-right:2px; -} -.help-note { - font-style: italic; -} -/* - * Indicator icon for external links. - */ -main a[href*="://"]::after { - content:""; - display:inline-block; - background-image:url('data:image/svg+xml; utf8, \ - \ - \ - '); - background-size:100% 100%; - width:7px; - height:7px; - margin-left:2px; - margin-bottom:4px; -} -main a[href*="://"]:hover::after, -main a[href*="://"]:focus::after { - background-image:url('data:image/svg+xml; utf8, \ - \ - \ - '); -} -/* - * Styles for header/section anchor links - */ -a.anchor-link { - opacity: 0; - transition: opacity 0.1s; -} -:hover > a.anchor-link { - opacity: 80%; -} -a.anchor-link:hover, -a.anchor-link:focus-visible, -a.anchor-link.visible { - opacity: 100%; -} -a.anchor-link > img { - width: 0.9em; - height: 0.9em; -} -/* - * Styles for copy-to-clipboard buttons - */ -button.copy { - opacity: 70%; - border: none; - border-radius: 3px; - position: relative; - background:none; - transition: opacity 0.3s; - cursor: pointer; -} -:hover > button.copy { - opacity: 80%; -} -button.copy:hover, -button.copy:active, -button.copy:focus-visible, -button.copy.visible { - opacity: 100%; -} -button.copy img { - position: relative; - background: none; - filter: brightness(var(--copy-icon-brightness)); -} -button.copy:active { - background-color: var(--copy-button-background-color-active); -} -button.copy span { - color: var(--body-text-color); - position: relative; - top: -0.1em; - transition: all 0.1s; - font-size: 0.76rem; - line-height: 1.2em; - opacity: 0; -} -button.copy:hover span, -button.copy:focus-visible span, -button.copy.visible span { - opacity: 100%; -} -/* search page copy button */ -button#page-search-copy { - margin-left: 0.4em; - padding:0.3em; - top:0.13em; -} -button#page-search-copy img { - width: 1.2em; - height: 1.2em; - padding: 0.01em 0; - top: 0.15em; -} -button#page-search-copy span { - color: var(--body-text-color); - line-height: 1.2em; - padding: 0.2em; - top: -0.18em; -} -div.page-search-info:hover button#page-search-copy span { - opacity: 100%; -} -/* snippet copy button */ -button.snippet-copy { - position: absolute; - top: 6px; - right: 6px; - height: 1.7em; - padding: 2px; -} -button.snippet-copy img { - width: 18px; - height: 18px; - padding: 0.05em 0; -} -button.snippet-copy span { - line-height: 1.2em; - padding: 0.2em; - position: relative; - top: -0.5em; -} -div.snippet-container:hover button.snippet-copy span { - opacity: 100%; -} -/* - * Styles for user-provided tables. - * - * borderless: - * No borders, vertical margins, styled caption. - * This style is provided for use with existing doc comments. - * In general, borderless tables should not be used for layout purposes. - * - * plain: - * Plain borders around table and cells, vertical margins, styled caption. - * Best for small tables or for complex tables for tables with cells that span - * rows and columns, when the "striped" style does not work well. - * - * striped: - * Borders around the table and vertical borders between cells, striped rows, - * vertical margins, styled caption. - * Best for tables that have a header row, and a body containing a series of simple rows. - */ - -table.borderless, -table.plain, -table.striped { - margin-top: 10px; - margin-bottom: 10px; -} -table.borderless > caption, -table.plain > caption, -table.striped > caption { - font-weight: bold; - font-size: smaller; -} -table.borderless th, table.borderless td, -table.plain th, table.plain td, -table.striped th, table.striped td { - padding: 2px 5px; -} -table.borderless, -table.borderless > thead > tr > th, table.borderless > tbody > tr > th, table.borderless > tr > th, -table.borderless > thead > tr > td, table.borderless > tbody > tr > td, table.borderless > tr > td { - border: none; -} -table.borderless > thead > tr, table.borderless > tbody > tr, table.borderless > tr { - background-color: transparent; -} -table.plain { - border-collapse: collapse; - border: 1px solid var(--table-border-color); -} -table.plain > thead > tr, table.plain > tbody tr, table.plain > tr { - background-color: transparent; -} -table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, -table.plain > thead > tr > td, table.plain > tbody > tr > td, table.plain > tr > td { - border: 1px solid var(--table-border-color); -} -table.striped { - border-collapse: collapse; - border: 1px solid var(--table-border-color); -} -table.striped > thead { - background-color: var(--subnav-background-color); -} -table.striped > thead > tr > th, table.striped > thead > tr > td { - border: 1px solid var(--table-border-color); -} -table.striped > tbody > tr:nth-child(even) { - background-color: var(--odd-row-color) -} -table.striped > tbody > tr:nth-child(odd) { - background-color: var(--even-row-color) -} -table.striped > tbody > tr > th, table.striped > tbody > tr > td { - border-left: 1px solid var(--table-border-color); - border-right: 1px solid var(--table-border-color); -} -table.striped > tbody > tr > th { - font-weight: normal; -} -/** - * Tweak style for small screens. - */ -@media screen and (max-width: 920px) { - header.flex-header { - max-height: 100vh; - overflow-y: auto; - } - div#navbar-top { - height: 2.8em; - transition: height 0.35s ease; - } - ul.nav-list { - display: block; - width: 40%; - float:left; - clear: left; - margin: 10px 0 0 0; - padding: 0; - } - ul.nav-list li { - float: none; - padding: 6px; - margin-left: 10px; - margin-top: 2px; - } - ul.sub-nav-list-small { - display:block; - height: 100%; - width: 50%; - float: right; - clear: right; - background-color: var(--subnav-background-color); - color: var(--body-text-color); - margin: 6px 0 0 0; - padding: 0; - } - ul.sub-nav-list-small ul { - padding-left: 20px; - } - ul.sub-nav-list-small a:link, ul.sub-nav-list-small a:visited { - color:var(--link-color); - } - ul.sub-nav-list-small a:hover { - color:var(--link-color-active); - } - ul.sub-nav-list-small li { - list-style:none; - float:none; - padding: 6px; - margin-top: 1px; - text-transform:uppercase; - } - ul.sub-nav-list-small > li { - margin-left: 10px; - } - ul.sub-nav-list-small li p { - margin: 5px 0; - } - div#navbar-sub-list { - display: none; - } - .top-nav a:link, .top-nav a:active, .top-nav a:visited { - display: block; - } - button#navbar-toggle-button { - width: 3.4em; - height: 2.8em; - background-color: transparent; - display: block; - float: left; - border: 0; - margin: 0 10px; - cursor: pointer; - font-size: 10px; - } - button#navbar-toggle-button .nav-bar-toggle-icon { - display: block; - width: 24px; - height: 3px; - margin: 1px 0 4px 0; - border-radius: 2px; - transition: all 0.1s; - background-color: var(--navbar-text-color); - } - button#navbar-toggle-button.expanded span.nav-bar-toggle-icon:nth-child(1) { - transform: rotate(45deg); - transform-origin: 10% 10%; - width: 26px; - } - button#navbar-toggle-button.expanded span.nav-bar-toggle-icon:nth-child(2) { - opacity: 0; - } - button#navbar-toggle-button.expanded span.nav-bar-toggle-icon:nth-child(3) { - transform: rotate(-45deg); - transform-origin: 10% 90%; - width: 26px; - } -} -@media screen and (max-width: 800px) { - .about-language { - padding-right: 16px; - } - ul.nav-list li { - margin-left: 5px; - } - ul.sub-nav-list-small > li { - margin-left: 5px; - } - main { - padding: 10px; - } - .summary section[class$="-summary"], .details section[class$="-details"], - .class-uses .detail, .serialized-class-details { - padding: 0 8px 5px 8px; - } - body { - -webkit-text-size-adjust: none; - } -} -@media screen and (max-width: 400px) { - .about-language { - font-size: 10px; - padding-right: 12px; - } -} -@media screen and (max-width: 400px) { - .nav-list-search { - width: 94%; - } - #search-input, #page-search-input { - width: 70%; - } -} -@media screen and (max-width: 320px) { - .nav-list-search > label { - display: none; - } - .nav-list-search { - width: 90%; - } - #search-input, #page-search-input { - width: 80%; - } -} - -pre.snippet { - background-color: var(--snippet-background-color); - color: var(--snippet-text-color); - padding: 10px; - margin: 12px 0; - overflow: auto; - white-space: pre; -} -div.snippet-container { - position: relative; -} -@media screen and (max-width: 800px) { - pre.snippet { - padding-top: 26px; - } - button.snippet-copy { - top: 4px; - right: 4px; - } -} -pre.snippet .italic { - font-style: italic; -} -pre.snippet .bold { - font-weight: bold; -} -pre.snippet .highlighted { - background-color: var(--snippet-highlight-color); - border-radius: 10%; -} diff --git a/src/main/javadoc/theme.update.sh b/src/main/javadoc/theme.update.sh deleted file mode 100755 index 8a88f8cdc..000000000 --- a/src/main/javadoc/theme.update.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -# This script's sole purpose is to combine -# 'theme.source.css' and 'theme.overlay.css' -# and create 'theme.css'. -rm -rf theme.css -cp theme.source.css theme.css -cat theme.overlay.css >> theme.css diff --git a/testapp/README.md b/testapp/README.md index 67020b266..8792f6808 100644 --- a/testapp/README.md +++ b/testapp/README.md @@ -1,2 +1,2 @@ -# The development application -It is used during development to test out new stuff. It should not be used an example application. +# `/dist/template-subproject` +This is a template subproject, simply existing to ease the process of creating a new Gradle subproject. diff --git a/testapp/build.gradle b/testapp/build.gradle deleted file mode 100644 index fa5a2b4cc..000000000 --- a/testapp/build.gradle +++ /dev/null @@ -1,145 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import org.mikeneck.graalvm.BuildTypeSelector - -// Plugins -plugins { - id("java") - id("application") - id("io.freefair.lombok") version("${pluginLombok}") - id("io.github.goooler.shadow") version("${pluginShadow}") - id('org.mikeneck.graalvm-native-image') version("${pluginNativeImage}") -} - -// Dependencies -dependencies { - // Lombok - compileOnly("org.projectlombok:lombok:${dependencyLombok}") - annotationProcessor("org.projectlombok:lombok:${dependencyLombok}") - - // JetBrains Annotations - compileOnly("org.jetbrains:annotations:${dependencyJetbrainsAnnotations}") - - // Project - implementation(project(":base")) - implementation(project(":rendering")) - runtimeOnly(project(":ansi")) - runtimeOnly(project(":slf4j-compat")) -} - -// Fix delombok task -delombok.doFirst { - File target = file("${project.projectDir}/src/main/module-info.java") - File source = file("${project.projectDir}/src/main/java/module-info.java") - - target.delete() - source.renameTo(target) -} -delombok.doLast { - File target = file("${project.projectDir}/src/main/java/module-info.java") - File source = file("${project.projectDir}/src/main/module-info.java") - - target.delete() - source.renameTo(target) -} - -// Configure output jar -jar { - manifest { - attributes( - "Main-Class": "de.staropensource.engine.testapp.Main" - ) - } -} - -// Configure application run task -application { - mainClass.set("de.staropensource.engine.testapp.Main") - applicationDefaultJvmArgs = [ - "-XX:+UnlockDiagnosticVMOptions", - - // Display GC log - //"-Xlog:gc", - - // Log compilation of methods - //"-XX:+PrintCompilation", - //"-XX:+PrintInlining", - - // Set log level to DIAGNOSTIC - "-Dsosengine.base.logLevel=diagnostic", - - // Force writing to standard output - "-Dsosengine.base.logForceStandardOutput=true", - - // Pass classes which should be included if - // reflective sclasspath scanning is disabled. - "-Dsosengine.base.initialIncludeSubsystemClasses=de.staropensource.engine.ansi.AnsiSubsystem,de.staropensource.engine.slf4j_compat.Slf4jCompatSubsystem,de.staropensource.engine.windowing.glfw.GlfwSubsystem", - - // Force rendering platform - "-Dsosengine.rendering.initialPlatform=" + (project.hasProperty("renderingPlatform") ? project.property("renderingPlatform") as String : "any"), - - // Force Jansi to write escape sequences - "-Djansi.mode=force", - ] -} - -// GraalVM native-image plugin configuration -nativeImage { - outputs.upToDateWhen { true } - - graalVmHome = project.hasProperty("graalHome") ? project.property("graalHome") as String : System.getProperty("java.home") - executableName = "sosengine-testapp" - outputDirectory = file("build/bin") - setClasspath(shadowJar) - buildType { BuildTypeSelector build -> - build.executable { - main = 'de.staropensource.engine.testapp.Main' - } - } - - arguments { - add "-H:+UnlockExperimentalVMOptions" - add "--color=always" - add "-march=native" - add "-O3" - add "--no-fallback" - add "--report-unsupported-elements-at-runtime" - add "--enable-http" - add "--enable-https" - add "-H:IncludeResources=.*properties\$" - } -} - -// Register task for executing the generated binary -tasks.register('runNativeImage', Exec) { - outputs.upToDateWhen { false } - dependsOn(nativeImage) - - args( - //"-Xlog:gc", - "-Dsosengine.base.logLevel=diagnostic", - "-Dsosengine.base.logForceStandardOutput=true", - "-Dsosengine.base.initialForceDisableClasspathScanning=true", - "-Dsosengine.base.initialIncludeSubsystemClasses=de.staropensource.engine.ansi.AnsiSubsystem,de.staropensource.engine.slf4j_compat.Slf4jCompatSubsystem,de.staropensource.engine.windowing.glfw.GlfwSubsystem", - "-Dsosengine.rendering.initialPlatform=" + (project.hasProperty("renderingPlatform") ? project.property("renderingPlatform") as String : "any"), - "-Djansi.mode=force", - ) - executable("build/bin/sosengine-testapp") -} diff --git a/testapp/build.gradle.kts b/testapp/build.gradle.kts new file mode 100644 index 000000000..fe9e82895 --- /dev/null +++ b/testapp/build.gradle.kts @@ -0,0 +1,66 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +// Plugins +plugins { + id("java") + id("application") +} + +// Dependencies +dependencies { + // Kotlin support + kotlin(property("dependencyKotlinStdIdentifier") as String) + + // sos!engine + implementation(project(":logging")) + implementation(project(":base")) +} + +// Configure JAR +tasks.withType { + manifest { + attributes.put("Main-Class", "de.staropensource.engine.testapp.MainKt") + } +} + +// Configure application +application { + mainClass = "de.staropensource.engine.testapp.Main" + applicationDefaultJvmArgs = listOf( + // JVM + // -> VM option unlocks + "-XX:+UnlockDiagnosticVMOptions", + + // -> Display GC log + //"-Xlog:gc", + + // -> Method compilation logging + //"-XX:+PrintCompilation", + //"-XX:+PrintInlining", + + // Jansi + // -> Force writing ANSI + "-Djansi.mode=force", + + // sos!engine + // *none yet* + ) +} diff --git a/testapp/gradle b/testapp/gradle deleted file mode 120000 index 3337596a2..000000000 --- a/testapp/gradle +++ /dev/null @@ -1 +0,0 @@ -../gradle \ No newline at end of file diff --git a/testapp/gradlew b/testapp/gradlew deleted file mode 120000 index 502f5a2d3..000000000 --- a/testapp/gradlew +++ /dev/null @@ -1 +0,0 @@ -../gradlew \ No newline at end of file diff --git a/testapp/gradlew.bat b/testapp/gradlew.bat deleted file mode 120000 index 284013288..000000000 --- a/testapp/gradlew.bat +++ /dev/null @@ -1 +0,0 @@ -../gradlew.bat \ No newline at end of file diff --git a/testapp/src/main/java/de/staropensource/engine/testapp/Main.java b/testapp/src/main/java/de/staropensource/engine/testapp/Main.java deleted file mode 100644 index d0b826321..000000000 --- a/testapp/src/main/java/de/staropensource/engine/testapp/Main.java +++ /dev/null @@ -1,179 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.testapp; - -import de.staropensource.engine.base.Engine; -import de.staropensource.engine.base.annotation.EventListener; -import de.staropensource.engine.base.implementable.EventListenerCode; -import de.staropensource.engine.base.implementable.helper.EventHelper; -import de.staropensource.engine.base.logging.Logger; -import de.staropensource.engine.base.type.vector.Vec2i; -import de.staropensource.engine.rendering.event.InputEvent; -import de.staropensource.engine.rendering.renderer.Renderer; -import de.staropensource.engine.rendering.type.FrameHandler; -import de.staropensource.engine.rendering.type.Window; -import de.staropensource.engine.rendering.type.Key; -import de.staropensource.engine.rendering.type.KeyState; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -/** - * The main class of the sos!engine development application. - * - * @since v1-alpha0 - */ -@SuppressWarnings({ "JavadocDeclaration" }) -public final class Main { - /** - * Contains the class instance. - * - * @since v1-alpha0 - * -- GETTER -- - * Returns the class instance. - * - * @return class instance - * @since v1-alpha0 - */ - @Getter - private static final Main instance = new Main(); - - /** - * Contains whether or not the - * render loop shall be terminated. - * - * @since v1-alpha2 - */ - private boolean shutdown; - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha6 - */ - private Main() {} - - /** - * The program's entrypoint. - * Calls {@link #run()} after invocation. - * - * @see #run() - * @param args program's command line arguments - * @since v1-alpha0 - */ - public static void main(String @NotNull [] args) { - getInstance().run(); - } - - /** - * The program's entrypoint except it's not static. - * Here's where the "real magic" happens. - * - * @see #main(String[]) - * @since v1-alpha0 - */ - public void run() { - try { - // Specify subsystems to load - System.setProperty( - "sosengine.base.initialIncludeSubsystemClasses", ( - System.getProperty("sosengine.base.initialIncludeSubsystemClasses") == null - ? "" : System.getProperty("sosengine.base.initialIncludeSubsystemClasses") + "," - ) + "de.staropensource.engine.windowing.WindowingSubsystem" - ); - - // Initialize sos!engine - try { - Engine.initialize(); - } catch (Exception exception) { - return; - } - - // Register events - EventHelper.registerEvent(InputEvent.class, new EventListenerCode() { - @Override - public void run(Object... arguments) { - onInput((Window) arguments[0], (Key) arguments[1], (KeyState) arguments[2]); - } - }); - - // Say hello to the world! - Logger.info("Hello world!"); - - // Create window - Window window; - try { - // Build window - window = new Window.Builder() - .setName("sosengine-testapp") - .setTitle("test application window") - //.setIcons(new Path[]{ new File("/home/jeremystartm/Code/StarOpenSource/Engine/dist/branding/current.png").toPath() }) - .setSize(new Vec2i(960, 540)) - .setPosition(new Vec2i(10, 10)) - .build(); - } catch (Throwable throwable) { - Logger.crash("Window.Builder#build() failed", throwable); - return; - } - - if (window == null) { - Logger.crash("'window' is null"); - return; - } - - // Add frame handlers - Renderer.addFrameHandler(new FrameHandler() { - @Override - public @NotNull FrameHandler.Priority getPriority() { - return Priority.DEFAULT; - } - @Override - public void run() { - if (shutdown || window.isClosureRequested()) - Engine.getInstance().shutdown(); - - window.setPosition(new Vec2i((int) Renderer.getFrameCount() / 10, (int) Renderer.getFrameCount() / 10)); - } - }); - - // Start renderer - Renderer.start(); - } catch (Exception exception) { - Logger.crash("Caught throwable in main thread:", exception); - } - } - - /** - * Handles input events. - * - * @param window origin window - * @param key key pressed - * @param state key state - * @since v1-alpha2 - */ - @EventListener(event = InputEvent.class) - @SuppressWarnings({ "unused" }) - private static void onInput(@Nullable Window window, @NotNull Key key, @NotNull KeyState state) { - if (key == Key.ESCAPE && instance != null) { - Logger.diag("ESC pressed, setting shutdown flag"); - instance.shutdown = true; - } - } -} diff --git a/testapp/src/main/java/de/staropensource/engine/testapp/package-info.java b/testapp/src/main/java/de/staropensource/engine/testapp/package-info.java deleted file mode 100644 index c07280a52..000000000 --- a/testapp/src/main/java/de/staropensource/engine/testapp/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - STAROPENSOURCE ENGINE SOURCE FILE - Copyright (c) 2024 The StarOpenSource Engine Authors - Licensed under the GNU Affero General Public License v3 - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as - published by the Free Software Foundation, either version 3 of the - License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - */ - -/** - * Code for the sos!engine development application. - * You can always safely ignore everything in this package. - * - * @since v1-alpha0 - */ -package de.staropensource.engine.testapp; diff --git a/testapp/src/main/java/module-info.java b/testapp/src/main/java/module-info.java deleted file mode 100644 index 6251ef07b..000000000 --- a/testapp/src/main/java/module-info.java +++ /dev/null @@ -1,11 +0,0 @@ -/** - * The sos!engine test application, used by engine developers to test their changes. - * This module is very uninteresting for non-engine developers. - * - * @since v1-alpha5 - */ -open module sosengine.testapp { - // Dependencies - // -> Engine - requires sosengine.rendering; -} diff --git a/testapp/src/main/kotlin/de/staropensource/engine/testapp/Main.kt b/testapp/src/main/kotlin/de/staropensource/engine/testapp/Main.kt new file mode 100644 index 000000000..f4140f660 --- /dev/null +++ b/testapp/src/main/kotlin/de/staropensource/engine/testapp/Main.kt @@ -0,0 +1,63 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.staropensource.engine.testapp + +import de.staropensource.engine.base.Engine +import de.staropensource.engine.logging.Logger + +/** + * Testing program for the StarOpenSource Engine. + * + * @since v1-alpha10 + */ +class Main { + /** + * Companion object of [Main]. + * + * @since v1-alpha10 + */ + companion object { + /** + * The program entrypoint. + * + * @param arguments array of arguments + * @since v1-alpha10 + */ + @JvmStatic + fun main(arguments: Array) { + // Get log channel + val logger: Logger = Logger(channel = "testapp") + + // Initialize engine + Engine.initialize() + + // Print hello world + logger.info("Hello World! Caused by and \\.") + } + } + + /** + * Initializes this class. + * + * @since v1-alpha10 + */ + private constructor() +} diff --git a/base/src/main/java/de/staropensource/engine/base/event/package-info.java b/testapp/src/main/kotlin/de/staropensource/engine/testapp/package-info.kt similarity index 69% rename from base/src/main/java/de/staropensource/engine/base/event/package-info.java rename to testapp/src/main/kotlin/de/staropensource/engine/testapp/package-info.kt index e4c182a64..26251840e 100644 --- a/base/src/main/java/de/staropensource/engine/base/event/package-info.java +++ b/testapp/src/main/kotlin/de/staropensource/engine/testapp/package-info.kt @@ -2,6 +2,7 @@ * STAROPENSOURCE ENGINE SOURCE FILE * Copyright (c) 2024 The StarOpenSource Engine Authors * Licensed under the GNU Affero General Public License v3 + * with an exception allowing classpath linking. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -18,8 +19,14 @@ */ /** - * Events. There's nothing more to say. + * Test application for the StarOpenSource Engine. * - * @since v1-alpha1 + * This application is used for debugging + * and testing during the development of + * the engine. This is likely not very + * interesting to you, unless you are an + * actual StarOpenSource Engine developer. + * + * @since v1-alpha10 */ -package de.staropensource.engine.base.event; +package de.staropensource.engine.testapp; diff --git a/testing/build.gradle b/testing/build.gradle deleted file mode 100644 index dd8f0ae09..000000000 --- a/testing/build.gradle +++ /dev/null @@ -1,113 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -// Plugins -plugins { - id("java") - id("io.freefair.lombok") version("${pluginLombok}") - id("maven-publish") -} - -// Dependencies -dependencies { - // Lombok - compileOnly("org.projectlombok:lombok:${dependencyLombok}") - annotationProcessor("org.projectlombok:lombok:${dependencyLombok}") - - // JetBrains Annotations - compileOnly("org.jetbrains:annotations:${dependencyJetbrainsAnnotations}") - - // JUnit - implementation(platform("org.junit:junit-bom:${dependencyJunit}")) - implementation("org.junit.jupiter:junit-jupiter") - - // Project - implementation(project(":base")) -} - -// Javadoc configuration -javadoc { - outputs.upToDateWhen { false } // Force task execution - dependsOn(delombok) // Make sure the source is delomboked first - - javadoc { - setClasspath(files(project.sourceSets.main.compileClasspath)) // Include dependencies - - options { - if (new File(projectDir, "src/main/javadoc/theme.css").exists()) - stylesheetFile = new File(projectDir, "src/main/javadoc/theme.css") // Theming is cool :3 - setMemberLevel(JavadocMemberLevel.PUBLIC) // Only display public stuff - setOverview("src/main/javadoc/overview.html") // We want a custom overview page to greet the visitor - setLocale("en_US") // 你好 - addStringOption("Xwerror", "-quiet") // Fail build on warning - - setJFlags([ - "-Duser.language=en_US" // See above - ]) - } - } -} - -// Include javadoc and source jar during publishing -java { - withJavadocJar() - withSourcesJar() -} - -// Build publishing configuration -// Note: You can safely ignore any errors or warnings thrown by your IDE here -publishing { - repositories { - maven { - name = "staropensource" - url = uri("https://mvn.staropensource.de/engine") - credentials(org.gradle.api.credentials.PasswordCredentials) - authentication { - //noinspection GroovyAssignabilityCheck - basic (BasicAuthentication) - } - } - } - publications { - //noinspection GroovyAssignabilityCheck - maven (MavenPublication) { - groupId = group - artifactId = project.getName() - version = version - //noinspection GroovyAssignabilityCheck - from components.java - } - } -} - -// Fix delombok task -delombok.doFirst { - File target = file("${project.projectDir}/src/main/module-info.java") - File source = file("${project.projectDir}/src/main/java/module-info.java") - - target.delete() - source.renameTo(target) -} -delombok.doLast { - File target = file("${project.projectDir}/src/main/java/module-info.java") - File source = file("${project.projectDir}/src/main/module-info.java") - - target.delete() - source.renameTo(target) -} diff --git a/testing/gradle b/testing/gradle deleted file mode 120000 index 3337596a2..000000000 --- a/testing/gradle +++ /dev/null @@ -1 +0,0 @@ -../gradle \ No newline at end of file diff --git a/testing/gradlew b/testing/gradlew deleted file mode 120000 index 502f5a2d3..000000000 --- a/testing/gradlew +++ /dev/null @@ -1 +0,0 @@ -../gradlew \ No newline at end of file diff --git a/testing/gradlew.bat b/testing/gradlew.bat deleted file mode 120000 index 284013288..000000000 --- a/testing/gradlew.bat +++ /dev/null @@ -1 +0,0 @@ -../gradlew.bat \ No newline at end of file diff --git a/testing/src/main/java/de/staropensource/engine/testing/TestBase.java b/testing/src/main/java/de/staropensource/engine/testing/TestBase.java deleted file mode 100644 index 387749dfd..000000000 --- a/testing/src/main/java/de/staropensource/engine/testing/TestBase.java +++ /dev/null @@ -1,259 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.testing; - -import de.staropensource.engine.base.Engine; -import de.staropensource.engine.base.EngineConfiguration; -import de.staropensource.engine.base.EngineInternals; -import de.staropensource.engine.base.type.InternalAccessArea; -import de.staropensource.engine.base.type.Tristate; -import de.staropensource.engine.base.type.logging.LogLevel; -import lombok.Getter; -import org.jetbrains.annotations.NotNull; -import org.junit.jupiter.api.AfterAll; - -import java.util.*; - -/** - * The base class for all tests involving the StarOpenSource Engine. - *

- * It handles unit testing configuration, engine startups and shutdowns, - * provides a logger instance (see {@link UnitLogger}) and much more. - * - * @since v1-alpha4 - */ -@SuppressWarnings({ "JavadocDeclaration" }) -public class TestBase { - /** - * Contains the class instance. - * - * @since v1-alpha4 - * -- GETTER -- - * Returns the class instance. - * - * @return class instance - * @since v1-alpha4 - */ - @Getter - private static TestBase instance; - - /** - * Contains the {@link UnitLogger} for this instance. - * - * @see UnitLogger - * @since v1-alpha4 - * -- GETTER -- - * Returns the {@link UnitLogger} for this instance. - * - * @return {@link UnitLogger} instance - * @see UnitLogger - * @since v1-alpha4 - */ - @Getter - private final UnitLogger logger = new UnitLogger(getClass()); - - /** - * Contains the test control mode. - * Can be {@link Tristate#TRUE} for force-enable, {@link Tristate#FALSE} for force-disable or {@link Tristate#UNSET} for no test execution control. - * - * @since v1-alpha4 - */ - private @NotNull Tristate controlMode = Tristate.UNSET; - - /** - * Contains all class names which should be enabled/disabled during testing. - * - * @since v1-alpha4 - */ - private final @NotNull Set<@NotNull String> controlClasses = new HashSet<>(); - - /** - * Determines whether to issue a warning when a restricted test method is invoked. - * - * @since v1-alpha4 - */ - private boolean controlWarning; - - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha4 - */ - public TestBase() { - // JUnit for some reason recreates the test class every time a test method is called - // Therefore we don't throw or complain here, instead we just override 'instance' and - // hope nothing breaks. - instance = this; - - configureEnvironment(); - } - - /** - * Configures the testing environment. - * - * @since v1-alpha4 - */ - private void configureEnvironment() { - for (Object propertyObject : System.getProperties().keySet()) { - String property = (String) propertyObject; - - // Ignore non-testing-related properties - if (!property.startsWith("test.")) - continue; - - // Strip "test." prefix from 'property' - String prefix = "test."; - property = property.substring(5); - - switch (property) { - // Set control mode - case "control.mode" -> { - switch (System.getProperties().getProperty(prefix + property)) { - case "force-enable" -> controlMode = Tristate.TRUE; - case "force-disable" -> controlMode = Tristate.FALSE; - default -> controlMode = Tristate.UNSET; - } - } - - // Set control classes - case "control.classes" -> controlClasses.addAll(Arrays.stream(System.getProperties().getProperty(prefix + property).split(",")).toList()); - - // Set control warning flag - case "control.warning" -> controlWarning = Objects.equals(System.getProperties().getProperty(prefix + property), "true"); - - // Set logger level - case "loggerLevel" -> { - try { - UnitConfig.loggerLevel = LogLevel.valueOf(System.getProperties().getProperty(prefix + property).toUpperCase(Locale.ROOT)); - } catch (IllegalStateException exception) { - logger.warn("Invalid value of property '" + prefix + property + "': " + System.getProperties().getProperty(prefix + property)); - } - } - } - } - } - - /** - * Makes all the necessary calls your method likely executes upon being invoked. - * Those being: - * - {@link #isRestricted()} - * - {@link UnitLogger#testCall(String, Object...)} - * - {@link #initializeEngine()} - *

- * Make sure return from your test method if this method returns {@code true}. - * - * @param initializeEngine if the engine should be initialized automatically - * @param method test method name - * @param arguments test method arguments - * @return {@code true} if the test method should return - * @since v1-alpha4 - */ - protected final boolean performMethodCalls(boolean initializeEngine, @NotNull String method, @NotNull Object... arguments) { - if (isRestricted()) - return true; - - logger.testCall(method, arguments); - - if (initializeEngine) - initializeEngine(); - return false; - } - - /** - * Makes all the necessary calls your method likely executes upon being invoked. - * Those being: - * - {@link #isRestricted()} - * - {@link UnitLogger#testCall(String, Object...)} - * - {@link #initializeEngine()} - *

- * Make sure return from your test method if this method returns {@code true}. - * - * @param method test method name - * @param arguments test method arguments - * @return {@code true} if the test method should return - * @see #performMethodCalls(boolean, String, Object...) - * @since v1-alpha4 - */ - protected final boolean performMethodCalls(@NotNull String method, @NotNull Object... arguments) { - return performMethodCalls(true, method, arguments); - } - - /** - * Checks whether the test class has been restricted. - * - * @param printWarning if a warning should be printed about the class restriction - * @return restricted status - * @since v1-alpha4 - */ - public final boolean isRestricted(boolean printWarning) { - String className = getClass().getName().replace(getClass().getPackage().getName() + ".", ""); - boolean allowed = controlMode == Tristate.TRUE && !controlClasses.contains(className) - || controlMode == Tristate.FALSE && controlClasses.contains(className); - - if (allowed && printWarning && controlWarning) - logger.warn("Test class " + className + " is restricted and it's tests will not be executed"); - - return allowed; - } - - /** - * Checks whether the test class has been restricted. - * - * @return restricted status - * @since v1-alpha4 - */ - public final boolean isRestricted() { - return isRestricted(true); - } - - /** - * Initializes the engine. - *

- * HIGHLY recommended over manually invoking {@link Engine#Engine()}. - * - * @since v1-alpha4 - */ - public void initializeEngine() { - if (Engine.getInstance() == null) { - logger.diag("Initializing engine"); - System.getProperties().setProperty("sosengine.base.loggerLevel", "crash"); - Engine.initialize(); - EngineConfiguration.getInstance().loadDefaultConfiguration(); - EngineInternals.getInstance().setShutdownHandler(exitCode -> {}); - EngineInternals.getInstance().restrictAccess(InternalAccessArea.SHUTDOWN_HANDLER_UPDATE); - } - } - - /** - * Shuts the engine down safely. - *

- * DO NOT CALL METHOD THIS MANUALLY. - * - * @since v1-alpha4 - */ - @AfterAll - protected static void shutdownEngine() { - if (Engine.getInstance() != null) { - System.getProperties().setProperty("sosengine.base.loggerLevel", "crash"); - EngineConfiguration.getInstance().loadConfiguration(); - Engine.getInstance().shutdown(); - } - } -} diff --git a/testing/src/main/java/de/staropensource/engine/testing/UnitConfig.java b/testing/src/main/java/de/staropensource/engine/testing/UnitConfig.java deleted file mode 100644 index 6b12b61cf..000000000 --- a/testing/src/main/java/de/staropensource/engine/testing/UnitConfig.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.testing; - -import de.staropensource.engine.base.type.logging.LogLevel; - -/** - * Static configuration for unit test classes. - * - * @since v1-alpha4 - */ -public final class UnitConfig { - /** - * Creates and initializes an instance of this class. - * - * @since v1-alpha6 - */ - private UnitConfig() {} - - /** - * Configures the {@link LogLevel} for the {@link UnitLogger}. - *

- * Note: The log level {@code SILENT_WARNING} has been repurposed for printing test calls. - * - * @see UnitLogger - * @since v1-alpha4 - */ - public static LogLevel loggerLevel = LogLevel.SILENT_WARNING; -} diff --git a/testing/src/main/java/de/staropensource/engine/testing/UnitLogger.java b/testing/src/main/java/de/staropensource/engine/testing/UnitLogger.java deleted file mode 100644 index d9d3cad5d..000000000 --- a/testing/src/main/java/de/staropensource/engine/testing/UnitLogger.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.engine.testing; - -import de.staropensource.engine.base.type.logging.LogLevel; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -/** - * Provides an extremely dead simple logging system for unit tests. - * - * @since v1-alpha0 - */ -public final class UnitLogger { - /** - * Contains the parent class this instance belongs to. - * - * @since v1-alpha4 - */ - private final Class clazz; - - /** - * Creates and initializes an instance of this class. - * - * @param clazz parent class - * @since v1-alpha4 - */ - public UnitLogger(Class clazz) { - this.clazz = clazz; - } - - /** - * Processes and prints a log message. - * - * @param level level - * @param message message - * @param additionalStuff additional arguments - * @since v1-alpha4 - */ - private void log(@NotNull LogLevel level, @NotNull String message, @Nullable Object... additionalStuff) { - String messageSingle = message; - String levelName; - - if (level.compareTo(UnitConfig.loggerLevel) < 0) - return; - - switch (level) { - case CRASH -> levelName = "CRSH"; - case ERROR -> levelName = "ERR!"; - case SILENT_WARNING -> { - levelName = "TEST"; - - StringBuilder args = new StringBuilder(); - boolean stringQuotes; - for (Object arg : additionalStuff) { - stringQuotes = arg instanceof String; - - // Print full class path for enums - if (arg instanceof Enum) { - arg = arg.getClass().getName() + "." + ((Enum) arg).name(); - } - - if (!args.isEmpty()) args.append(" "); - args.append("'"); - if (stringQuotes) - args.append("\"").append(arg).append("\""); - else - args.append(arg); - args.append("'"); - } - - messageSingle = "Executing test " + message + "(" + args + ")"; - } - default -> levelName = level.name(); - } - - System.out.println("[" + levelName + " " + clazz.getName() + "] " + messageSingle); - } - - /** - * Prints a diagnostic message. - * - * @param message message - * @since v1-alpha4 - */ - public void diag(@NotNull String message) { - log(LogLevel.DIAGNOSTIC, message); - } - - /** - * Prints a verbose message. - * - * @param message message - * @since v1-alpha4 - */ - public void verb(@NotNull String message) { - log(LogLevel.VERBOSE, message); - } - - /** - * Prints a test call message. - * - * @param methodName name of the test method - * @param methodArgs arguments of the test method - * @since v1-alpha4 - */ - public void testCall(@NotNull String methodName, @Nullable Object... methodArgs) { - log(LogLevel.SILENT_WARNING, methodName, methodArgs); - } - - /** - * Prints an informational message. - * - * @param message message - * @since v1-alpha4 - */ - public void info(@NotNull String message) { - log(LogLevel.INFORMATIONAL, message); - } - - /** - * Prints a warning message. - * - * @param message message - * @since v1-alpha4 - */ - public void warn(@NotNull String message) { - log(LogLevel.WARNING, message); - } - - /** - * Prints an error message. - * - * @param message message - * @since v1-alpha4 - */ - public void error(@NotNull String message) { - log(LogLevel.ERROR, message); - } -} diff --git a/testing/src/main/java/de/staropensource/engine/testing/package-info.java b/testing/src/main/java/de/staropensource/engine/testing/package-info.java deleted file mode 100644 index 659766e8e..000000000 --- a/testing/src/main/java/de/staropensource/engine/testing/package-info.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Authors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/** - * Contains the code required for writing tests - * fast and efficiently in conjunction with the - * StarOpenSource Engine. - * - * @since v1-alpha4 - */ -package de.staropensource.engine.testing; diff --git a/testing/src/main/java/module-info.java b/testing/src/main/java/module-info.java deleted file mode 100644 index b5d5ce9dd..000000000 --- a/testing/src/main/java/module-info.java +++ /dev/null @@ -1,20 +0,0 @@ -/** - * StarOpenSource Engine testing tools. - * - * @since v1-alpha4 - */ -module sosengine.testing { - // Dependencies - // -> Engine - requires transitive sosengine.base; - // -> Libraries - requires transitive static lombok; - requires transitive org.jetbrains.annotations; - requires org.junit.jupiter.api; - - // API access - exports de.staropensource.engine.testing; - - // Reflection access - opens de.staropensource.engine.testing; -} diff --git a/testing/src/main/javadoc/overview.html b/testing/src/main/javadoc/overview.html deleted file mode 100644 index 77ec048a2..000000000 --- a/testing/src/main/javadoc/overview.html +++ /dev/null @@ -1,22 +0,0 @@ - - -

Welcome to the sos!engine API documentation!
- You are currently in the documentation for the testing subproject, which provides classes useful for testing the engine.

- diff --git a/testing/src/main/javadoc/theme.css b/testing/src/main/javadoc/theme.css deleted file mode 120000 index 681484a8e..000000000 --- a/testing/src/main/javadoc/theme.css +++ /dev/null @@ -1 +0,0 @@ -../../../../src/main/javadoc/theme.css \ No newline at end of file