diff --git a/.licenserc.json b/.licenserc.json index 7bfb55f..a9f6052 100644 --- a/.licenserc.json +++ b/.licenserc.json @@ -1,18 +1,13 @@ { - "**/*.cs": [ - "/*", - "MIT License", - "", - "Copyright (c) Léo Corporation" - ], - "ignore": [ - "**/*.Designer.cs", - "PeyrSharp/Properties/", - "PeyrSharp.Core/obj/", - "PeyrSharp.Enums/obj/", - "PeyrSharp.Exceptions/obj/", - "PeyrSharp.UiHelpers/obj/", - "PeyrSharp.Env/obj/", - "PeyrSharp/obj/" - ] -} \ No newline at end of file + "**/*.cs": ["/*", "MIT License", "", "Copyright (c) Devyus"], + "ignore": [ + "**/*.Designer.cs", + "PeyrSharp/Properties/", + "PeyrSharp.Core/obj/", + "PeyrSharp.Enums/obj/", + "PeyrSharp.Exceptions/obj/", + "PeyrSharp.UiHelpers/obj/", + "PeyrSharp.Env/obj/", + "PeyrSharp/obj/" + ] +} diff --git a/Documentation/.vitepress/cache/deps/_metadata.json b/Documentation/.vitepress/cache/deps/_metadata.json index 086c468..394087d 100644 --- a/Documentation/.vitepress/cache/deps/_metadata.json +++ b/Documentation/.vitepress/cache/deps/_metadata.json @@ -1,11 +1,11 @@ { - "hash": "5a1276fe", - "browserHash": "3a29ead5", + "hash": "d97f0896", + "browserHash": "c0859cb5", "optimized": { "vue": { "src": "../../../node_modules/vue/dist/vue.runtime.esm-bundler.js", "file": "vue.js", - "fileHash": "a2b45b3f", + "fileHash": "cf7e76c1", "needsInterop": false } }, diff --git a/Documentation/.vitepress/cache/deps/package.json b/Documentation/.vitepress/cache/deps/package.json index 7c34deb..3dbc1ca 100644 --- a/Documentation/.vitepress/cache/deps/package.json +++ b/Documentation/.vitepress/cache/deps/package.json @@ -1 +1,3 @@ -{"type":"module"} \ No newline at end of file +{ + "type": "module" +} diff --git a/Documentation/.vitepress/config.js b/Documentation/.vitepress/config.js index 2ee9f67..f934f0a 100644 --- a/Documentation/.vitepress/config.js +++ b/Documentation/.vitepress/config.js @@ -1,368 +1,376 @@ export default { - title: 'PeyrSharp', - logo: '/logo.png', - description: 'A C# library designed to make developers\' job easier.', - lastUpdated: true, - outDir: '../docs', - head: [['link', { rel: 'icon', href: '/logo.png' }]], - themeConfig: { - nav: [ - { text: 'Guide', link: '/get-started' }, - { text: 'Reference', link: '/reference' }, - ], - repo: 'Leo-Corporation/PeyrSharp', - docsDir: 'documentation', - docsBranch: 'main', - editLink: { - pattern: 'https://github.com/Leo-Corporation/PeyrSharp/edit/main/Documentation/:path', - text: 'Edit this page on GitHub' - }, - footer: { - message: 'Released under the MIT License.', - copyright: 'Copyright © 2023 Devyus/Léo Corporation' - }, - algolia: { - appId: 'JVAJ1JZ6HO', - apiKey: '0ef6a29a84fc5698ce54fde4381bf281', - indexName: 'peyrsharp' - }, - socialLinks: [ - { - icon: 'github', link: 'https://github.com/Leo-Corporation/PeyrSharp' - }, - { - icon: 'twitter', link: 'https://twitter.com/LeoCorpNews' - }, - { - icon: 'youtube', link: 'https://www.youtube.com/channel/UC283Dtf6EJ8eKfRoo0ISmqg' - } - ], - outline: [1, 3], - sidebar: { - '/core/': sidebar(), - 'core': sidebar(), - 'get-started': superSidebar(), - '/ui-helpers/': uiHelpersSidebar(), - "ui-helpers": uiHelpersSidebar(), - '/env/': envSidebar(), - 'env': envSidebar(), - '/extensions/': extSidebar(), - '/extension': extSidebar(), - 'reference': superSidebar(), - 'enumerations': superSidebar(), - 'exceptions': superSidebar() - } - } -} + title: "PeyrSharp", + logo: "/logo.png", + description: "A C# library designed to make developers' job easier.", + lastUpdated: true, + outDir: "../docs", + head: [["link", { rel: "icon", href: "/logo.png" }]], + themeConfig: { + nav: [ + { text: "Guide", link: "/get-started" }, + { text: "Reference", link: "/reference" }, + ], + repo: "DevyusCode/PeyrSharp", + docsDir: "documentation", + docsBranch: "main", + editLink: { + pattern: + "https://github.com/DevyusCode/PeyrSharp/edit/main/Documentation/:path", + text: "Edit this page on GitHub", + }, + footer: { + message: "Released under the MIT License.", + copyright: "Copyright © 2023 Devyus", + }, + algolia: { + appId: "JVAJ1JZ6HO", + apiKey: "0ef6a29a84fc5698ce54fde4381bf281", + indexName: "peyrsharp", + }, + socialLinks: [ + { + icon: "github", + link: "https://github.com/DevyusCode/PeyrSharp", + }, + { + icon: "twitter", + link: "https://twitter.com/LeoCorpNews", + }, + { + icon: "youtube", + link: "https://www.youtube.com/channel/UC283Dtf6EJ8eKfRoo0ISmqg", + }, + ], + outline: [1, 3], + sidebar: { + "/core/": sidebar(), + core: sidebar(), + "get-started": superSidebar(), + "/ui-helpers/": uiHelpersSidebar(), + "ui-helpers": uiHelpersSidebar(), + "/env/": envSidebar(), + env: envSidebar(), + "/extensions/": extSidebar(), + "/extension": extSidebar(), + reference: superSidebar(), + enumerations: superSidebar(), + exceptions: superSidebar(), + }, + }, +}; function superSidebar() { - return [ - { - text: 'Core', - collapsed: false, - items: sidebar() - }, - ...envSidebar(), - { - text: 'Enums', - collapsed: false, - items: [ - { - text: 'Home', - link: '/enumerations' - } - ] - }, - { - text: 'Exceptions', - collapsed: false, - items: [ - { - text: 'Home', - link: '/exceptions' - } - ] - }, - ...extSidebar(), - ...uiHelpersSidebar() - ] + return [ + { + text: "Core", + collapsed: false, + items: sidebar(), + }, + ...envSidebar(), + { + text: "Enums", + collapsed: false, + items: [ + { + text: "Home", + link: "/enumerations", + }, + ], + }, + { + text: "Exceptions", + collapsed: false, + items: [ + { + text: "Home", + link: "/exceptions", + }, + ], + }, + ...extSidebar(), + ...uiHelpersSidebar(), + ]; } function extSidebar() { - return [ - { - text: 'Extensions', - collapsed: false, - items: [ - { - text: 'Home', - link: '/extensions' - }, - { - text: 'Array', - link: '/extensions/array' - }, - { - text: 'Double', - link: '/extensions/double' - }, - { - text: 'Int', - link: '/extensions/int' - }, - { - text: 'String', - link: '/extensions/string' - } - ] - } - ] + return [ + { + text: "Extensions", + collapsed: false, + items: [ + { + text: "Home", + link: "/extensions", + }, + { + text: "Array", + link: "/extensions/array", + }, + { + text: "Double", + link: "/extensions/double", + }, + { + text: "Int", + link: "/extensions/int", + }, + { + text: "String", + link: "/extensions/string", + }, + ], + }, + ]; } function envSidebar() { - return [ - { - text: 'Env', - collapsed: false, - items: [ - { - text: 'Home', - link: '/env' - }, - { - text: 'FileSys', - link: '/env/filesys' - }, - { - text: 'Logger', - link: '/env/logger' - }, - { - text: 'Sys', - link: '/env/system' - }, - { - text: 'Update', - link: '/env/update' - } - ] - } - ] + return [ + { + text: "Env", + collapsed: false, + items: [ + { + text: "Home", + link: "/env", + }, + { + text: "FileSys", + link: "/env/filesys", + }, + { + text: "Logger", + link: "/env/logger", + }, + { + text: "Sys", + link: "/env/system", + }, + { + text: "Update", + link: "/env/update", + }, + ], + }, + ]; } function sidebar() { - return [ - { - text: 'Converters', - collapsed: false, - items: [ - { - text: 'Home', - link: '/core/converters' - }, - { - text: 'Angle', - link: '/core/converters/angle' - }, - { - text: 'Colors', - collapsed: true, - items: [ - { - text: 'RGB', - link: '/core/converters/colors/rgb' - }, - { - text: 'HEX', - link: '/core/converters/colors/hex' - }, - { - text: 'HSV', - link: '/core/converters/colors/hsv' - }, - ] - }, - { - text: 'Distances', - link: '/core/converters/distances' - }, - { - text: 'Energies', - link: '/core/converters/energies' - }, - { - text: 'Masses', - link: '/core/converters/masses' - }, - { - text: 'Speeds', - link: '/core/converters/speeds' - }, - { - text: 'Storage', - link: '/core/converters/storage' - }, - { - text: 'Temperatures', - link: '/core/converters/temperatures' - }, - { - text: 'Time', - link: '/core/converters/time' - }, - { - text: 'Volumes', - link: '/core/converters/volumes' - }, - ] - }, - { - text: 'Crypt', - collapsed: false, - items: [ - { - text: 'Crypt', - link: '/core/crypt' - } - ] - }, - { - text: 'Guid', - collapsed: false, - items: [ - { - text: 'GuidGen', - link: '/core/guid' - }, - { - text: 'GuidOptions', - link: '/core/guid-options' - } - ] - }, - { - text: 'Internet', - collapsed: false, - items: [ - { - text: 'Internet', - link: '/core/internet' - } - ] - }, - { - text: 'Maths', - collapsed: false, - items: [ - { - text: 'Home', - link: '/core/maths' - }, - { - text: 'Algebra', - link: '/core/maths/algebra' - }, - { - text: 'Geometry', - collapsed: true, - link: '/core/maths/geometry', - items: [ - { - text: 'Circle', - link: '/core/maths/geometry/circle' - }, - { - text: 'Cone', - link: '/core/maths/geometry/cone' - }, - { - text: 'Cube', - link: '/core/maths/geometry/cube' - }, - { - text: 'Cylinder', - link: '/core/maths/geometry/cylinder' - }, - { - text: 'Diamond', - link: '/core/maths/geometry/diamond' - }, - { - text: 'Hexagon', - link: '/core/maths/geometry/hexagon' - }, - { - text: 'Pyramid', - link: '/core/maths/geometry/pyramid' - }, - { - text: 'Rectangle', - link: '/core/maths/geometry/rectangle' - }, - { - text: 'Sphere', - link: '/core/maths/geometry/sphere' - }, - { - text: 'Triangle', - link: '/core/maths/geometry/triangle' - }, - ] - }, - { - text: 'Percentages', - link: '/core/maths/percentages' - }, - { - text: 'Proba', - link: '/core/maths/proba' - }, - { - text: 'Stats', - link: '/core/maths/stats' - }, - { - text: 'Trigonometry', - link: '/core/maths/trigonometry' - } - ] - }, - { - text: 'Password', - collapsed: false, - items: [ - { - text: 'Password', - link: '/core/password' - } - ] - }, - ]; + return [ + { + text: "Converters", + collapsed: false, + items: [ + { + text: "Home", + link: "/core/converters", + }, + { + text: "Angle", + link: "/core/converters/angle", + }, + { + text: "Colors", + collapsed: true, + items: [ + { + text: "RGB", + link: "/core/converters/colors/rgb", + }, + { + text: "HEX", + link: "/core/converters/colors/hex", + }, + { + text: "HSV", + link: "/core/converters/colors/hsv", + }, + ], + }, + { + text: "Distances", + link: "/core/converters/distances", + }, + { + text: "Energies", + link: "/core/converters/energies", + }, + { + text: "Masses", + link: "/core/converters/masses", + }, + { + text: "Speeds", + link: "/core/converters/speeds", + }, + { + text: "Storage", + link: "/core/converters/storage", + }, + { + text: "Temperatures", + link: "/core/converters/temperatures", + }, + { + text: "Time", + link: "/core/converters/time", + }, + { + text: "Volumes", + link: "/core/converters/volumes", + }, + ], + }, + { + text: "Crypt", + collapsed: false, + items: [ + { + text: "Crypt", + link: "/core/crypt", + }, + ], + }, + { + text: "Guid", + collapsed: false, + items: [ + { + text: "GuidGen", + link: "/core/guid", + }, + { + text: "GuidOptions", + link: "/core/guid-options", + }, + ], + }, + { + text: "Internet", + collapsed: false, + items: [ + { + text: "Internet", + link: "/core/internet", + }, + { + text: "StatusInfo", + link: "/core/statusinfo", + }, + ], + }, + { + text: "Maths", + collapsed: false, + items: [ + { + text: "Home", + link: "/core/maths", + }, + { + text: "Algebra", + link: "/core/maths/algebra", + }, + { + text: "Geometry", + collapsed: true, + link: "/core/maths/geometry", + items: [ + { + text: "Circle", + link: "/core/maths/geometry/circle", + }, + { + text: "Cone", + link: "/core/maths/geometry/cone", + }, + { + text: "Cube", + link: "/core/maths/geometry/cube", + }, + { + text: "Cylinder", + link: "/core/maths/geometry/cylinder", + }, + { + text: "Diamond", + link: "/core/maths/geometry/diamond", + }, + { + text: "Hexagon", + link: "/core/maths/geometry/hexagon", + }, + { + text: "Pyramid", + link: "/core/maths/geometry/pyramid", + }, + { + text: "Rectangle", + link: "/core/maths/geometry/rectangle", + }, + { + text: "Sphere", + link: "/core/maths/geometry/sphere", + }, + { + text: "Triangle", + link: "/core/maths/geometry/triangle", + }, + ], + }, + { + text: "Percentages", + link: "/core/maths/percentages", + }, + { + text: "Proba", + link: "/core/maths/proba", + }, + { + text: "Stats", + link: "/core/maths/stats", + }, + { + text: "Trigonometry", + link: "/core/maths/trigonometry", + }, + ], + }, + { + text: "Password", + collapsed: false, + items: [ + { + text: "Password", + link: "/core/password", + }, + ], + }, + ]; } function uiHelpersSidebar() { - return [ - { - text: 'UiHelpers', - collapsed: false, - items: [ - { - text: 'Home', - link: '/ui-helpers' - }, - { - text: 'Screen', - link: '/ui-helpers/screen' - }, - { - text: 'WinForms', - link: '/ui-helpers/winforms' - }, - { - text: 'WPF', - link: '/ui-helpers/wpf' - } - ] - }, - ]; -} \ No newline at end of file + return [ + { + text: "UiHelpers", + collapsed: false, + items: [ + { + text: "Home", + link: "/ui-helpers", + }, + { + text: "Screen", + link: "/ui-helpers/screen", + }, + { + text: "WinForms", + link: "/ui-helpers/winforms", + }, + { + text: "WPF", + link: "/ui-helpers/wpf", + }, + ], + }, + ]; +} diff --git a/Documentation/core/converters/speeds.md b/Documentation/core/converters/speeds.md index caaf839..bb4a7bf 100644 --- a/Documentation/core/converters/speeds.md +++ b/Documentation/core/converters/speeds.md @@ -1,4 +1,5 @@ # Speeds + This page is about the `Speeds` class available in [`PeyrSharp.Core.Converters`](/core/converters.md). You can find here all of its methods. @@ -10,23 +11,25 @@ This class is `static`. The `Speeds` class is part of the `PeyrSharp.Core` module, which is compatible with all of these frameworks and platforms: -| Package/Platform | Windows | macOS | Linux + others | -|------------------ |--------- |------- |---------------- | -| Core | ✅ | ✅ | ✅ | -| **Framework** | **.NET 5** | **.NET 6** | **.NET 7** | -| Core | ✅ | ✅ | ✅ | +| Package/Platform | Windows | macOS | Linux + others | +| ---------------- | ---------- | ---------- | -------------- | +| Core | ✅ | ✅ | ✅ | +| **Framework** | **.NET 5** | **.NET 6** | **.NET 7** | +| Core | ✅ | ✅ | ✅ | ## Methods + ### KnotsToKilometersPerHour(knots) + #### Definition Converts knots to kilometers per hour. #### Arguments -| Type | Name | Meaning | -|----------- |----------- |--------------------------------- | -| `double` | `knots` | The speed in knots. | +| Type | Name | Meaning | +| -------- | ------- | ------------------- | +| `double` | `knots` | The speed in knots. | #### Returns @@ -34,13 +37,13 @@ The equivalent speed in kilometers per hour. #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double speedInKnots = 20.0; double speedInKilometersPerHour = Speeds.KnotsToKilometersPerHour(speedInKnots); Console.WriteLine($"{speedInKnots} knots is equivalent to {speedInKilometersPerHour} km/h"); -~~~ +``` ### KilometersPerHourToKnots(kilometersPerHour) @@ -50,9 +53,9 @@ Converts kilometers per hour to knots. #### Arguments -| Type | Name | Description | -|----------- |---------------------- |--------------------------------- | -| `double` | `kilometersPerHour` | The speed in kilometers per hour. | +| Type | Name | Description | +| -------- | ------------------- | --------------------------------- | +| `double` | `kilometersPerHour` | The speed in kilometers per hour. | #### Returns @@ -60,46 +63,51 @@ The equivalent speed in knots. #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double speedInKilometersPerHour = 40.0; double speedInKnots = Speeds.KilometersPerHourToKnots(speedInKilometersPerHour); Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInKnots} knots"); -~~~ +``` ### KnotsToMilesPerHour(knots) #### Definition + Converts knots to miles per hour. #### Arguments -| Type | Name | Description | -|-----------|-------|--------------------| -| `double` | `knots` | The speed in knots. | + +| Type | Name | Description | +| -------- | ------- | ------------------- | +| `double` | `knots` | The speed in knots. | #### Returns + The equivalent speed in miles per hour. #### Usage -~~~ c# + +```c# using PeyrSharp.Core.Converters; double speedInKnots = 20.0; double speedInMilesPerHour = Speeds.KnotsToMilesPerHour(speedInKnots); Console.WriteLine($"{speedInKnots} knots is equivalent to {speedInMilesPerHour} mph"); -~~~ +``` ### MilesPerHourToKnots(milesPerHour) + #### Definition Converts miles per hour to knots. #### Arguments -| Type | Name | Description | -|----------- |--------------- |--------------------------- | -| `double` | `milesPerHour` | The speed in miles per hour.| +| Type | Name | Description | +| -------- | -------------- | ---------------------------- | +| `double` | `milesPerHour` | The speed in miles per hour. | #### Returns @@ -107,13 +115,13 @@ The equivalent speed in knots. #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double speedInMilesPerHour = 60.0; double speedInKnots = Speeds.MilesPerHourToKnots(speedInMilesPerHour); Console.WriteLine($"{speedInMilesPerHour} miles/hour is equivalent to {speedInKnots} knots"); -~~~ +``` ### KilometersPerHourToMetersPerSecond(kilometersPerHour) @@ -123,9 +131,9 @@ Converts kilometers per hour to meters per second. #### Arguments -| Type | Name | Description | -|---------------------------|---------------------|-----------------------------------------------------| -| `double` | `kilometersPerHour` | The speed in kilometers per hour. | +| Type | Name | Description | +| -------- | ------------------- | --------------------------------- | +| `double` | `kilometersPerHour` | The speed in kilometers per hour. | #### Returns @@ -133,24 +141,25 @@ The equivalent speed in meters per second. #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double speedInKilometersPerHour = 100.0; double speedInMetersPerSecond = Speeds.KilometersPerHourToMetersPerSecond(speedInKilometersPerHour); Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInMetersPerSecond} m/s"); -~~~ +``` ### MetersPerSecondToKilometersPerHour(metersPerSecond) + #### Definition Converts meters per second to kilometers per hour. #### Arguments -| Type | Name | Meaning | -|---------------|-------------------|-----------------------------| -| `double` | `metersPerSecond` | The speed in meters per second. | +| Type | Name | Meaning | +| -------- | ----------------- | ------------------------------- | +| `double` | `metersPerSecond` | The speed in meters per second. | #### Returns @@ -158,24 +167,25 @@ The equivalent speed in kilometers per hour. #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double speedInMetersPerSecond = 10.0; double speedInKilometersPerHour = Speeds.MetersPerSecondToKilometersPerHour(speedInMetersPerSecond); Console.WriteLine($"{speedInMetersPerSecond} m/s is equivalent to {speedInKilometersPerHour} km/h"); -~~~ +``` ### MilesPerHourToKilometersPerHour(milesPerHour) + #### Definition Converts miles per hour to kilometers per hour. #### Arguments -| Type | Name | Description | -|----------- |--------------- |-------------------------------- | -| `double` | `milesPerHour` | The speed in miles per hour. | +| Type | Name | Description | +| -------- | -------------- | ---------------------------- | +| `double` | `milesPerHour` | The speed in miles per hour. | #### Returns @@ -183,24 +193,25 @@ The equivalent speed in kilometers per hour. #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double speedInMilesPerHour = 60.0; double speedInKilometersPerHour = Speeds.MilesPerHourToKilometersPerHour(speedInMilesPerHour); Console.WriteLine($"{speedInMilesPerHour} mph is equivalent to {speedInKilometersPerHour} km/h"); -~~~ +``` ### KilometersPerHourToMilesPerHour(kilometersPerHour) + #### Definition Converts kilometers per hour to miles per hour. #### Arguments -| Type | Name | Description | -|----------- |--------------------- |--------------------------------------- | -| `double` | `kilometersPerHour` | The speed in kilometers per hour. | +| Type | Name | Description | +| -------- | ------------------- | --------------------------------- | +| `double` | `kilometersPerHour` | The speed in kilometers per hour. | #### Returns @@ -208,10 +219,56 @@ The equivalent speed in miles per hour. #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double speedInKilometersPerHour = 50.0; double speedInMilesPerHour = Speeds.KilometersPerHourToMilesPerHour(speedInKilometersPerHour); Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInMilesPerHour} mph"); -~~~ \ No newline at end of file +``` + +### MachToKilometersPerHour(n) + +#### Definition + +Converts a speed in mach to a speed in kilometers per hour. Returns a `double` value. + +#### Arguments + +| Type | Name | Meaning | +| -------- | ---- | ----------------------------- | +| `double` | `n` | The speed in mach to convert. | + +#### Usage + +```c# +using PeyrSharp.Core.Converters; + +double kmPerHour = Speeds.MachToKilometersPerHour(1); +// kmPerHour = 1234.8 +``` + +### MachToMilesPerHour(mach) + +#### Definition + +Converts a speed in mach to miles per hour. Returns a `double` value. + +#### Arguments + +| Type | Name | Meaning | +| -------- | ------ | ------------------ | +| `double` | `mach` | The speed in mach. | + +#### Returns + +A `double` representing the speed in miles per hour. + +#### Usage + +```c# +using PeyrSharp.Core.Converters; + +double mph = Speeds.MachToMilesPerHour(0.8); +// mph = 613.8153184 +``` diff --git a/Documentation/core/converters/storage.md b/Documentation/core/converters/storage.md index ff0977e..573e309 100644 --- a/Documentation/core/converters/storage.md +++ b/Documentation/core/converters/storage.md @@ -1,4 +1,5 @@ # Storage + This page is about the `Storage` class available in [`PeyrSharp.Core.Converters`](/core/converters.md). You can find here all of its methods. @@ -10,15 +11,18 @@ This class is `static`. The `Storage` class is part of the `PeyrSharp.Core` module, which is compatible with all of these frameworks and platforms: -| Package/Platform | Windows | macOS | Linux + others | -|------------------ |--------- |------- |---------------- | -| Core | ✅ | ✅ | ✅ | -| **Framework** | **.NET 5** | **.NET 6** | **.NET 7** | -| Core | ✅ | ✅ | ✅ | +| Package/Platform | Windows | macOS | Linux + others | +| ---------------- | ---------- | ---------- | -------------- | +| Core | ✅ | ✅ | ✅ | +| **Framework** | **.NET 5** | **.NET 6** | **.NET 7** | +| Core | ✅ | ✅ | ✅ | ## Methods + ### ToByte(value, storageUnit) + #### Definition + Converts a size (kb, mb, ...) to byte. Returns a `double` value. ::: info @@ -27,22 +31,24 @@ This method can also be used in [`PeyrSharp.Extensions`](/extensions/double.md#t #### Arguments -| Type | Name | Meaning | -|------------- |--------------- |---------------------------------------------------- | -| `double` | `value` | The value to convert. | -| [`StorageUnits`](/enumerations.md#storageunits) | `storageUnit` | The unit of the value. (ex: kilobyte, gigabyte...) | +| Type | Name | Meaning | +| ----------------------------------------------- | ------------- | -------------------------------------------------- | +| `double` | `value` | The value to convert. | +| [`StorageUnits`](/enumerations.md#storageunits) | `storageUnit` | The unit of the value. (ex: kilobyte, gigabyte...) | #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double byte = Storage.ToByte(1, StorageUnits.Kilobyte); // byte = 1000 -~~~ +``` ### ToKilobyte(value, storageUnit) + #### Definition + Converts a size (kb, mb, ...) to kilobyte. Returns a `double` value. ::: info @@ -51,22 +57,24 @@ This method can also be used in [`PeyrSharp.Extensions`](/extensions/double.md#t #### Arguments -| Type | Name | Meaning | -|------------- |--------------- |---------------------------------------------------- | -| `double` | `value` | The value to convert. | -| [`StorageUnits`](/enumerations.md#storageunits) | `storageUnit` | The unit of the value. (ex: byte, gigabyte...) | +| Type | Name | Meaning | +| ----------------------------------------------- | ------------- | ---------------------------------------------- | +| `double` | `value` | The value to convert. | +| [`StorageUnits`](/enumerations.md#storageunits) | `storageUnit` | The unit of the value. (ex: byte, gigabyte...) | #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double kilobyte = Storage.ToKilobyte(2000, StorageUnits.Byte); // kilobyte = 2 -~~~ +``` ### ToMegabyte(value, storageUnit) + #### Definition + Converts a size (kb, mb, ...) to megabyte. Returns a `double` value. ::: info @@ -75,22 +83,24 @@ This method can also be used in [`PeyrSharp.Extensions`](/extensions/double.md#t #### Arguments -| Type | Name | Meaning | -|------------- |--------------- |---------------------------------------------------- | -| `double` | `value` | The value to convert. | -| [`StorageUnits`](/enumerations.md#storageunits) | `storageUnit` | The unit of the value. (ex: kilobyte, gigabyte...) | +| Type | Name | Meaning | +| ----------------------------------------------- | ------------- | -------------------------------------------------- | +| `double` | `value` | The value to convert. | +| [`StorageUnits`](/enumerations.md#storageunits) | `storageUnit` | The unit of the value. (ex: kilobyte, gigabyte...) | #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double megabyte = Storage.ToMegabyte(1500, StorageUnits.Kilobyte); // megabyte = 1.5 -~~~ +``` ### ToGigabyte(value, storageUnit) + #### Definition + Converts a size (kb, mb, ...) to gigabyte. Returns a `double` value. ::: info @@ -99,22 +109,24 @@ This method can also be used in [`PeyrSharp.Extensions`](/extensions/double.md#t #### Arguments -| Type | Name | Meaning | -|------------- |--------------- |---------------------------------------------------- | -| `double` | `value` | The value to convert. | -| [`StorageUnits`](/enumerations.md#storageunits) | `storageUnit` | The unit of the value. (ex: kilobyte, megabyte...) | +| Type | Name | Meaning | +| ----------------------------------------------- | ------------- | -------------------------------------------------- | +| `double` | `value` | The value to convert. | +| [`StorageUnits`](/enumerations.md#storageunits) | `storageUnit` | The unit of the value. (ex: kilobyte, megabyte...) | #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double gigabyte = Storage.ToGigabyte(1000, StorageUnits.Megabyte); // gigabyte = 1 -~~~ +``` ### ToTerabyte(value, storageUnit) + #### Definition + Converts a size (kb, mb, ...) to terabyte. Returns a `double` value. ::: info @@ -123,22 +135,24 @@ This method can also be used in [`PeyrSharp.Extensions`](/extensions/double.md#t #### Arguments -| Type | Name | Meaning | -|------------- |--------------- |---------------------------------------------------- | -| `double` | `value` | The value to convert. | -| [`StorageUnits`](/enumerations.md#storageunits) | `storageUnit` | The unit of the value. (ex: kilobyte, gigabyte...) | +| Type | Name | Meaning | +| ----------------------------------------------- | ------------- | -------------------------------------------------- | +| `double` | `value` | The value to convert. | +| [`StorageUnits`](/enumerations.md#storageunits) | `storageUnit` | The unit of the value. (ex: kilobyte, gigabyte...) | #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double terabyte = Storage.ToTerabyte(1, StorageUnits.Petabyte); // terabyte = 1000 -~~~ +``` ### ToPetabyte(value, storageUnit) + #### Definition + Converts a size (kb, mb, ...) to petabyte. Returns a `double` value. ::: info @@ -147,16 +161,58 @@ This method can also be used in [`PeyrSharp.Extensions`](/extensions/double.md#t #### Arguments -| Type | Name | Meaning | -|------------- |--------------- |---------------------------------------------------- | -| `double` | `value` | The value to convert. | -| [`StorageUnits`](/enumerations.md#storageunits) | `storageUnit` | The unit of the value. (ex: kilobyte, gigabyte...) | +| Type | Name | Meaning | +| ----------------------------------------------- | ------------- | -------------------------------------------------- | +| `double` | `value` | The value to convert. | +| [`StorageUnits`](/enumerations.md#storageunits) | `storageUnit` | The unit of the value. (ex: kilobyte, gigabyte...) | #### Usage -~~~ c# +```c# using PeyrSharp.Core.Converters; double petabyte = Storage.ToPetabyte(1000, StorageUnits.Terabyte); // petabyte = 1 -~~~ \ No newline at end of file +``` + +### BitsToBytes(n) + +#### Definition + +Converts a number of bits to a number of bytes. Returns a `double` value. + +#### Arguments + +| Type | Name | Meaning | +| -------- | ---- | ------------------------------ | +| `double` | `n` | The number of bits to convert. | + +#### Usage + +```c# +using PeyrSharp.Core.Converters; + +double bytes = Storage.BitsToBytes(64); +// bytes = 8 +``` + +### BytesToBits(n) + +#### Definition + +Converts a number of bytes to a number of bits. Returns a `double` value. + +#### Arguments + +| Type | Name | Meaning | +| -------- | ---- | --------------------------------------- | +| `double` | `n` | The number of bytes to convert to bits. | + +#### Usage + +```c# +using PeyrSharp.Core.Converters; + +double bits = Storage.BytesToBits(1024); +// bits = 8192 +``` diff --git a/Documentation/core/internet.md b/Documentation/core/internet.md index 1409718..c011f64 100644 --- a/Documentation/core/internet.md +++ b/Documentation/core/internet.md @@ -1,4 +1,5 @@ # Internet + This page is about the `Internet` class available in [`PeyrSharp.Core`](/core.md). You can find here all of its methods. @@ -10,15 +11,18 @@ This class is `static`. The `Internet` class is part of the `PeyrSharp.Core` module, which is compatible with all of these frameworks and platforms: -| Package/Platform | Windows | macOS | Linux + others | -|------------------ |--------- |------- |---------------- | -| Core | ✅ | ✅ | ✅ | -| **Framework** | **.NET 5** | **.NET 6** | **.NET 7** | -| Core | ✅ | ✅ | ✅ | +| Package/Platform | Windows | macOS | Linux + others | +| ---------------- | ---------- | ---------- | -------------- | +| Core | ✅ | ✅ | ✅ | +| **Framework** | **.NET 5** | **.NET 6** | **.NET 7** | +| Core | ✅ | ✅ | ✅ | ## Methods + ### IsAvailableAsync() + #### Definition + Checks if a connection to the Internet is available. Returns a `bool` value. ::: info @@ -26,21 +30,24 @@ This method is asynchronous and awaitable. ::: #### Arguments + This method has no arguments #### Usage -~~~ c# +```c# using PeyrSharp.Core; public static async void Main() { bool isConnected = await Internet.IsAvailableAsync(); } -~~~ +``` ### IsAvailableAsync(url) + #### Definition + Checks if a connection to the Internet is available. Returns a `bool` value. ::: info @@ -49,23 +56,25 @@ This method is asynchronous and awaitable. #### Arguments -| Type | Name | Meaning | -|---------- |--------- |------------------------------- | -| `string` | `url` | The page where to check if Internet is available. | +| Type | Name | Meaning | +| -------- | ----- | ------------------------------------------------- | +| `string` | `url` | The page where to check if Internet is available. | #### Usage -~~~ c# +```c# using PeyrSharp.Core; public static async void Main() { bool isConnected = await Internet.IsAvailableAsync("https://google.com"); } -~~~ +``` ### GetStatusCodeAsync(url) + #### Definition + Gets the status code of a specific page by making a request to it. Returns the status code as an `int` value. ::: info @@ -74,13 +83,13 @@ This method is asynchronous and awaitable. #### Arguments -| Type | Name | Meaning | -|---------- |--------- |------------------------------- | -| `string` | `url` | The URL where to send the request. | +| Type | Name | Meaning | +| -------- | ----- | ---------------------------------- | +| `string` | `url` | The URL where to send the request. | #### Usage -~~~ c# +```c# using PeyrSharp.Core; public static async void Main() @@ -88,10 +97,12 @@ public static async void Main() int status = await Internet.GetStatusCodeAsync("https://google.com"); // status should be 200 if everything is working } -~~~ +``` ### GetStatusDescriptionAsync(url) + #### Definition + Gets the status description of a specific page by making a request to it. Returns the status description as a `string`. ::: info @@ -100,13 +111,13 @@ This method is asynchronous and awaitable. #### Arguments -| Type | Name | Meaning | -|---------- |--------- |------------------------------- | -| `string` | `url` | The URL where to send the request. | +| Type | Name | Meaning | +| -------- | ----- | ---------------------------------- | +| `string` | `url` | The URL where to send the request. | #### Usage -~~~ c# +```c# using PeyrSharp.Core; public static async void Main() @@ -114,21 +125,47 @@ public static async void Main() string status = await Internet.GetStatusDescriptionAsync("https://google.com"); // status should be OK if everything is working } -~~~ +``` + +### GetStatusInfoAsync(url) + +#### Definition + +This method sends an HTTP GET request to a given URL and returns a `Task` of [`StatusInfo`](/core/statusinfo.md) object that contains the status code, description, and type of the URL. The HTTP request method used is `HttpClient.GetAsync()`. + +#### Arguments + +| Type | Name | Meaning | +| -------- | ----- | ------------------------------------ | +| `string` | `url` | The URL to get the status info from. | + +#### Returns + +A `Task` of [`StatusInfo`](/core/statusinfo.md) object containing the status code, description, and type of the URL. + +#### Usage + +```c# +using PeyrSharp.Core; + +StatusInfo statusInfo = await Internet.GetStatusInfoAsync("https://www.google.com"); +``` ### GetStatusCodeType(statusCode) + #### Definition + Gets the type of the status code. Returns a [`StatusCodes`](/enumerations.md#statuscodes) value. #### Arguments -| Type | Name | Meaning | -|---------- |--------- |------------------------------- | -| `int` | `statusCode` | The status code to analyze. | +| Type | Name | Meaning | +| ----- | ------------ | --------------------------- | +| `int` | `statusCode` | The status code to analyze. | #### Usage -~~~ c# +```c# using PeyrSharp.Core; using PeyrSharp.Enums; @@ -154,17 +191,19 @@ public static async void Main() break; } } -~~~ +``` ### GetUrlProtocol(url) + #### Definition + Gets the protocol of a specified URL. Returns a `string`. #### Arguments -| Type | Name | Meaning | -|---------- |--------- |------------------------------- | -| `string` | `url` | The URL where to parse. | +| Type | Name | Meaning | +| -------- | ----- | ----------------------- | +| `string` | `url` | The URL where to parse. | ::: warning If you provide an invalid URL, the result might be wrong or be something unexpected. An `IndexOutOfRangeException` can also be thrown. @@ -172,22 +211,24 @@ If you provide an invalid URL, the result might be wrong or be something unexpec #### Usage -~~~ c# +```c# using PeyrSharp.Core; string protocol = Internet.GetUrlProtocol("https://leocorporation.dev"); // protocol = https -~~~ +``` ### IsUrlValid(url) + #### Definition + Checks if a URL is valid or not.. Returns a `bool`. #### Arguments -| Type | Name | Meaning | -|---------- |--------- |------------------------------- | -| `string` | `url` | The URL where to check. | +| Type | Name | Meaning | +| -------- | ----- | ----------------------- | +| `string` | `url` | The URL where to check. | ::: info If you haven't specified the protocol in the URL (ex: "https://"), the `"https://"` string will automatically be appended to the original URL. To avoid this behavior, please specify a full URL to preserve the original protocol. @@ -195,9 +236,9 @@ If you haven't specified the protocol in the URL (ex: "https://"), the `"https:/ #### Usage -~~~ c# +```c# using PeyrSharp.Core; bool valid = Internet.GetUrlProtocol("a/test"); // valid = false -~~~ +``` diff --git a/Documentation/core/statusinfo.md b/Documentation/core/statusinfo.md new file mode 100644 index 0000000..cc37629 --- /dev/null +++ b/Documentation/core/statusinfo.md @@ -0,0 +1,46 @@ +# StatusInfo + +This page is about the `StatusInfo` class available in [`PeyrSharp.Core`](/core.md). +You can find here all of its methods. + +## Compatibility + +The `StatusInfo` class is part of the `PeyrSharp.Core` module, which is compatible with all of these frameworks and platforms: + +| Package/Platform | Windows | macOS | Linux + others | +| ---------------- | ---------- | ---------- | -------------- | +| Core | ✅ | ✅ | ✅ | +| **Framework** | **.NET 5** | **.NET 6** | **.NET 7** | +| Core | ✅ | ✅ | ✅ | + +## Properties + +### StatusCode + +#### Definition + +```c# +public int StatusCode { get; set; } +``` + +Gets or sets the status code that indicates the outcome of the request. + +### StatusDescription + +#### Definition + +```c# +public string StatusDescription { get; set; } +``` + +Gets or sets the status description that provides a human-readable message of the status code. + +### StatusType + +#### Definition + +```c# +public StatusCodes StatusType { get; set; } +``` + +Gets or sets the status type that categorizes the status code into informational, success, redirection, client error, or server error. The [`StatusCodes`](/enumerations.md#statuscodes) is an enumeration representing the type of HTTP status codes that can be returned. diff --git a/Documentation/env/update.md b/Documentation/env/update.md index c73dad7..f7c6298 100644 --- a/Documentation/env/update.md +++ b/Documentation/env/update.md @@ -1,4 +1,5 @@ # Update + This page is about the `Update` class available in [`PeyrSharp.Env`](/env.md). You can find here all of its methods. @@ -10,19 +11,22 @@ This class is `static`. The `Update` class is part of the `PeyrSharp.Env` module, and is compatible with all of these frameworks and platforms: -| Package/Platform | Windows | macOS | Linux + others | -|------------------ |--------- |------- |---------------- | -| Env | ✅ | ✅ | ✅ | -| **Framework** | **.NET 5** | **.NET 6** | **.NET 7** | -| Env | ✅ | ✅ | ✅ | +| Package/Platform | Windows | macOS | Linux + others | +| ---------------- | ---------- | ---------- | -------------- | +| Env | ✅ | ✅ | ✅ | +| **Framework** | **.NET 5** | **.NET 6** | **.NET 7** | +| Env | ✅ | ✅ | ✅ | ::: warning Some methods, classes or features of `PeyrSharp.Env` might not be available in all platforms. ::: ## Methods + ### GetLastVersionAsync(url) + #### Definition + Downloads the content of remote file as `string`. The remote file should contain the last version text. Do not provide the URL of an HTML page. ::: info @@ -31,24 +35,26 @@ This method is asynchronous and awaitable. #### Arguments -| Type | Name | Meaning | -|------------ |------------ |----------------------------------------------------------- | -| `string` | `url` | Link of the file where the latest version is stored. | +| Type | Name | Meaning | +| -------- | ----- | ---------------------------------------------------- | +| `string` | `url` | Link of the file where the latest version is stored. | #### Usage -~~~ c# +```c# using PeyrSharp.Env; private async void Main() { - string lastVersion = await Update.GetLastVersionAsync("https://raw.githubusercontent.com/Leo-Corporation/LeoCorp-Docs/master/Liens/Update%20System/LABS%20Experimental%20Console/version.txt"); + string lastVersion = await Update.GetLastVersionAsync("https://raw.githubusercontent.com/DevyusCode/LeoCorp-Docs/master/Liens/Update%20System/LABS%20Experimental%20Console/version.txt"); // lastVersion would be equal to the content of this text files } -~~~ +``` ### IsAvailable(currentVersion, remoteVersion) + #### Definition + Compares two versions. Returns a `bool`. ::: info @@ -57,23 +63,23 @@ It is recommended to use this method with the [`GetLastVersionAsync()`](#getlast #### Arguments -| Type | Name | Meaning | -|------------ |------------ |----------------------------------------------------------- | -| `string` | `currentVersion` | The current version of the app. | -| `string` | `removeVersion` | The latest version, stored remotely. | +| Type | Name | Meaning | +| -------- | ---------------- | ------------------------------------ | +| `string` | `currentVersion` | The current version of the app. | +| `string` | `removeVersion` | The latest version, stored remotely. | #### Usage -~~~ c# +```c# using PeyrSharp.Env; private async void Main() { string current = "1.0"; - string last = await Update.GetLastVersionAsync("https://raw.githubusercontent.com/Leo-Corporation/LeoCorp-Docs/master/Liens/Update%20System/LABS%20Experimental%20Console/version.txt"); + string last = await Update.GetLastVersionAsync("https://raw.githubusercontent.com/DevyusCode/LeoCorp-Docs/master/Liens/Update%20System/LABS%20Experimental%20Console/version.txt"); Console.WriteLine(Update.IsAvailable(current, last) ? "Updates are available." : "You are up-to-date."); } -~~~ \ No newline at end of file +``` diff --git a/Documentation/get-started.md b/Documentation/get-started.md index f1acd1b..a2ad7ba 100644 --- a/Documentation/get-started.md +++ b/Documentation/get-started.md @@ -94,7 +94,7 @@ PeyrSharp is available in the following frameworks - .NET 5 - .NET 6 -- .NET 7 (soon) +- .NET 7 ::: info .NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported. diff --git a/Documentation/intro.md b/Documentation/intro.md index 65de7a5..72e6e31 100644 --- a/Documentation/intro.md +++ b/Documentation/intro.md @@ -1,11 +1,15 @@ # Introduction + ## The roots + In March 2020, we published LeoCorpLibrary, which was also a C# library that contains useful methods. When we started the development of it, we didn't know where the project will go yet. Over the releases, we've added more and more methods and new features. However, the meaning and the purpose of LeoCorpLibrary was becoming less clear for everyone; it was becoming a mess. This is why we decided to rather not release v5, but instead, we decided to make a brand new .NET Library, PeyrSharp. ## Our next product + PeyrSharp is a C# written library designed to make developers' life easier. We've all written code that we wish we hadn't. PeyrSharp is here to respond to this need; by implementing useful methods in various domains: Mathematics, Web/HTTP requests, unit converters, extensions, environment-related operations, and more! # Modules + PeyrSharp is divided in multiple packages: **PeyrSharp**, the main package, that contains all of the followings: @@ -41,7 +45,7 @@ PeyrSharp is divided in multiple packages: - PasswordPresets - PasswordStrength -::: +::: ::: details **PeyrSharp.Exceptions**, all exceptions used by PeyrSharp @@ -69,30 +73,34 @@ PeyrSharp is divided in multiple packages: ::: # Compatibility + ## Platforms + Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platform. -| Package/Platform | Windows | macOS | Linux + others | -|------------------ |--------- |------- |---------------- | -| Core | ✅ | ✅ | ✅ | -| Env | ✅ | ⚠️ | ⚠️ | -| Enums | ✅ | ✅ | ✅ | -| Exceptions | ✅ | ✅ | ✅ | -| Extensions | ✅ | ✅ | ✅ | -| UiHelpers | ✅ | ❌ | ❌ | +| Package/Platform | Windows | macOS | Linux + others | +| ---------------- | ------- | ----- | -------------- | +| Core | ✅ | ✅ | ✅ | +| Env | ✅ | ⚠️ | ⚠️ | +| Enums | ✅ | ✅ | ✅ | +| Exceptions | ✅ | ✅ | ✅ | +| Extensions | ✅ | ✅ | ✅ | +| UiHelpers | ✅ | ❌ | ❌ | Caption: + - ✅ Full Support - ⚠️ Partial Support - ❌ Unsupported platform ## Frameworks + PeyrSharp is available in the following frameworks + - .NET 5 - .NET 6 -- .NET 7 (soon) - +- .NET 7 ::: info NOTE - .NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported. -::: \ No newline at end of file +.NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported. +::: diff --git a/Documentation/package-lock.json b/Documentation/package-lock.json index ba08a2a..0452d12 100644 --- a/Documentation/package-lock.json +++ b/Documentation/package-lock.json @@ -14,21 +14,21 @@ } }, "node_modules/@algolia/autocomplete-core": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.7.4.tgz", - "integrity": "sha512-daoLpQ3ps/VTMRZDEBfU8ixXd+amZcNJ4QSP3IERGyzqnL5Ch8uSRFt/4G8pUvW9c3o6GA4vtVv4I4lmnkdXyg==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.8.2.tgz", + "integrity": "sha512-mTeshsyFhAqw/ebqNsQpMtbnjr+qVOSKXArEj4K0d7sqc8It1XD0gkASwecm9mF/jlOQ4Z9RNg1HbdA8JPdRwQ==", "dev": true, "dependencies": { - "@algolia/autocomplete-shared": "1.7.4" + "@algolia/autocomplete-shared": "1.8.2" } }, "node_modules/@algolia/autocomplete-preset-algolia": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.7.4.tgz", - "integrity": "sha512-s37hrvLEIfcmKY8VU9LsAXgm2yfmkdHT3DnA3SgHaY93yjZ2qL57wzb5QweVkYuEBZkT2PIREvRoLXC2sxTbpQ==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.8.2.tgz", + "integrity": "sha512-J0oTx4me6ZM9kIKPuL3lyU3aB8DEvpVvR6xWmHVROx5rOYJGQcZsdG4ozxwcOyiiu3qxMkIbzntnV1S1VWD8yA==", "dev": true, "dependencies": { - "@algolia/autocomplete-shared": "1.7.4" + "@algolia/autocomplete-shared": "1.8.2" }, "peerDependencies": { "@algolia/client-search": ">= 4.9.1 < 6", @@ -36,138 +36,138 @@ } }, "node_modules/@algolia/autocomplete-shared": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.7.4.tgz", - "integrity": "sha512-2VGCk7I9tA9Ge73Km99+Qg87w0wzW4tgUruvWAn/gfey1ZXgmxZtyIRBebk35R1O8TbK77wujVtCnpsGpRy1kg==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.8.2.tgz", + "integrity": "sha512-b6Z/X4MczChMcfhk6kfRmBzPgjoPzuS9KGR4AFsiLulLNRAAqhP+xZTKtMnZGhLuc61I20d5WqlId02AZvcO6g==", "dev": true }, "node_modules/@algolia/cache-browser-local-storage": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/cache-browser-local-storage/-/cache-browser-local-storage-4.16.0.tgz", - "integrity": "sha512-jVrk0YB3tjOhD5/lhBtYCVCeLjZmVpf2kdi4puApofytf/R0scjWz0GdozlW4HhU+Prxmt/c9ge4QFjtv5OAzQ==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/cache-browser-local-storage/-/cache-browser-local-storage-4.17.0.tgz", + "integrity": "sha512-myRSRZDIMYB8uCkO+lb40YKiYHi0fjpWRtJpR/dgkaiBlSD0plRyB6lLOh1XIfmMcSeBOqDE7y9m8xZMrXYfyQ==", "dev": true, "dependencies": { - "@algolia/cache-common": "4.16.0" + "@algolia/cache-common": "4.17.0" } }, "node_modules/@algolia/cache-common": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/cache-common/-/cache-common-4.16.0.tgz", - "integrity": "sha512-4iHjkSYQYw46pITrNQgXXhvUmcekI8INz1m+SzmqLX8jexSSy4Ky4zfGhZzhhhLHXUP3+x/PK/c0qPjxEvRwKQ==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/cache-common/-/cache-common-4.17.0.tgz", + "integrity": "sha512-g8mXzkrcUBIPZaulAuqE7xyHhLAYAcF2xSch7d9dABheybaU3U91LjBX6eJTEB7XVhEsgK4Smi27vWtAJRhIKQ==", "dev": true }, "node_modules/@algolia/cache-in-memory": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/cache-in-memory/-/cache-in-memory-4.16.0.tgz", - "integrity": "sha512-p7RYykvA6Ip6QENxrh99nOD77otVh1sJRivcgcVpnjoZb5sIN3t33eUY1DpB9QSBizcrW+qk19rNkdnZ43a+PQ==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/cache-in-memory/-/cache-in-memory-4.17.0.tgz", + "integrity": "sha512-PT32ciC/xI8z919d0oknWVu3kMfTlhQn3MKxDln3pkn+yA7F7xrxSALysxquv+MhFfNAcrtQ/oVvQVBAQSHtdw==", "dev": true, "dependencies": { - "@algolia/cache-common": "4.16.0" + "@algolia/cache-common": "4.17.0" } }, "node_modules/@algolia/client-account": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/client-account/-/client-account-4.16.0.tgz", - "integrity": "sha512-eydcfpdIyuWoKgUSz5iZ/L0wE/Wl7958kACkvTHLDNXvK/b8Z1zypoJavh6/km1ZNQmFpeYS2jrmq0kUSFn02w==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/client-account/-/client-account-4.17.0.tgz", + "integrity": "sha512-sSEHx9GA6m7wrlsSMNBGfyzlIfDT2fkz2u7jqfCCd6JEEwmxt8emGmxAU/0qBfbhRSuGvzojoLJlr83BSZAKjA==", "dev": true, "dependencies": { - "@algolia/client-common": "4.16.0", - "@algolia/client-search": "4.16.0", - "@algolia/transporter": "4.16.0" + "@algolia/client-common": "4.17.0", + "@algolia/client-search": "4.17.0", + "@algolia/transporter": "4.17.0" } }, "node_modules/@algolia/client-analytics": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-4.16.0.tgz", - "integrity": "sha512-cONWXH3BfilgdlCofUm492bJRWtpBLVW/hsUlfoFtiX1u05xoBP7qeiDwh9RR+4pSLHLodYkHAf5U4honQ55Qg==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-4.17.0.tgz", + "integrity": "sha512-84ooP8QA3mQ958hQ9wozk7hFUbAO+81CX1CjAuerxBqjKIInh1fOhXKTaku05O/GHBvcfExpPLIQuSuLYziBXQ==", "dev": true, "dependencies": { - "@algolia/client-common": "4.16.0", - "@algolia/client-search": "4.16.0", - "@algolia/requester-common": "4.16.0", - "@algolia/transporter": "4.16.0" + "@algolia/client-common": "4.17.0", + "@algolia/client-search": "4.17.0", + "@algolia/requester-common": "4.17.0", + "@algolia/transporter": "4.17.0" } }, "node_modules/@algolia/client-common": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-4.16.0.tgz", - "integrity": "sha512-QVdR4019ukBH6f5lFr27W60trRxQF1SfS1qo0IP6gjsKhXhUVJuHxOCA6ArF87jrNkeuHEoRoDU+GlvaecNo8g==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-4.17.0.tgz", + "integrity": "sha512-jHMks0ZFicf8nRDn6ma8DNNsdwGgP/NKiAAL9z6rS7CymJ7L0+QqTJl3rYxRW7TmBhsUH40wqzmrG6aMIN/DrQ==", "dev": true, "dependencies": { - "@algolia/requester-common": "4.16.0", - "@algolia/transporter": "4.16.0" + "@algolia/requester-common": "4.17.0", + "@algolia/transporter": "4.17.0" } }, "node_modules/@algolia/client-personalization": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-4.16.0.tgz", - "integrity": "sha512-irtLafssDGPuhYqIwxqOxiWlVYvrsBD+EMA1P9VJtkKi3vSNBxiWeQ0f0Tn53cUNdSRNEssfoEH84JL97SV2SQ==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-4.17.0.tgz", + "integrity": "sha512-RMzN4dZLIta1YuwT7QC9o+OeGz2cU6eTOlGNE/6RcUBLOU3l9tkCOdln5dPE2jp8GZXPl2yk54b2nSs1+pAjqw==", "dev": true, "dependencies": { - "@algolia/client-common": "4.16.0", - "@algolia/requester-common": "4.16.0", - "@algolia/transporter": "4.16.0" + "@algolia/client-common": "4.17.0", + "@algolia/requester-common": "4.17.0", + "@algolia/transporter": "4.17.0" } }, "node_modules/@algolia/client-search": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-4.16.0.tgz", - "integrity": "sha512-xsfrAE1jO/JDh1wFrRz+alVyW+aA6qnkzmbWWWZWEgVF3EaFqzIf9r1l/aDtDdBtNTNhX9H3Lg31+BRtd5izQA==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-4.17.0.tgz", + "integrity": "sha512-x4P2wKrrRIXszT8gb7eWsMHNNHAJs0wE7/uqbufm4tZenAp+hwU/hq5KVsY50v+PfwM0LcDwwn/1DroujsTFoA==", "dev": true, "dependencies": { - "@algolia/client-common": "4.16.0", - "@algolia/requester-common": "4.16.0", - "@algolia/transporter": "4.16.0" + "@algolia/client-common": "4.17.0", + "@algolia/requester-common": "4.17.0", + "@algolia/transporter": "4.17.0" } }, "node_modules/@algolia/logger-common": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/logger-common/-/logger-common-4.16.0.tgz", - "integrity": "sha512-U9H8uCzSDuePJmbnjjTX21aPDRU6x74Tdq3dJmdYu2+pISx02UeBJm4kSgc9RW5jcR5j35G9gnjHY9Q3ngWbyQ==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/logger-common/-/logger-common-4.17.0.tgz", + "integrity": "sha512-DGuoZqpTmIKJFDeyAJ7M8E/LOenIjWiOsg1XJ1OqAU/eofp49JfqXxbfgctlVZVmDABIyOz8LqEoJ6ZP4DTyvw==", "dev": true }, "node_modules/@algolia/logger-console": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/logger-console/-/logger-console-4.16.0.tgz", - "integrity": "sha512-+qymusiM+lPZKrkf0tDjCQA158eEJO2IU+Nr/sJ9TFyI/xkFPjNPzw/Qbc8Iy/xcOXGlc6eMgmyjtVQqAWq6UA==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/logger-console/-/logger-console-4.17.0.tgz", + "integrity": "sha512-zMPvugQV/gbXUvWBCzihw6m7oxIKp48w37QBIUu/XqQQfxhjoOE9xyfJr1KldUt5FrYOKZJVsJaEjTsu+bIgQg==", "dev": true, "dependencies": { - "@algolia/logger-common": "4.16.0" + "@algolia/logger-common": "4.17.0" } }, "node_modules/@algolia/requester-browser-xhr": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-4.16.0.tgz", - "integrity": "sha512-gK+kvs6LHl/PaOJfDuwjkopNbG1djzFLsVBklGBsSU6h6VjFkxIpo6Qq80IK14p9cplYZfhfaL12va6Q9p3KVQ==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-4.17.0.tgz", + "integrity": "sha512-aSOX/smauyTkP21Pf52pJ1O2LmNFJ5iHRIzEeTh0mwBeADO4GdG94cAWDILFA9rNblq/nK3EDh3+UyHHjplZ1A==", "dev": true, "dependencies": { - "@algolia/requester-common": "4.16.0" + "@algolia/requester-common": "4.17.0" } }, "node_modules/@algolia/requester-common": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/requester-common/-/requester-common-4.16.0.tgz", - "integrity": "sha512-3Zmcs/iMubcm4zqZ3vZG6Zum8t+hMWxGMzo0/uY2BD8o9q5vMxIYI0c4ocdgQjkXcix189WtZNkgjSOBzSbkdw==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-common/-/requester-common-4.17.0.tgz", + "integrity": "sha512-XJjmWFEUlHu0ijvcHBoixuXfEoiRUdyzQM6YwTuB8usJNIgShua8ouFlRWF8iCeag0vZZiUm4S2WCVBPkdxFgg==", "dev": true }, "node_modules/@algolia/requester-node-http": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-4.16.0.tgz", - "integrity": "sha512-L8JxM2VwZzh8LJ1Zb8TFS6G3icYsCKZsdWW+ahcEs1rGWmyk9SybsOe1MLnjonGBaqPWJkn9NjS7mRdjEmBtKA==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-4.17.0.tgz", + "integrity": "sha512-bpb/wDA1aC6WxxM8v7TsFspB7yBN3nqCGs2H1OADolQR/hiAIjAxusbuMxVbRFOdaUvAIqioIIkWvZdpYNIn8w==", "dev": true, "dependencies": { - "@algolia/requester-common": "4.16.0" + "@algolia/requester-common": "4.17.0" } }, "node_modules/@algolia/transporter": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@algolia/transporter/-/transporter-4.16.0.tgz", - "integrity": "sha512-H9BVB2EAjT65w7XGBNf5drpsW39x2aSZ942j4boSAAJPPlLmjtj5IpAP7UAtsV8g9Beslonh0bLa1XGmE/P0BA==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@algolia/transporter/-/transporter-4.17.0.tgz", + "integrity": "sha512-6xL6H6fe+Fi0AEP3ziSgC+G04RK37iRb4uUUqVAH9WPYFI8g+LYFq6iv5HS8Cbuc5TTut+Bwj6G+dh/asdb9uA==", "dev": true, "dependencies": { - "@algolia/cache-common": "4.16.0", - "@algolia/logger-common": "4.16.0", - "@algolia/requester-common": "4.16.0" + "@algolia/cache-common": "4.17.0", + "@algolia/logger-common": "4.17.0", + "@algolia/requester-common": "4.17.0" } }, "node_modules/@babel/parser": { @@ -183,30 +183,30 @@ } }, "node_modules/@docsearch/css": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.3.3.tgz", - "integrity": "sha512-6SCwI7P8ao+se1TUsdZ7B4XzL+gqeQZnBc+2EONZlcVa0dVrk0NjETxozFKgMv0eEGH8QzP1fkN+A1rH61l4eg==", + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.3.4.tgz", + "integrity": "sha512-vDwCDoVXDgopw/hvr0zEADew2wWaGP8Qq0Bxhgii1Ewz2t4fQeyJwIRN/mWADeLFYPVkpz8TpEbxya/i6Tm0WA==", "dev": true }, "node_modules/@docsearch/js": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/@docsearch/js/-/js-3.3.3.tgz", - "integrity": "sha512-2xAv2GFuHzzmG0SSZgf8wHX0qZX8n9Y1ZirKUk5Wrdc+vH9CL837x2hZIUdwcPZI9caBA+/CzxsS68O4waYjUQ==", + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@docsearch/js/-/js-3.3.4.tgz", + "integrity": "sha512-Xd2saBziXJ1UuVpcDz94zAFEFAM6ap993agh0za2e3LDZLhaW993b1f9gyUL4e1CZLsR076tztG2un2gVncvpA==", "dev": true, "dependencies": { - "@docsearch/react": "3.3.3", + "@docsearch/react": "3.3.4", "preact": "^10.0.0" } }, "node_modules/@docsearch/react": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.3.3.tgz", - "integrity": "sha512-pLa0cxnl+G0FuIDuYlW+EBK6Rw2jwLw9B1RHIeS4N4s2VhsfJ/wzeCi3CWcs5yVfxLd5ZK50t//TMA5e79YT7Q==", + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.3.4.tgz", + "integrity": "sha512-aeOf1WC5zMzBEi2SI6WWznOmIo9rnpN4p7a3zHXxowVciqlI4HsZGtOR9nFOufLeolv7HibwLlaM0oyUqJxasw==", "dev": true, "dependencies": { - "@algolia/autocomplete-core": "1.7.4", - "@algolia/autocomplete-preset-algolia": "1.7.4", - "@docsearch/css": "3.3.3", + "@algolia/autocomplete-core": "1.8.2", + "@algolia/autocomplete-preset-algolia": "1.8.2", + "@docsearch/css": "3.3.4", "algoliasearch": "^4.0.0" }, "peerDependencies": { @@ -227,9 +227,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.15.tgz", - "integrity": "sha512-sRSOVlLawAktpMvDyJIkdLI/c/kdRTOqo8t6ImVxg8yT7LQDUYV5Rp2FKeEosLr6ZCja9UjYAzyRSxGteSJPYg==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.18.tgz", + "integrity": "sha512-EmwL+vUBZJ7mhFCs5lA4ZimpUH3WMAoqvOIYhVQwdIgSpHC8ImHdsRyhHAVxpDYUSm0lWvd63z0XH1IlImS2Qw==", "cpu": [ "arm" ], @@ -243,9 +243,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.15.tgz", - "integrity": "sha512-0kOB6Y7Br3KDVgHeg8PRcvfLkq+AccreK///B4Z6fNZGr/tNHX0z2VywCc7PTeWp+bPvjA5WMvNXltHw5QjAIA==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.18.tgz", + "integrity": "sha512-/iq0aK0eeHgSC3z55ucMAHO05OIqmQehiGay8eP5l/5l+iEr4EIbh4/MI8xD9qRFjqzgkc0JkX0LculNC9mXBw==", "cpu": [ "arm64" ], @@ -259,9 +259,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.15.tgz", - "integrity": "sha512-MzDqnNajQZ63YkaUWVl9uuhcWyEyh69HGpMIrf+acR4otMkfLJ4sUCxqwbCyPGicE9dVlrysI3lMcDBjGiBBcQ==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.18.tgz", + "integrity": "sha512-x+0efYNBF3NPW2Xc5bFOSFW7tTXdAcpfEg2nXmxegm4mJuVeS+i109m/7HMiOQ6M12aVGGFlqJX3RhNdYM2lWg==", "cpu": [ "x64" ], @@ -275,9 +275,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.15.tgz", - "integrity": "sha512-7siLjBc88Z4+6qkMDxPT2juf2e8SJxmsbNVKFY2ifWCDT72v5YJz9arlvBw5oB4W/e61H1+HDB/jnu8nNg0rLA==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.18.tgz", + "integrity": "sha512-6tY+djEAdF48M1ONWnQb1C+6LiXrKjmqjzPNPWXhu/GzOHTHX2nh8Mo2ZAmBFg0kIodHhciEgUBtcYCAIjGbjQ==", "cpu": [ "arm64" ], @@ -291,9 +291,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.15.tgz", - "integrity": "sha512-NbImBas2rXwYI52BOKTW342Tm3LTeVlaOQ4QPZ7XuWNKiO226DisFk/RyPk3T0CKZkKMuU69yOvlapJEmax7cg==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.18.tgz", + "integrity": "sha512-Qq84ykvLvya3dO49wVC9FFCNUfSrQJLbxhoQk/TE1r6MjHo3sFF2tlJCwMjhkBVq3/ahUisj7+EpRSz0/+8+9A==", "cpu": [ "x64" ], @@ -307,9 +307,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.15.tgz", - "integrity": "sha512-Xk9xMDjBVG6CfgoqlVczHAdJnCs0/oeFOspFap5NkYAmRCT2qTn1vJWA2f419iMtsHSLm+O8B6SLV/HlY5cYKg==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.18.tgz", + "integrity": "sha512-fw/ZfxfAzuHfaQeMDhbzxp9mc+mHn1Y94VDHFHjGvt2Uxl10mT4CDavHm+/L9KG441t1QdABqkVYwakMUeyLRA==", "cpu": [ "arm64" ], @@ -323,9 +323,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.15.tgz", - "integrity": "sha512-3TWAnnEOdclvb2pnfsTWtdwthPfOz7qAfcwDLcfZyGJwm1SRZIMOeB5FODVhnM93mFSPsHB9b/PmxNNbSnd0RQ==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.18.tgz", + "integrity": "sha512-FQFbRtTaEi8ZBi/A6kxOC0V0E9B/97vPdYjY9NdawyLd4Qk5VD5g2pbWN2VR1c0xhzcJm74HWpObPszWC+qTew==", "cpu": [ "x64" ], @@ -339,9 +339,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.15.tgz", - "integrity": "sha512-MLTgiXWEMAMr8nmS9Gigx43zPRmEfeBfGCwxFQEMgJ5MC53QKajaclW6XDPjwJvhbebv+RzK05TQjvH3/aM4Xw==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.18.tgz", + "integrity": "sha512-jW+UCM40LzHcouIaqv3e/oRs0JM76JfhHjCavPxMUti7VAPh8CaGSlS7cmyrdpzSk7A+8f0hiedHqr/LMnfijg==", "cpu": [ "arm" ], @@ -355,9 +355,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.15.tgz", - "integrity": "sha512-T0MVnYw9KT6b83/SqyznTs/3Jg2ODWrZfNccg11XjDehIved2oQfrX/wVuev9N936BpMRaTR9I1J0tdGgUgpJA==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.18.tgz", + "integrity": "sha512-R7pZvQZFOY2sxUG8P6A21eq6q+eBv7JPQYIybHVf1XkQYC+lT7nDBdC7wWKTrbvMXKRaGudp/dzZCwL/863mZQ==", "cpu": [ "arm64" ], @@ -371,9 +371,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.15.tgz", - "integrity": "sha512-wp02sHs015T23zsQtU4Cj57WiteiuASHlD7rXjKUyAGYzlOKDAjqK6bk5dMi2QEl/KVOcsjwL36kD+WW7vJt8Q==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.18.tgz", + "integrity": "sha512-ygIMc3I7wxgXIxk6j3V00VlABIjq260i967Cp9BNAk5pOOpIXmd1RFQJQX9Io7KRsthDrQYrtcx7QCof4o3ZoQ==", "cpu": [ "ia32" ], @@ -387,9 +387,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.15.tgz", - "integrity": "sha512-k7FsUJjGGSxwnBmMh8d7IbObWu+sF/qbwc+xKZkBe/lTAF16RqxRCnNHA7QTd3oS2AfGBAnHlXL67shV5bBThQ==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.18.tgz", + "integrity": "sha512-bvPG+MyFs5ZlwYclCG1D744oHk1Pv7j8psF5TfYx7otCVmcJsEXgFEhQkbhNW8otDHL1a2KDINW20cfCgnzgMQ==", "cpu": [ "loong64" ], @@ -403,9 +403,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.15.tgz", - "integrity": "sha512-ZLWk6czDdog+Q9kE/Jfbilu24vEe/iW/Sj2d8EVsmiixQ1rM2RKH2n36qfxK4e8tVcaXkvuV3mU5zTZviE+NVQ==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.18.tgz", + "integrity": "sha512-oVqckATOAGuiUOa6wr8TXaVPSa+6IwVJrGidmNZS1cZVx0HqkTMkqFGD2HIx9H1RvOwFeWYdaYbdY6B89KUMxA==", "cpu": [ "mips64el" ], @@ -419,9 +419,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.15.tgz", - "integrity": "sha512-mY6dPkIRAiFHRsGfOYZC8Q9rmr8vOBZBme0/j15zFUKM99d4ILY4WpOC7i/LqoY+RE7KaMaSfvY8CqjJtuO4xg==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.18.tgz", + "integrity": "sha512-3dLlQO+b/LnQNxgH4l9rqa2/IwRJVN9u/bK63FhOPB4xqiRqlQAU0qDU3JJuf0BmaH0yytTBdoSBHrb2jqc5qQ==", "cpu": [ "ppc64" ], @@ -435,9 +435,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.15.tgz", - "integrity": "sha512-EcyUtxffdDtWjjwIH8sKzpDRLcVtqANooMNASO59y+xmqqRYBBM7xVLQhqF7nksIbm2yHABptoioS9RAbVMWVA==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.18.tgz", + "integrity": "sha512-/x7leOyDPjZV3TcsdfrSI107zItVnsX1q2nho7hbbQoKnmoeUWjs+08rKKt4AUXju7+3aRZSsKrJtaRmsdL1xA==", "cpu": [ "riscv64" ], @@ -451,9 +451,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.15.tgz", - "integrity": "sha512-BuS6Jx/ezxFuHxgsfvz7T4g4YlVrmCmg7UAwboeyNNg0OzNzKsIZXpr3Sb/ZREDXWgt48RO4UQRDBxJN3B9Rbg==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.18.tgz", + "integrity": "sha512-cX0I8Q9xQkL/6F5zWdYmVf5JSQt+ZfZD2bJudZrWD+4mnUvoZ3TDDXtDX2mUaq6upMFv9FlfIh4Gfun0tbGzuw==", "cpu": [ "s390x" ], @@ -467,9 +467,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.15.tgz", - "integrity": "sha512-JsdS0EgEViwuKsw5tiJQo9UdQdUJYuB+Mf6HxtJSPN35vez1hlrNb1KajvKWF5Sa35j17+rW1ECEO9iNrIXbNg==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.18.tgz", + "integrity": "sha512-66RmRsPlYy4jFl0vG80GcNRdirx4nVWAzJmXkevgphP1qf4dsLQCpSKGM3DUQCojwU1hnepI63gNZdrr02wHUA==", "cpu": [ "x64" ], @@ -483,9 +483,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.15.tgz", - "integrity": "sha512-R6fKjtUysYGym6uXf6qyNephVUQAGtf3n2RCsOST/neIwPqRWcnc3ogcielOd6pT+J0RDR1RGcy0ZY7d3uHVLA==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.18.tgz", + "integrity": "sha512-95IRY7mI2yrkLlTLb1gpDxdC5WLC5mZDi+kA9dmM5XAGxCME0F8i4bYH4jZreaJ6lIZ0B8hTrweqG1fUyW7jbg==", "cpu": [ "x64" ], @@ -499,9 +499,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.15.tgz", - "integrity": "sha512-mVD4PGc26b8PI60QaPUltYKeSX0wxuy0AltC+WCTFwvKCq2+OgLP4+fFd+hZXzO2xW1HPKcytZBdjqL6FQFa7w==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.18.tgz", + "integrity": "sha512-WevVOgcng+8hSZ4Q3BKL3n1xTv5H6Nb53cBrtzzEjDbbnOmucEVcZeGCsCOi9bAOcDYEeBZbD2SJNBxlfP3qiA==", "cpu": [ "x64" ], @@ -515,9 +515,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.15.tgz", - "integrity": "sha512-U6tYPovOkw3459t2CBwGcFYfFRjivcJJc1WC8Q3funIwX8x4fP+R6xL/QuTPNGOblbq/EUDxj9GU+dWKX0oWlQ==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.18.tgz", + "integrity": "sha512-Rzf4QfQagnwhQXVBS3BYUlxmEbcV7MY+BH5vfDZekU5eYpcffHSyjU8T0xucKVuOcdCsMo+Ur5wmgQJH2GfNrg==", "cpu": [ "x64" ], @@ -531,9 +531,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.15.tgz", - "integrity": "sha512-W+Z5F++wgKAleDABemiyXVnzXgvRFs+GVKThSI+mGgleLWluv0D7Diz4oQpgdpNzh4i2nNDzQtWbjJiqutRp6Q==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.18.tgz", + "integrity": "sha512-Kb3Ko/KKaWhjeAm2YoT/cNZaHaD1Yk/pa3FTsmqo9uFh1D1Rfco7BBLIPdDOozrObj2sahslFuAQGvWbgWldAg==", "cpu": [ "arm64" ], @@ -547,9 +547,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.15.tgz", - "integrity": "sha512-Muz/+uGgheShKGqSVS1KsHtCyEzcdOn/W/Xbh6H91Etm+wiIfwZaBn1W58MeGtfI8WA961YMHFYTthBdQs4t+w==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.18.tgz", + "integrity": "sha512-0/xUMIdkVHwkvxfbd5+lfG7mHOf2FRrxNbPiKWg9C4fFrB8H0guClmaM3BFiRUYrznVoyxTIyC/Ou2B7QQSwmw==", "cpu": [ "ia32" ], @@ -563,9 +563,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.15.tgz", - "integrity": "sha512-DjDa9ywLUUmjhV2Y9wUTIF+1XsmuFGvZoCmOWkli1XcNAh5t25cc7fgsCx4Zi/Uurep3TTLyDiKATgGEg61pkA==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.18.tgz", + "integrity": "sha512-qU25Ma1I3NqTSHJUOKi9sAH1/Mzuvlke0ioMJRthLXKm7JiSKVwFghlGbDLOO2sARECGhja4xYfRAZNPAkooYg==", "cpu": [ "x64" ], @@ -579,15 +579,15 @@ } }, "node_modules/@types/web-bluetooth": { - "version": "0.0.16", - "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.16.tgz", - "integrity": "sha512-oh8q2Zc32S6gd/j50GowEjKLoOVOwHP/bWVjKJInBwQqdOYMdPrf1oVlelTlyfFK3CKxL1uahMDAr+vy8T7yMQ==", + "version": "0.0.17", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.17.tgz", + "integrity": "sha512-4p9vcSmxAayx72yn70joFoL44c9MO/0+iVEBIQXe3v2h2SiAsEIo/G5v6ObFWvNKRFjbrVadNf9LqEEZeQPzdA==", "dev": true }, "node_modules/@vitejs/plugin-vue": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-4.1.0.tgz", - "integrity": "sha512-++9JOAFdcXI3lyer9UKUV4rfoQ3T1RN8yDqoCLar86s0xQct5yblxAE+yWgRnU5/0FOlVCpTZpYSBV/bGWrSrQ==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-4.2.1.tgz", + "integrity": "sha512-ZTZjzo7bmxTRTkb8GSTwkPOYDIP7pwuyV+RV53c9PYUouwcbkIZIvWvNWlX2b1dYZqtOv7D6iUAnJLVNGcLrSw==", "dev": true, "engines": { "node": "^14.18.0 || >=16.0.0" @@ -716,24 +716,24 @@ "dev": true }, "node_modules/@vueuse/core": { - "version": "9.13.0", - "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-9.13.0.tgz", - "integrity": "sha512-pujnclbeHWxxPRqXWmdkKV5OX4Wk4YeK7wusHqRwU0Q7EFusHoqNA/aPhB6KCh9hEqJkLAJo7bb0Lh9b+OIVzw==", + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-10.1.2.tgz", + "integrity": "sha512-roNn8WuerI56A5uiTyF/TEYX0Y+VKlhZAF94unUfdhbDUI+NfwQMn4FUnUscIRUhv3344qvAghopU4bzLPNFlA==", "dev": true, "dependencies": { - "@types/web-bluetooth": "^0.0.16", - "@vueuse/metadata": "9.13.0", - "@vueuse/shared": "9.13.0", - "vue-demi": "*" + "@types/web-bluetooth": "^0.0.17", + "@vueuse/metadata": "10.1.2", + "@vueuse/shared": "10.1.2", + "vue-demi": ">=0.14.0" }, "funding": { "url": "https://github.com/sponsors/antfu" } }, "node_modules/@vueuse/core/node_modules/vue-demi": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.13.11.tgz", - "integrity": "sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==", + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.0.tgz", + "integrity": "sha512-gt58r2ogsNQeVoQ3EhoUAvUsH9xviydl0dWJj7dabBC/2L4uBId7ujtCwDRD0JhkGsV1i0CtfLAeyYKBht9oWg==", "dev": true, "hasInstallScript": true, "bin": { @@ -757,30 +757,30 @@ } }, "node_modules/@vueuse/metadata": { - "version": "9.13.0", - "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-9.13.0.tgz", - "integrity": "sha512-gdU7TKNAUVlXXLbaF+ZCfte8BjRJQWPCa2J55+7/h+yDtzw3vOoGQDRXzI6pyKyo6bXFT5/QoPE4hAknExjRLQ==", + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-10.1.2.tgz", + "integrity": "sha512-3mc5BqN9aU2SqBeBuWE7ne4OtXHoHKggNgxZR2K+zIW4YLsy6xoZ4/9vErQs6tvoKDX6QAqm3lvsrv0mczAwIQ==", "dev": true, "funding": { "url": "https://github.com/sponsors/antfu" } }, "node_modules/@vueuse/shared": { - "version": "9.13.0", - "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-9.13.0.tgz", - "integrity": "sha512-UrnhU+Cnufu4S6JLCPZnkWh0WwZGUp72ktOF2DFptMlOs3TOdVv8xJN53zhHGARmVOsz5KqOls09+J1NR6sBKw==", + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-10.1.2.tgz", + "integrity": "sha512-1uoUTPBlgyscK9v6ScGeVYDDzlPSFXBlxuK7SfrDGyUTBiznb3mNceqhwvZHjtDRELZEN79V5uWPTF1VDV8svA==", "dev": true, "dependencies": { - "vue-demi": "*" + "vue-demi": ">=0.14.0" }, "funding": { "url": "https://github.com/sponsors/antfu" } }, "node_modules/@vueuse/shared/node_modules/vue-demi": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.13.11.tgz", - "integrity": "sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==", + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.0.tgz", + "integrity": "sha512-gt58r2ogsNQeVoQ3EhoUAvUsH9xviydl0dWJj7dabBC/2L4uBId7ujtCwDRD0JhkGsV1i0CtfLAeyYKBht9oWg==", "dev": true, "hasInstallScript": true, "bin": { @@ -804,25 +804,25 @@ } }, "node_modules/algoliasearch": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-4.16.0.tgz", - "integrity": "sha512-HAjKJ6bBblaXqO4dYygF4qx251GuJ6zCZt+qbJ+kU7sOC+yc84pawEjVpJByh+cGP2APFCsao2Giz50cDlKNPA==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-4.17.0.tgz", + "integrity": "sha512-JMRh2Mw6sEnVMiz6+APsi7lx9a2jiDFF+WUtANaUVCv6uSU9UOLdo5h9K3pdP6frRRybaM2fX8b1u0nqICS9aA==", "dev": true, "dependencies": { - "@algolia/cache-browser-local-storage": "4.16.0", - "@algolia/cache-common": "4.16.0", - "@algolia/cache-in-memory": "4.16.0", - "@algolia/client-account": "4.16.0", - "@algolia/client-analytics": "4.16.0", - "@algolia/client-common": "4.16.0", - "@algolia/client-personalization": "4.16.0", - "@algolia/client-search": "4.16.0", - "@algolia/logger-common": "4.16.0", - "@algolia/logger-console": "4.16.0", - "@algolia/requester-browser-xhr": "4.16.0", - "@algolia/requester-common": "4.16.0", - "@algolia/requester-node-http": "4.16.0", - "@algolia/transporter": "4.16.0" + "@algolia/cache-browser-local-storage": "4.17.0", + "@algolia/cache-common": "4.17.0", + "@algolia/cache-in-memory": "4.17.0", + "@algolia/client-account": "4.17.0", + "@algolia/client-analytics": "4.17.0", + "@algolia/client-common": "4.17.0", + "@algolia/client-personalization": "4.17.0", + "@algolia/client-search": "4.17.0", + "@algolia/logger-common": "4.17.0", + "@algolia/logger-console": "4.17.0", + "@algolia/requester-browser-xhr": "4.17.0", + "@algolia/requester-common": "4.17.0", + "@algolia/requester-node-http": "4.17.0", + "@algolia/transporter": "4.17.0" } }, "node_modules/ansi-sequence-parser": { @@ -844,9 +844,9 @@ "dev": true }, "node_modules/esbuild": { - "version": "0.17.15", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.15.tgz", - "integrity": "sha512-LBUV2VsUIc/iD9ME75qhT4aJj0r75abCVS0jakhFzOtR7TQsqQA5w0tZ+KTKnwl3kXE0MhskNdHDh/I5aCR1Zw==", + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.18.tgz", + "integrity": "sha512-z1lix43jBs6UKjcZVKOw2xx69ffE2aG0PygLL5qJ9OS/gy0Ewd1gW/PUQIOIQGXBHWNywSc0floSKoMFF8aK2w==", "dev": true, "hasInstallScript": true, "bin": { @@ -856,28 +856,28 @@ "node": ">=12" }, "optionalDependencies": { - "@esbuild/android-arm": "0.17.15", - "@esbuild/android-arm64": "0.17.15", - "@esbuild/android-x64": "0.17.15", - "@esbuild/darwin-arm64": "0.17.15", - "@esbuild/darwin-x64": "0.17.15", - "@esbuild/freebsd-arm64": "0.17.15", - "@esbuild/freebsd-x64": "0.17.15", - "@esbuild/linux-arm": "0.17.15", - "@esbuild/linux-arm64": "0.17.15", - "@esbuild/linux-ia32": "0.17.15", - "@esbuild/linux-loong64": "0.17.15", - "@esbuild/linux-mips64el": "0.17.15", - "@esbuild/linux-ppc64": "0.17.15", - "@esbuild/linux-riscv64": "0.17.15", - "@esbuild/linux-s390x": "0.17.15", - "@esbuild/linux-x64": "0.17.15", - "@esbuild/netbsd-x64": "0.17.15", - "@esbuild/openbsd-x64": "0.17.15", - "@esbuild/sunos-x64": "0.17.15", - "@esbuild/win32-arm64": "0.17.15", - "@esbuild/win32-ia32": "0.17.15", - "@esbuild/win32-x64": "0.17.15" + "@esbuild/android-arm": "0.17.18", + "@esbuild/android-arm64": "0.17.18", + "@esbuild/android-x64": "0.17.18", + "@esbuild/darwin-arm64": "0.17.18", + "@esbuild/darwin-x64": "0.17.18", + "@esbuild/freebsd-arm64": "0.17.18", + "@esbuild/freebsd-x64": "0.17.18", + "@esbuild/linux-arm": "0.17.18", + "@esbuild/linux-arm64": "0.17.18", + "@esbuild/linux-ia32": "0.17.18", + "@esbuild/linux-loong64": "0.17.18", + "@esbuild/linux-mips64el": "0.17.18", + "@esbuild/linux-ppc64": "0.17.18", + "@esbuild/linux-riscv64": "0.17.18", + "@esbuild/linux-s390x": "0.17.18", + "@esbuild/linux-x64": "0.17.18", + "@esbuild/netbsd-x64": "0.17.18", + "@esbuild/openbsd-x64": "0.17.18", + "@esbuild/sunos-x64": "0.17.18", + "@esbuild/win32-arm64": "0.17.18", + "@esbuild/win32-ia32": "0.17.18", + "@esbuild/win32-x64": "0.17.18" } }, "node_modules/estree-walker": { @@ -900,36 +900,6 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/jsonc-parser": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", @@ -945,6 +915,18 @@ "sourcemap-codec": "^1.4.8" } }, + "node_modules/mark.js": { + "version": "8.11.1", + "resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz", + "integrity": "sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==", + "dev": true + }, + "node_modules/minisearch": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/minisearch/-/minisearch-6.0.1.tgz", + "integrity": "sha512-Ly1w0nHKnlhAAh6/BF/+9NgzXfoJxaJ8nhopFhQ3NcvFJrFIL+iCg9gw9e9UMBD+XIsp/RyznJ/o5UIe5Kw+kg==", + "dev": true + }, "node_modules/nanoid": { "version": "3.3.6", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", @@ -963,12 +945,6 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "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==", - "dev": true - }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -976,9 +952,9 @@ "dev": true }, "node_modules/postcss": { - "version": "8.4.21", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", - "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", + "version": "8.4.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.23.tgz", + "integrity": "sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==", "dev": true, "funding": [ { @@ -988,10 +964,14 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], "dependencies": { - "nanoid": "^3.3.4", + "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" }, @@ -1009,27 +989,10 @@ "url": "https://opencollective.com/preact" } }, - "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "dependencies": { - "is-core-module": "^2.9.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/rollup": { - "version": "3.20.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.20.2.tgz", - "integrity": "sha512-3zwkBQl7Ai7MFYQE0y1MeQ15+9jsi7XxfrqwTb/9EK8D9C9+//EBR4M+CuA1KODRaNbFez/lWxA5vhEGZp4MUg==", + "version": "3.21.5", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.21.5.tgz", + "integrity": "sha512-a4NTKS4u9PusbUJcfF4IMxuqjFzjm6ifj76P54a7cKnvVzJaG12BLVR+hgU2YDGHzyMMQNxLAZWuALsn8q2oQg==", "dev": true, "bin": { "rollup": "dist/bin/rollup" @@ -1043,9 +1006,9 @@ } }, "node_modules/shiki": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.1.tgz", - "integrity": "sha512-+Jz4nBkCBe0mEDqo1eKRcCdjRtrCjozmcbTUjbPTX7OOJfEbTZzlUWlZtGe3Gb5oV1/jnojhG//YZc3rs9zSEw==", + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.2.tgz", + "integrity": "sha512-ltSZlSLOuSY0M0Y75KA+ieRaZ0Trf5Wl3gutE7jzLuIcWxLp5i/uEnLoQWNvgKXQ5OMpGkJnVMRLAuzjc0LJ2A==", "dev": true, "dependencies": { "ansi-sequence-parser": "^1.1.0", @@ -1079,28 +1042,15 @@ "deprecated": "Please use @jridgewell/sourcemap-codec instead", "dev": true }, - "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==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/vite": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.2.1.tgz", - "integrity": "sha512-7MKhqdy0ISo4wnvwtqZkjke6XN4taqQ2TBaTccLIpOKv7Vp2h4Y+NpmWCnGDeSvvn45KxvWgGyb0MkHvY1vgbg==", + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.3.5.tgz", + "integrity": "sha512-0gEnL9wiRFxgz40o/i/eTBwm+NEbpUeTWhzKrZDSdKm6nplj+z4lKz8ANDgildxHm47Vg8EUia0aicKbawUVVA==", "dev": true, "dependencies": { "esbuild": "^0.17.5", - "postcss": "^8.4.21", - "resolve": "^1.22.1", - "rollup": "^3.18.0" + "postcss": "^8.4.23", + "rollup": "^3.21.0" }, "bin": { "vite": "bin/vite.js" @@ -1141,19 +1091,21 @@ } }, "node_modules/vitepress": { - "version": "1.0.0-alpha.64", - "resolved": "https://registry.npmjs.org/vitepress/-/vitepress-1.0.0-alpha.64.tgz", - "integrity": "sha512-u12wcDH4VzgxxkQfVQWkXumrL3WRetpenz4VuAtiMWXeZSCayWcJtieWOFxmX/RzS2KEuTJpXGbtJAXORyyJBQ==", + "version": "1.0.0-alpha.75", + "resolved": "https://registry.npmjs.org/vitepress/-/vitepress-1.0.0-alpha.75.tgz", + "integrity": "sha512-twpPZ/6UnDR8X0Nmj767KwKhXlTQQM9V/J1i2BP9ryO29/w4hpxBfEum6nvfpNhJ4H3h+cIhwzAK/e9crZ6HEQ==", "dev": true, "dependencies": { - "@docsearch/css": "^3.3.3", - "@docsearch/js": "^3.3.3", - "@vitejs/plugin-vue": "^4.1.0", + "@docsearch/css": "^3.3.4", + "@docsearch/js": "^3.3.4", + "@vitejs/plugin-vue": "^4.2.1", "@vue/devtools-api": "^6.5.0", - "@vueuse/core": "^9.13.0", + "@vueuse/core": "^10.1.0", "body-scroll-lock": "4.0.0-beta.0", - "shiki": "^0.14.1", - "vite": "^4.2.1", + "mark.js": "8.11.1", + "minisearch": "^6.0.1", + "shiki": "^0.14.2", + "vite": "^4.3.3", "vue": "^3.2.47" }, "bin": { diff --git a/Documentation/package.json b/Documentation/package.json index 4458f8f..3dfe9eb 100644 --- a/Documentation/package.json +++ b/Documentation/package.json @@ -10,19 +10,19 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/Leo-Corporation/PeyrSharp.git" + "url": "git+https://github.com/DevyusCode/PeyrSharp.git" }, "keywords": [ "docs" ], - "author": "Léo Corporation + contributors", + "author": "Devyus + contributors", "license": "MIT", "bugs": { - "url": "https://github.com/Leo-Corporation/PeyrSharp/issues" + "url": "https://github.com/DevyusCode/PeyrSharp/issues" }, - "homepage": "https://github.com/Leo-Corporation/PeyrSharp#readme", + "homepage": "https://github.com/DevyusCode/PeyrSharp#readme", "devDependencies": { "vitepress": "^1.0.0-alpha.19", "vue": "^3.2.40" } -} \ No newline at end of file +} diff --git a/Documentation/reference.md b/Documentation/reference.md index 7d2a616..3115bea 100644 --- a/Documentation/reference.md +++ b/Documentation/reference.md @@ -1,44 +1,48 @@ # Reference + The reference of PeyrSharp. ## PeyrSharp.Core + - [Crypt](/core/crypt.md) - [Converters](/core/converters.md) - - [Angle](/core/converters/angle.md) - - Colors - - [RGB](/core/converters/colors/rgb.md) - - [HEX](/core/converters/colors/hex.md) - - [HSV](/core/converters/colors/hsv.md) - - [Distances](/core/converters/distances.md) - - [Energies](/core/converters/energies.md) - - [Masses](/core/converters/masses.md) - - [Speeds](/core/converters/speeds.md) - - [Storage](/core/converters/storage.md) - - [Temperatures](/core/converters/temperatures.md) - - [Time](/core/converters/time.md) - - [Volumes](/core/converters/volumes.md) + - [Angle](/core/converters/angle.md) + - Colors + - [RGB](/core/converters/colors/rgb.md) + - [HEX](/core/converters/colors/hex.md) + - [HSV](/core/converters/colors/hsv.md) + - [Distances](/core/converters/distances.md) + - [Energies](/core/converters/energies.md) + - [Masses](/core/converters/masses.md) + - [Speeds](/core/converters/speeds.md) + - [Storage](/core/converters/storage.md) + - [Temperatures](/core/converters/temperatures.md) + - [Time](/core/converters/time.md) + - [Volumes](/core/converters/volumes.md) - [GuidGen](/core/guid) - [GuidOptions](/core/guid-options) - [Internet](/core/internet.md) - [Maths](/core/maths.md) - - [Algebra](/core/maths/algebra.md) - - [Geometry](/core/maths/geometry) - - [Cube](/core/maths/geometry/cube) - - [Circle](/core/maths/geometry/circle) - - [Cone](/core/maths/geometry/cone) - - [Cylinder](/core/maths/geometry/cylinder) - - [Diamond](/core/maths/geometry/diamond) - - [Hexagon](/core/maths/geometry/hexagon) - - [Pyramid](/core/maths/geometry/pyramid) - - [Rectangle](/core/maths/geometry/rectangle) - - [Sphere](/core/maths/geometry/sphere) - - [Triangle](/core/maths/geometry/triangle) - - [Percentages](/core/maths/percentages.md) - - [Stats](/core/maths/stats.md) - - [Trigonometry](/core/maths/trigonometry.md) + - [Algebra](/core/maths/algebra.md) + - [Geometry](/core/maths/geometry) + - [Cube](/core/maths/geometry/cube) + - [Circle](/core/maths/geometry/circle) + - [Cone](/core/maths/geometry/cone) + - [Cylinder](/core/maths/geometry/cylinder) + - [Diamond](/core/maths/geometry/diamond) + - [Hexagon](/core/maths/geometry/hexagon) + - [Pyramid](/core/maths/geometry/pyramid) + - [Rectangle](/core/maths/geometry/rectangle) + - [Sphere](/core/maths/geometry/sphere) + - [Triangle](/core/maths/geometry/triangle) + - [Percentages](/core/maths/percentages.md) + - [Stats](/core/maths/stats.md) + - [Trigonometry](/core/maths/trigonometry.md) - [Password](/core/password) +- [StatusInfo](/core/statusinfo.md) ## PeyrSharp.Env + - [Home](/env.md) - [FileSys](/env/filesys.md) - [Logger](/env/logger.md) @@ -46,12 +50,15 @@ The reference of PeyrSharp. - [Update](/env/update.md) ## PeyrSharp.Enums + - [Enumerations](/enumerations) ## PeyrSharp.Exceptions + - [Exceptions](/exceptions) ## PeyrSharp.Extensions + - [Home](/extensions.md) - [Array](/extensions/array.md) - [Double](/extensions/double.md) @@ -59,7 +66,8 @@ The reference of PeyrSharp. - [String](/extensions/string.md) ## PeyrSharp.UiHelpers + - [Home](ui-helpers.md) - [Screen](/ui-helpers/screen.md) - [WinForms](/ui-helpers/winforms.md) -- [WPF](/ui-helpers/wpf.md) \ No newline at end of file +- [WPF](/ui-helpers/wpf.md) diff --git a/NUGET_README.md b/NUGET_README.md index 85f9fdd..5dc6230 100644 --- a/NUGET_README.md +++ b/NUGET_README.md @@ -1,24 +1,28 @@ ![Using PeyrSharp](https://img.shields.io/badge/using-PeyrSharp-DD00FF?logo=nuget) -![GitHub contributors](https://img.shields.io/github/contributors/Leo-Corporation/PeyrSharp) -![GitHub issues](https://img.shields.io/github/issues/Leo-Corporation/PeyrSharp) -![GitHub](https://img.shields.io/github/license/Leo-Corporation/PeyrSharp) -![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Leo-Corporation/PeyrSharp) +![GitHub contributors](https://img.shields.io/github/contributors/DevyusCode/PeyrSharp) +![GitHub issues](https://img.shields.io/github/issues/DevyusCode/PeyrSharp) +![GitHub](https://img.shields.io/github/license/DevyusCode/PeyrSharp) +![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/DevyusCode/PeyrSharp) ![Nuget](https://img.shields.io/nuget/dt/PeyrSharp) # PeyrSharp -A C# library designed to make developers' job easier. -[View documentation »](https://peyrsharp.leocorporation.dev/) · [Report Bug](https://github.com/Leo-Corporation/PeyrSharp/issues/new?assignees=&labels=bug&template=bug-report.yml&title=%5BBug%5D+) · [Request Feature](https://github.com/Leo-Corporation/PeyrSharp/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=%5BEnhancement%5D+) +A C# library designed to make developers' job easier. +[View documentation »](https://peyrsharp.leocorporation.dev/) · [Report Bug](https://github.com/DevyusCode/PeyrSharp/issues/new?assignees=&labels=bug&template=bug-report.yml&title=%5BBug%5D+) · [Request Feature](https://github.com/DevyusCode/PeyrSharp/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=%5BEnhancement%5D+) ## Introduction + ### The roots + In March 2020, we published LeoCorpLibrary, which was also a C# library that contains useful methods. When we started the development of it, we didn't know where the project will go yet. Over the releases, we've added more and more methods and new features. However, the meaning and the purpose of LeoCorpLibrary was becoming less clear for everyone; it was becoming a mess. This is why we decided to rather not release v5, but instead, we decided to make a brand new .NET Library, PeyrSharp. ### Our next product + PeyrSharp is a C# written library designed to make developers' life easier. We've all written code that we wish we hadn't. PeyrSharp is here to respond to this need; by implementing useful methods in various domains: Mathematics, Web/HTTP requests, unit converters, extensions, environment-related operations, and more! ## Modules + PeyrSharp is divided in multiple packages: **PeyrSharp**, the main package, that contains all of the followings: @@ -33,15 +37,13 @@ PeyrSharp is divided in multiple packages: - Crypt **PeyrSharp.Env**, methods related to the file system and to the current execution environment. - - FileSys - Logger - Update -- System +- System **PeyrSharp.Enums**, all enumerations used by PeyrSharp - - WindowsVersion - TimeUnits @@ -53,76 +55,87 @@ PeyrSharp is divided in multiple packages: - PasswordStrength **PeyrSharp.Exceptions**, all exceptions used by PeyrSharp - + - RGBInvalidValueException - HEXInvalidValueException - InvalidGuidLengthException **PeyrSharp.Extensions**, extension methods, that extends basic types, such as `string`, `int`, `double` or arrays (`T[]`). - + - String - Int - Double - Array (`T[]`) **PeyrSharp.UiHelpers**, methods related to Windows Forms or to the Windows Presentation Framework (WPF). - + - WinForms - Screen - WPF ## Compatibility + ### Platforms + Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platforms. -| Package/Platform | Windows | macOS | Linux + others | -|------------------ |--------- |------- |---------------- | -| Core | ✅ | ✅ | ✅ | -| Env | ✅ | ⚠️ | ⚠️ | -| Enums | ✅ | ✅ | ✅ | -| Exceptions | ✅ | ✅ | ✅ | -| Extensions | ✅ | ✅ | ✅ | -| UiHelpers | ✅ | ❌ | ❌ | +| Package/Platform | Windows | macOS | Linux + others | +| ---------------- | ------- | ----- | -------------- | +| Core | ✅ | ✅ | ✅ | +| Env | ✅ | ⚠️ | ⚠️ | +| Enums | ✅ | ✅ | ✅ | +| Exceptions | ✅ | ✅ | ✅ | +| Extensions | ✅ | ✅ | ✅ | +| UiHelpers | ✅ | ❌ | ❌ | Caption: + - ✅ Full Support - ⚠️ Partial Support - ❌ Unsupported platform ### Frameworks + PeyrSharp is available in the following frameworks + - .NET 5 - .NET 6 -- .NET 7 (soon) +- .NET 7 > Note: .NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported. ## Documentation + ### Branches + There are two branches: -| Name | Release | Description | -| :--: | :-----: | :---------: | -| `main` | ![GitHub release (latest by date)](https://img.shields.io/github/v/release/Leo-Corporation/PeyrSharp) | Stable versions | -| `vNext` | ![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/Leo-Corporation/PeyrSharp?include_prereleases) | Next version of PeyrSharp (unstable) | +| Name | Release | Description | +| :-----: | :-----------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------: | +| `main` | ![GitHub release (latest by date)](https://img.shields.io/github/v/release/DevyusCode/PeyrSharp) | Stable versions | +| `vNext` | ![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/DevyusCode/PeyrSharp?include_prereleases) | Next version of PeyrSharp (unstable) | > Note: Other branches can also - of course - exists. ## Contribute + Here's what you'll need to contribute to this project: + - Visual Studio 2022 with: - - .NET Desktop Development - - Git + - .NET Desktop Development + - Git - .NET - - .NET 5 (SDK + runtime) - - .NET 6 (SDK + runtime) - - .NET 7 (SDK + runtime) -- (*optional*) NuGet + - .NET 5 (SDK + runtime) + - .NET 6 (SDK + runtime) + - .NET 7 (SDK + runtime) +- (_optional_) NuGet ## Badge -~~~ md + +```md ![Using PeyrSharp](https://img.shields.io/badge/using-PeyrSharp-DD00FF?logo=nuget) -~~~ +``` ## License -Project under the [MIT](https://github.com/Leo-Corporation/PeyrSharp/blob/main/LICENSE) license. + +Project under the [MIT](https://github.com/DevyusCode/PeyrSharp/blob/main/LICENSE) license. diff --git a/PeyrSharp.Core/Converters/Angle.cs b/PeyrSharp.Core/Converters/Angle.cs index b9bd04a..e599a1e 100644 --- a/PeyrSharp.Core/Converters/Angle.cs +++ b/PeyrSharp.Core/Converters/Angle.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Converters/Distances.cs b/PeyrSharp.Core/Converters/Distances.cs index 422e422..421e8f4 100644 --- a/PeyrSharp.Core/Converters/Distances.cs +++ b/PeyrSharp.Core/Converters/Distances.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Converters/Energies.cs b/PeyrSharp.Core/Converters/Energies.cs index 50c5a54..24c89f4 100644 --- a/PeyrSharp.Core/Converters/Energies.cs +++ b/PeyrSharp.Core/Converters/Energies.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -22,12 +22,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace PeyrSharp.Core.Converters { /// diff --git a/PeyrSharp.Core/Converters/HEX.cs b/PeyrSharp.Core/Converters/HEX.cs index 9428fac..ada2a22 100644 --- a/PeyrSharp.Core/Converters/HEX.cs +++ b/PeyrSharp.Core/Converters/HEX.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Converters/HSV.cs b/PeyrSharp.Core/Converters/HSV.cs index f4ac53c..cacfddf 100644 --- a/PeyrSharp.Core/Converters/HSV.cs +++ b/PeyrSharp.Core/Converters/HSV.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Converters/Masses.cs b/PeyrSharp.Core/Converters/Masses.cs index 1b862f7..835754b 100644 --- a/PeyrSharp.Core/Converters/Masses.cs +++ b/PeyrSharp.Core/Converters/Masses.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Converters/RGB.cs b/PeyrSharp.Core/Converters/RGB.cs index b1d158a..552b2a9 100644 --- a/PeyrSharp.Core/Converters/RGB.cs +++ b/PeyrSharp.Core/Converters/RGB.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Converters/Speeds.cs b/PeyrSharp.Core/Converters/Speeds.cs index fa995ac..0091d75 100644 --- a/PeyrSharp.Core/Converters/Speeds.cs +++ b/PeyrSharp.Core/Converters/Speeds.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -22,12 +22,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace PeyrSharp.Core.Converters { /// @@ -90,5 +84,23 @@ public static class Speeds /// The speed in kilometers per hour. /// The equivalent speed in miles per hour. public static double KilometersPerHourToMilesPerHour(double kilometersPerHour) => kilometersPerHour / 1.60934; + + /// + /// Converts a speed in mach to a speed in kilometers per hour. + /// + /// The speed in mach to convert. + /// The speed in kilometers per hour equivalent to n mach. + public static double MachToKilometersPerHour(double n) => + // Use the conversion formula: km/h = mach * 1234.8 + n * 1234.8; + + /// + /// Converts a speed in mach to miles per hour. + /// + /// The speed in mach. + /// The speed in miles per hour. + public static double MachToMilesPerHour(double mach) => + // One mach is equal to 767.269148 miles per hour + mach * 767.269148; } } diff --git a/PeyrSharp.Core/Converters/Storage.cs b/PeyrSharp.Core/Converters/Storage.cs index 2e11806..5997815 100644 --- a/PeyrSharp.Core/Converters/Storage.cs +++ b/PeyrSharp.Core/Converters/Storage.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -132,5 +132,19 @@ public static class Storage StorageUnits.Petabyte => value,// Convert and return value _ => value,// Convert and return value }; + + /// + /// Converts a number of bits to a number of bytes. + /// + /// The number of bits to convert. + /// The number of bytes equivalent to n bits. + public static double BitsToBytes(double n) => n / 8; + + /// + /// Converts a number of bytes to a number of bits. + /// + /// The number of bytes to convert. + /// The number of bits equivalent to n bytes. + public static double BytesToBits(double n) => n * 8; } } diff --git a/PeyrSharp.Core/Converters/Temperatures.cs b/PeyrSharp.Core/Converters/Temperatures.cs index 33f30da..3026ac6 100644 --- a/PeyrSharp.Core/Converters/Temperatures.cs +++ b/PeyrSharp.Core/Converters/Temperatures.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Converters/Time.cs b/PeyrSharp.Core/Converters/Time.cs index 002d22b..9ad42f0 100644 --- a/PeyrSharp.Core/Converters/Time.cs +++ b/PeyrSharp.Core/Converters/Time.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Converters/Volumes.cs b/PeyrSharp.Core/Converters/Volumes.cs index 749c6ed..ce8a7af 100644 --- a/PeyrSharp.Core/Converters/Volumes.cs +++ b/PeyrSharp.Core/Converters/Volumes.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Crypt.cs b/PeyrSharp.Core/Crypt.cs index 4397f5b..d8b78b5 100644 --- a/PeyrSharp.Core/Crypt.cs +++ b/PeyrSharp.Core/Crypt.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Guid.cs b/PeyrSharp.Core/Guid.cs index cac4e2f..26ca451 100644 --- a/PeyrSharp.Core/Guid.cs +++ b/PeyrSharp.Core/Guid.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Internet.cs b/PeyrSharp.Core/Internet.cs index c633d79..5531389 100644 --- a/PeyrSharp.Core/Internet.cs +++ b/PeyrSharp.Core/Internet.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -48,6 +48,17 @@ public static class Internet /// The status description of the specified URL. public static async Task GetStatusDescriptionAsync(string url) => (await new HttpClient().GetAsync(url)).ReasonPhrase; + /// + /// Gets the status info of a URL by sending an HTTP GET request and returning a object. + /// + /// The URL to get the status info from. + /// A object that contains the status code, description, and type of the URL. + public static async Task GetStatusInfoAsync(string url) + { + var response = await new HttpClient().GetAsync(url); + return new StatusInfo() { StatusCode = (int)response.StatusCode, StatusDescription = response.ReasonPhrase, StatusType = GetStatusCodeType((int)response.StatusCode) }; + } + /// /// Checks if a connection to the Internet is available. /// diff --git a/PeyrSharp.Core/Maths/Algebra.cs b/PeyrSharp.Core/Maths/Algebra.cs index edae02a..a6f4792 100644 --- a/PeyrSharp.Core/Maths/Algebra.cs +++ b/PeyrSharp.Core/Maths/Algebra.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Geometry/Circle.cs b/PeyrSharp.Core/Maths/Geometry/Circle.cs index e61125e..dadf5bd 100644 --- a/PeyrSharp.Core/Maths/Geometry/Circle.cs +++ b/PeyrSharp.Core/Maths/Geometry/Circle.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Geometry/Cone.cs b/PeyrSharp.Core/Maths/Geometry/Cone.cs index 23626f3..5018a06 100644 --- a/PeyrSharp.Core/Maths/Geometry/Cone.cs +++ b/PeyrSharp.Core/Maths/Geometry/Cone.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Geometry/Cube.cs b/PeyrSharp.Core/Maths/Geometry/Cube.cs index 12b4277..cd125ea 100644 --- a/PeyrSharp.Core/Maths/Geometry/Cube.cs +++ b/PeyrSharp.Core/Maths/Geometry/Cube.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Geometry/Cylinder.cs b/PeyrSharp.Core/Maths/Geometry/Cylinder.cs index 6fb5731..48ec328 100644 --- a/PeyrSharp.Core/Maths/Geometry/Cylinder.cs +++ b/PeyrSharp.Core/Maths/Geometry/Cylinder.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Geometry/Diamond.cs b/PeyrSharp.Core/Maths/Geometry/Diamond.cs index 7bbad16..9cd7e82 100644 --- a/PeyrSharp.Core/Maths/Geometry/Diamond.cs +++ b/PeyrSharp.Core/Maths/Geometry/Diamond.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Geometry/Hexagon.cs b/PeyrSharp.Core/Maths/Geometry/Hexagon.cs index eb75d09..6b49937 100644 --- a/PeyrSharp.Core/Maths/Geometry/Hexagon.cs +++ b/PeyrSharp.Core/Maths/Geometry/Hexagon.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Geometry/Pyramid.cs b/PeyrSharp.Core/Maths/Geometry/Pyramid.cs index 38500a2..523d086 100644 --- a/PeyrSharp.Core/Maths/Geometry/Pyramid.cs +++ b/PeyrSharp.Core/Maths/Geometry/Pyramid.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Geometry/Rectangle.cs b/PeyrSharp.Core/Maths/Geometry/Rectangle.cs index 238398f..a24c18f 100644 --- a/PeyrSharp.Core/Maths/Geometry/Rectangle.cs +++ b/PeyrSharp.Core/Maths/Geometry/Rectangle.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Geometry/Sphere.cs b/PeyrSharp.Core/Maths/Geometry/Sphere.cs index 55a0b33..180b885 100644 --- a/PeyrSharp.Core/Maths/Geometry/Sphere.cs +++ b/PeyrSharp.Core/Maths/Geometry/Sphere.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Geometry/Triangle.cs b/PeyrSharp.Core/Maths/Geometry/Triangle.cs index caab3a7..9183c65 100644 --- a/PeyrSharp.Core/Maths/Geometry/Triangle.cs +++ b/PeyrSharp.Core/Maths/Geometry/Triangle.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Percentages.cs b/PeyrSharp.Core/Maths/Percentages.cs index 7dc9abb..93ef463 100644 --- a/PeyrSharp.Core/Maths/Percentages.cs +++ b/PeyrSharp.Core/Maths/Percentages.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Proba.cs b/PeyrSharp.Core/Maths/Proba.cs index 2a247fd..7abcee7 100644 --- a/PeyrSharp.Core/Maths/Proba.cs +++ b/PeyrSharp.Core/Maths/Proba.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Maths/Stats.cs b/PeyrSharp.Core/Maths/Stats.cs index ecf6dbe..decd566 100644 --- a/PeyrSharp.Core/Maths/Stats.cs +++ b/PeyrSharp.Core/Maths/Stats.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -25,8 +25,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace PeyrSharp.Core.Maths { diff --git a/PeyrSharp.Core/Maths/Trigonometry.cs b/PeyrSharp.Core/Maths/Trigonometry.cs index 2354fe6..a004c6d 100644 --- a/PeyrSharp.Core/Maths/Trigonometry.cs +++ b/PeyrSharp.Core/Maths/Trigonometry.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/Password.cs b/PeyrSharp.Core/Password.cs index a5247b7..98811a3 100644 --- a/PeyrSharp.Core/Password.cs +++ b/PeyrSharp.Core/Password.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Core/PeyrSharp.Core.csproj b/PeyrSharp.Core/PeyrSharp.Core.csproj index 49e65cb..6cf7f04 100644 --- a/PeyrSharp.Core/PeyrSharp.Core.csproj +++ b/PeyrSharp.Core/PeyrSharp.Core.csproj @@ -4,19 +4,24 @@ net5.0;net6.0;net7.0 True PeyrSharp.Core - 1.5.0.2304 - Léo Corporation + 1.6.0.2305 + Devyus Core methods and features of PeyrSharp. © 2023 https://peyrsharp.leocorporation.dev/ - https://github.com/Leo-Corporation/PeyrSharp + https://github.com/DevyusCode/PeyrSharp git math;password;guid;generators;core;geometry logo.png NUGET_README.md MIT True - + - Added a method to convert bits to bytes (#100) +- Added a method to convert bytes to bits (#101) +- Added a method to convert mach to km/h (#102) +- Added a method to convert mach to miles/h (#103) +- Added a StatusInfo class (#104) +- Added a method that gets the status info of a URL (#105) @@ -31,8 +36,8 @@ - - + + - + \ No newline at end of file diff --git a/PeyrSharp.Core/StatusInfo.cs b/PeyrSharp.Core/StatusInfo.cs new file mode 100644 index 0000000..f3272dd --- /dev/null +++ b/PeyrSharp.Core/StatusInfo.cs @@ -0,0 +1,49 @@ +/* +MIT License + +Copyright (c) Devyus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +using PeyrSharp.Enums; + +namespace PeyrSharp.Core +{ + /// + /// Represents a class that can contain some basic info of a status code. + /// + public class StatusInfo + { + /// + /// Gets or sets the status code that indicates the outcome of the request. + /// + public int StatusCode { get; set; } + + /// + /// Gets or sets the status description that provides a human-readable message of the status code. + /// + public string StatusDescription { get; set; } + + /// + /// Gets or sets the status type that categorizes the status code into informational, success, redirection, client error, or server error. + /// + public StatusCodes StatusType { get; set; } + } +} diff --git a/PeyrSharp.Enums/ControlAlignment.cs b/PeyrSharp.Enums/ControlAlignment.cs index ca4ac33..6ce11bc 100644 --- a/PeyrSharp.Enums/ControlAlignment.cs +++ b/PeyrSharp.Enums/ControlAlignment.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Enums/LogLevel.cs b/PeyrSharp.Enums/LogLevel.cs index 7d3f728..0d96b66 100644 --- a/PeyrSharp.Enums/LogLevel.cs +++ b/PeyrSharp.Enums/LogLevel.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Enums/OperatingSystems.cs b/PeyrSharp.Enums/OperatingSystems.cs index 59f2550..d1d2185 100644 --- a/PeyrSharp.Enums/OperatingSystems.cs +++ b/PeyrSharp.Enums/OperatingSystems.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Enums/PasswordPresets.cs b/PeyrSharp.Enums/PasswordPresets.cs index b5e9bfa..8850749 100644 --- a/PeyrSharp.Enums/PasswordPresets.cs +++ b/PeyrSharp.Enums/PasswordPresets.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Enums/PasswordStrength.cs b/PeyrSharp.Enums/PasswordStrength.cs index 63f6c29..678a333 100644 --- a/PeyrSharp.Enums/PasswordStrength.cs +++ b/PeyrSharp.Enums/PasswordStrength.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Enums/PeyrSharp.Enums.csproj b/PeyrSharp.Enums/PeyrSharp.Enums.csproj index 043468f..9474abc 100644 --- a/PeyrSharp.Enums/PeyrSharp.Enums.csproj +++ b/PeyrSharp.Enums/PeyrSharp.Enums.csproj @@ -1,36 +1,35 @@  - - net5.0;net6.0;net7.0 - disable - enable - PeyrSharp.Enums - Léo Corporation - Enumerations of PeyrSharp. - © 2023 - https://peyrsharp.leocorporation.dev/ - https://github.com/Leo-Corporation/PeyrSharp - enums;c-sharp;dotnet;vb;peyrsharp;leo corp - 1.5.0.2304 - True - logo.png - NUGET_README.md - True - MIT - git - - Added the ``LogLevel`` enumeration (#90) - - + + net5.0;net6.0;net7.0 + disable + enable + PeyrSharp.Enums + Devyus + Enumerations of PeyrSharp. + © 2023 + https://peyrsharp.leocorporation.dev/ + https://github.com/DevyusCode/PeyrSharp + enums;c-sharp;dotnet;vb;peyrsharp;leo corp + 1.6.0.2305 + True + logo.png + NUGET_README.md + True + MIT + git + + - - - True - \ - - - True - \ - - + + + True + \ + + + True + \ + + - + \ No newline at end of file diff --git a/PeyrSharp.Enums/StatusCodes.cs b/PeyrSharp.Enums/StatusCodes.cs index 96876b1..8d02386 100644 --- a/PeyrSharp.Enums/StatusCodes.cs +++ b/PeyrSharp.Enums/StatusCodes.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Enums/StorageUnits.cs b/PeyrSharp.Enums/StorageUnits.cs index 9ef2a37..4fe4f2a 100644 --- a/PeyrSharp.Enums/StorageUnits.cs +++ b/PeyrSharp.Enums/StorageUnits.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Enums/SystemThemes.cs b/PeyrSharp.Enums/SystemThemes.cs index 4a7e4e1..4d29566 100644 --- a/PeyrSharp.Enums/SystemThemes.cs +++ b/PeyrSharp.Enums/SystemThemes.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Enums/TimeUnits.cs b/PeyrSharp.Enums/TimeUnits.cs index 344f64b..1a825d0 100644 --- a/PeyrSharp.Enums/TimeUnits.cs +++ b/PeyrSharp.Enums/TimeUnits.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Enums/TriangleSides.cs b/PeyrSharp.Enums/TriangleSides.cs index 241243f..cde87d5 100644 --- a/PeyrSharp.Enums/TriangleSides.cs +++ b/PeyrSharp.Enums/TriangleSides.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Enums/WindowsVersion.cs b/PeyrSharp.Enums/WindowsVersion.cs index c074051..fb21134 100644 --- a/PeyrSharp.Enums/WindowsVersion.cs +++ b/PeyrSharp.Enums/WindowsVersion.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Env/FileSys.cs b/PeyrSharp.Env/FileSys.cs index cb8c6d4..7b1c826 100644 --- a/PeyrSharp.Env/FileSys.cs +++ b/PeyrSharp.Env/FileSys.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Env/Logger.cs b/PeyrSharp.Env/Logger.cs index 5b5a781..0f87e08 100644 --- a/PeyrSharp.Env/Logger.cs +++ b/PeyrSharp.Env/Logger.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Env/PeyrSharp.Env.csproj b/PeyrSharp.Env/PeyrSharp.Env.csproj index 3c52383..2d015b1 100644 --- a/PeyrSharp.Env/PeyrSharp.Env.csproj +++ b/PeyrSharp.Env/PeyrSharp.Env.csproj @@ -4,12 +4,12 @@ net5.0;net6.0;net7.0 True PeyrSharp.Env - 1.5.0.2304 - Léo Corporation + 1.6.0.2305 + Devyus Environment-related methods of PeyrSharp. © 2023 https://peyrsharp.leocorporation.dev/ - https://github.com/Leo-Corporation/PeyrSharp + https://github.com/DevyusCode/PeyrSharp git logger;file;env;file-system;update-system;windows;system logo.png @@ -17,7 +17,7 @@ MIT True - Added the possibility to format the logged message (#89) -- Added the possibility to generate a log message depending on the `LogLevel` (#91) + - Added the possibility to generate a log message depending on the `LogLevel` (#91) @@ -32,6 +32,6 @@ - + - + \ No newline at end of file diff --git a/PeyrSharp.Env/Sys.cs b/PeyrSharp.Env/Sys.cs index 9e14495..7c3988d 100644 --- a/PeyrSharp.Env/Sys.cs +++ b/PeyrSharp.Env/Sys.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Env/Update.cs b/PeyrSharp.Env/Update.cs index 9524fe7..fe7e5d4 100644 --- a/PeyrSharp.Env/Update.cs +++ b/PeyrSharp.Env/Update.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Exceptions/HEXInvalidValueException.cs b/PeyrSharp.Exceptions/HEXInvalidValueException.cs index 5369486..c6b3763 100644 --- a/PeyrSharp.Exceptions/HEXInvalidValueException.cs +++ b/PeyrSharp.Exceptions/HEXInvalidValueException.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Exceptions/InvalidGuidLenghtException.cs b/PeyrSharp.Exceptions/InvalidGuidLenghtException.cs index ba6ae0f..a13a122 100644 --- a/PeyrSharp.Exceptions/InvalidGuidLenghtException.cs +++ b/PeyrSharp.Exceptions/InvalidGuidLenghtException.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Exceptions/PeyrSharp.Exceptions.csproj b/PeyrSharp.Exceptions/PeyrSharp.Exceptions.csproj index d8a7439..a82c4c2 100644 --- a/PeyrSharp.Exceptions/PeyrSharp.Exceptions.csproj +++ b/PeyrSharp.Exceptions/PeyrSharp.Exceptions.csproj @@ -6,12 +6,12 @@ enable True PeyrSharp.Exceptions - 1.5.0.2304 - Léo Corporation + 1.6.0.2305 + Devyus Exceptions of PeyrSharp. © 2023 https://peyrsharp.leocorporation.dev/ - https://github.com/Leo-Corporation/PeyrSharp + https://github.com/DevyusCode/PeyrSharp logo.png NUGET_README.md exceptions;c-sharp;dotnet;vb;peyrsharp;leo corp @@ -31,4 +31,4 @@ - + \ No newline at end of file diff --git a/PeyrSharp.Exceptions/RGBInvalidValueException.cs b/PeyrSharp.Exceptions/RGBInvalidValueException.cs index e426d2a..c682967 100644 --- a/PeyrSharp.Exceptions/RGBInvalidValueException.cs +++ b/PeyrSharp.Exceptions/RGBInvalidValueException.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Extensions/ArrayExtensions.cs b/PeyrSharp.Extensions/ArrayExtensions.cs index a8ab3af..295c1f5 100644 --- a/PeyrSharp.Extensions/ArrayExtensions.cs +++ b/PeyrSharp.Extensions/ArrayExtensions.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Extensions/DoubleExtensions.cs b/PeyrSharp.Extensions/DoubleExtensions.cs index 7000e78..482a38d 100644 --- a/PeyrSharp.Extensions/DoubleExtensions.cs +++ b/PeyrSharp.Extensions/DoubleExtensions.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Extensions/IntExtensions.cs b/PeyrSharp.Extensions/IntExtensions.cs index fb5ee29..ca5525b 100644 --- a/PeyrSharp.Extensions/IntExtensions.cs +++ b/PeyrSharp.Extensions/IntExtensions.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.Extensions/PeyrSharp.Extensions.csproj b/PeyrSharp.Extensions/PeyrSharp.Extensions.csproj index 581117e..03ae179 100644 --- a/PeyrSharp.Extensions/PeyrSharp.Extensions.csproj +++ b/PeyrSharp.Extensions/PeyrSharp.Extensions.csproj @@ -4,21 +4,19 @@ net5.0;net6.0;net7.0 True PeyrSharp.Extensions - 1.5.0.2304 - Léo Corporation + 1.6.0.2305 + Devyus Extensions methods of PeyrSharp. © 2023 https://peyrsharp.leocorporation.dev/ - https://github.com/Leo-Corporation/PeyrSharp + https://github.com/DevyusCode/PeyrSharp git extension;extends;string;double;int;peyrsharp;crypt;converters;array logo.png NUGET_README.md MIT True - - Added Mean() extension method for int[] and double[] (#92) -- Added Median() extension method for int[] and double[] (#93) -- Added Mode() extension method for int[] and double[] (#94) + @@ -33,7 +31,7 @@ - + - + \ No newline at end of file diff --git a/PeyrSharp.Extensions/StringExtensions.cs b/PeyrSharp.Extensions/StringExtensions.cs index a0f19c8..ddf5013 100644 --- a/PeyrSharp.Extensions/StringExtensions.cs +++ b/PeyrSharp.Extensions/StringExtensions.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.UiHelpers/PeyrSharp.UiHelpers.csproj b/PeyrSharp.UiHelpers/PeyrSharp.UiHelpers.csproj index 024c7ec..2d8c022 100644 --- a/PeyrSharp.UiHelpers/PeyrSharp.UiHelpers.csproj +++ b/PeyrSharp.UiHelpers/PeyrSharp.UiHelpers.csproj @@ -1,40 +1,41 @@  - - net5.0-windows;net6.0-windows;net7.0-windows - disable - enable - true - true - True - PeyrSharp.UiHelpers - 1.5.0.2304 - Léo Corporation - Useful helpers for Windows Forms and Windows Presentation Framework. - © 2023 - https://peyrsharp.leocorporation.dev/ - https://github.com/Leo-Corporation/PeyrSharp - ui-helpers;c-sharp;dotnet;vb;peyrsharp;leo corp;wpf;windows-forms;win-forms;ui;windows - logo.png - NUGET_README.md - MIT - True - - + + net5.0-windows;net6.0-windows;net7.0-windows + disable + enable + true + true + True + PeyrSharp.UiHelpers + 1.6.0.2305 + Devyus + Useful helpers for Windows Forms and Windows Presentation Framework. + © 2023 + https://peyrsharp.leocorporation.dev/ + https://github.com/DevyusCode/PeyrSharp + ui-helpers;c-sharp;dotnet;vb;peyrsharp;leo + corp;wpf;windows-forms;win-forms;ui;windows + logo.png + NUGET_README.md + MIT + True + + - - - True - \ - - - True - \ - - + + + True + \ + + + True + \ + + - - - + + + - + \ No newline at end of file diff --git a/PeyrSharp.UiHelpers/ScreenHelpers.cs b/PeyrSharp.UiHelpers/ScreenHelpers.cs index bb1a405..86371e5 100644 --- a/PeyrSharp.UiHelpers/ScreenHelpers.cs +++ b/PeyrSharp.UiHelpers/ScreenHelpers.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.UiHelpers/WinFormsHelpers.cs b/PeyrSharp.UiHelpers/WinFormsHelpers.cs index 67b8932..1bbbcf0 100644 --- a/PeyrSharp.UiHelpers/WinFormsHelpers.cs +++ b/PeyrSharp.UiHelpers/WinFormsHelpers.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp.UiHelpers/WpfHelpers.cs b/PeyrSharp.UiHelpers/WpfHelpers.cs index aa755c9..426622b 100644 --- a/PeyrSharp.UiHelpers/WpfHelpers.cs +++ b/PeyrSharp.UiHelpers/WpfHelpers.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/PeyrSharp/PeyrSharp.cs b/PeyrSharp/PeyrSharp.cs index daac84b..bf2774b 100644 --- a/PeyrSharp/PeyrSharp.cs +++ b/PeyrSharp/PeyrSharp.cs @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) Léo Corporation +Copyright (c) Devyus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -32,6 +32,6 @@ public static class PeyrSharp /// /// The current version of PeyrSharp. /// - public static string Version => "1.5.0.2304"; + public static string Version => "1.6.0.2305"; } } diff --git a/PeyrSharp/PeyrSharp.csproj b/PeyrSharp/PeyrSharp.csproj index ee71e8b..00538d2 100644 --- a/PeyrSharp/PeyrSharp.csproj +++ b/PeyrSharp/PeyrSharp.csproj @@ -4,24 +4,25 @@ net5.0;net6.0;net5.0-windows;net6.0-windows;net7.0;net7.0-windows True PeyrSharp - 1.5.0.2304 - Léo Corporation + 1.6.0.2305 + Devyus © 2023 A C# library designed to make developers' job easier. https://peyrsharp.leocorporation.dev/ - https://github.com/Leo-Corporation/PeyrSharp + https://github.com/DevyusCode/PeyrSharp git - math;password;guid;generators;core;geometry;environment;extensions;enumerations;exceptions;ui-helpers + + math;password;guid;generators;core;geometry;environment;extensions;enumerations;exceptions;ui-helpers logo.png NUGET_README.md MIT True - - Added the possibility to format the logged message (#89) -- Added the LogLevel enumeration (#90) -- Added the possibility to generate a log message depending on the LogLevel (#91) -- Added Mean() extension method for int[] and double[] (#92) -- Added Median() extension method for int[] and double[] (#93) -- Added Mode() extension method for int[] and double[] (#94) + - Added a method to convert bits to bytes (#100) +- Added a method to convert bytes to bits (#101) +- Added a method to convert mach to km/h (#102) +- Added a method to convert mach to miles/h (#103) +- Added a StatusInfo class (#104) +- Added a method that gets the status info of a URL (#105) @@ -36,12 +37,12 @@ - - - - - - + + + + + + - + \ No newline at end of file diff --git a/README.md b/README.md index d6a2da9..8ee488e 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ ![Using PeyrSharp](https://img.shields.io/badge/using-PeyrSharp-DD00FF?logo=nuget) -![GitHub contributors](https://img.shields.io/github/contributors/Leo-Corporation/PeyrSharp) -![GitHub issues](https://img.shields.io/github/issues/Leo-Corporation/PeyrSharp) -![GitHub](https://img.shields.io/github/license/Leo-Corporation/PeyrSharp) -![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Leo-Corporation/PeyrSharp) +![GitHub contributors](https://img.shields.io/github/contributors/DevyusCode/PeyrSharp) +![GitHub issues](https://img.shields.io/github/issues/DevyusCode/PeyrSharp) +![GitHub](https://img.shields.io/github/license/DevyusCode/PeyrSharp) +![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/DevyusCode/PeyrSharp) ![Nuget](https://img.shields.io/nuget/dt/PeyrSharp)

- + Logo @@ -18,9 +18,9 @@
View documentation »
- Report Bug + Report Bug · - Request Feature + Request Feature · NuGet @@ -28,13 +28,17 @@

## Introduction + ### The roots + In March 2020, we published LeoCorpLibrary, which was also a C# library that contains useful methods. When we started the development of it, we didn't know where the project will go yet. Over the releases, we've added more and more methods and new features. However, the meaning and the purpose of LeoCorpLibrary was becoming less clear for everyone; it was becoming a mess. This is why we decided to rather not release v5, but instead, we decided to make a brand new .NET Library, PeyrSharp. ### Our next product + PeyrSharp is a C# written library designed to make developers' life easier. We've all written code that we wish we hadn't. PeyrSharp is here to respond to this need; by implementing useful methods in various domains: Mathematics, Web/HTTP requests, unit converters, extensions, environment-related operations, and more! ## Modules + PeyrSharp is divided in multiple packages: **PeyrSharp**, the main package, that contains all of the followings: @@ -79,7 +83,7 @@ PeyrSharp is divided in multiple packages: - PasswordPresets - PasswordStrength - +
@@ -116,61 +120,73 @@ PeyrSharp is divided in multiple packages:
## Compatibility + ### Platforms + Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platforms. -| Package/Platform | Windows | macOS | Linux + others | -|------------------ |--------- |------- |---------------- | -| Core | ✅ | ✅ | ✅ | -| Env | ✅ | ⚠️ | ⚠️ | -| Enums | ✅ | ✅ | ✅ | -| Exceptions | ✅ | ✅ | ✅ | -| Extensions | ✅ | ✅ | ✅ | -| UiHelpers | ✅ | ❌ | ❌ | +| Package/Platform | Windows | macOS | Linux + others | +| ---------------- | ------- | ----- | -------------- | +| Core | ✅ | ✅ | ✅ | +| Env | ✅ | ⚠️ | ⚠️ | +| Enums | ✅ | ✅ | ✅ | +| Exceptions | ✅ | ✅ | ✅ | +| Extensions | ✅ | ✅ | ✅ | +| UiHelpers | ✅ | ❌ | ❌ | Caption: + - ✅ Full Support - ⚠️ Partial Support - ❌ Unsupported platform ### Frameworks + PeyrSharp is available in the following frameworks + - .NET 5 - .NET 6 -- .NET 7 (soon) +- .NET 7 > Note: .NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported. ## Documentation + ### Website + PeyrSharp has an [official website](https://peyrsharp.leocorporation.dev/) where you can find its documentation. ### Branches + There are two branches: -| Name | Release | Description | -| :--: | :-----: | :---------: | -| `main` | ![GitHub release (latest by date)](https://img.shields.io/github/v/release/Leo-Corporation/PeyrSharp) | Stable versions | -| `vNext` | ![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/Leo-Corporation/PeyrSharp?include_prereleases) | Next version of PeyrSharp (unstable) | -| `doc` | N/A | The branch used to maintain the documentation. | +| Name | Release | Description | +| :-----: | :-----------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------: | +| `main` | ![GitHub release (latest by date)](https://img.shields.io/github/v/release/DevyusCode/PeyrSharp) | Stable versions | +| `vNext` | ![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/DevyusCode/PeyrSharp?include_prereleases) | Next version of PeyrSharp (unstable) | +| `doc` | N/A | The branch used to maintain the documentation. | > Note: Other branches can also - of course - exists. ## Contribute + Here's what you'll need to contribute to this project: + - Visual Studio 2022 with: - - .NET Desktop Development - - Git + - .NET Desktop Development + - Git - .NET - - .NET 5 (SDK + runtime) - - .NET 6 (SDK + runtime) - - .NET 7 (SDK + runtime) -- (*optional*) NuGet + - .NET 5 (SDK + runtime) + - .NET 6 (SDK + runtime) + - .NET 7 (SDK + runtime) +- (_optional_) NuGet ## Badge -~~~ md + +```md ![Using PeyrSharp](https://img.shields.io/badge/using-PeyrSharp-DD00FF?logo=nuget) -~~~ +``` ## License -Project under the [MIT](https://github.com/Leo-Corporation/PeyrSharp/blob/main/LICENSE) license. + +Project under the [MIT](https://github.com/DevyusCode/PeyrSharp/blob/main/LICENSE) license. diff --git a/docs/404.html b/docs/404.html index bc6c37c..43c6a6f 100644 --- a/docs/404.html +++ b/docs/404.html @@ -5,16 +5,16 @@ 404 | PeyrSharp - - + + -
Skip to content

404

PAGE NOT FOUND

But if you don't change your direction, and if you keep looking, you may end up where you are heading.

Released under the MIT License.

- +
Skip to content

404

PAGE NOT FOUND

But if you don't change your direction, and if you keep looking, you may end up where you are heading.

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/assets/app.3ffe746f.js b/docs/assets/app.3ffe746f.js deleted file mode 100644 index 728131a..0000000 --- a/docs/assets/app.3ffe746f.js +++ /dev/null @@ -1 +0,0 @@ -import{d as p,K as s,a3 as i,u,h as c,l,a4 as d,a5 as f,a6 as m,a7 as h,a8 as A,a9 as g,aa as P,ab as v,ac as y,ad as C,ae as w,af as _,ag as b,H as E}from"./chunks/framework.7addaa9c.js";import{t as R}from"./chunks/theme.fdc5fc3e.js";function r(e){if(e.extends){const a=r(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const n=r(R),D=p({name:"VitePressApp",setup(){const{site:e}=u();return c(()=>{l(()=>{document.documentElement.lang=e.value.lang,document.documentElement.dir=e.value.dir})}),d(),f(),m(),n.setup&&n.setup(),()=>h(n.Layout)}});async function O(){const e=T(),a=S();a.provide(A,e);const t=g(e.route);return a.provide(P,t),a.component("Content",v),a.component("ClientOnly",y),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),n.enhanceApp&&await n.enhanceApp({app:a,router:e,siteData:C}),{app:a,router:e,data:t}}function S(){return w(D)}function T(){let e=s,a;return _(t=>{let o=b(t);return e&&(a=o),(e||a===o)&&(o=o.replace(/\.js$/,".lean.js")),s&&(e=!1),E(()=>import(o),[])},n.NotFound)}s&&O().then(({app:e,router:a,data:t})=>{a.go().then(()=>{i(a.route,t.site),e.mount("#app")})});export{O as createApp}; diff --git a/docs/assets/app.e39ed1e4.js b/docs/assets/app.e39ed1e4.js new file mode 100644 index 0000000..eaf9b1f --- /dev/null +++ b/docs/assets/app.e39ed1e4.js @@ -0,0 +1 @@ +import{d as p,M as s,a4 as i,u,p as c,k as l,a5 as d,a6 as f,a7 as m,a8 as h,a9 as A,aa as g,ab as P,ac as v,ad as y,ae as C,af as w,ag as _,ah as b,J as E}from"./chunks/framework.bdd825cc.js";import{t as R}from"./chunks/theme.592b6d28.js";function r(e){if(e.extends){const a=r(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const n=r(R),D=p({name:"VitePressApp",setup(){const{site:e}=u();return c(()=>{l(()=>{document.documentElement.lang=e.value.lang,document.documentElement.dir=e.value.dir})}),d(),f(),m(),n.setup&&n.setup(),()=>h(n.Layout)}});async function O(){const e=T(),a=S();a.provide(A,e);const t=g(e.route);return a.provide(P,t),a.component("Content",v),a.component("ClientOnly",y),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),n.enhanceApp&&await n.enhanceApp({app:a,router:e,siteData:C}),{app:a,router:e,data:t}}function S(){return w(D)}function T(){let e=s,a;return _(t=>{let o=b(t);return e&&(a=o),(e||a===o)&&(o=o.replace(/\.js$/,".lean.js")),s&&(e=!1),E(()=>import(o),[])},n.NotFound)}s&&O().then(({app:e,router:a,data:t})=>{a.go().then(()=>{i(a.route,t.site),e.mount("#app")})});export{O as createApp}; diff --git a/docs/assets/chunks/VPAlgoliaSearchBox.16b18f6c.js b/docs/assets/chunks/VPAlgoliaSearchBox.16b18f6c.js new file mode 100644 index 0000000..68cd7ef --- /dev/null +++ b/docs/assets/chunks/VPAlgoliaSearchBox.16b18f6c.js @@ -0,0 +1,14 @@ +import{d as kr,ai as Dr,x as Cr,p as xr,w as Ar,o as Nr,c as Rr}from"./framework.bdd825cc.js";import{u as Tr}from"./theme.592b6d28.js";/*! @docsearch/js 3.3.4 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t=0||(l[u]=c[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ze(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var a,c,i=[],u=!0,s=!1;try{for(o=o.call(n);!(u=(a=o.next()).done)&&(i.push(a.value),!r||i.length!==r);u=!0);}catch(l){s=!0,c=l}finally{try{u||o.return==null||o.return()}finally{if(s)throw c}}return i}}(e,t)||Un(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Je(e){return function(t){if(Array.isArray(t))return mt(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||Un(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Un(e,t){if(e){if(typeof e=="string")return mt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(e,t):void 0}}function mt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3)for(n=[n],a=3;a0?Ee(d.type,d.props,d.key,null,d.__v):d)!=null){if(d.__=n,d.__b=n.__b+1,(m=S[l])===null||m&&d.key==m.key&&d.type===m.type)S[l]=void 0;else for(p=0;p3)for(n=[n],a=3;a=n.__.length&&n.__.push({}),n.__[e]}function Gn(e){return fe=1,Xn(tr,e)}function Xn(e,t,n){var r=De(pe++,2);return r.t=e,r.__c||(r.__=[n?n(t):tr(void 0,t),function(o){var a=r.t(r.__[0],o);r.__[0]!==a&&(r.__=[a,r.__[1]],r.__c.setState({}))}],r.__c=q),r.__}function er(e,t){var n=De(pe++,3);!E.__s&&kt(n.__H,t)&&(n.__=e,n.__H=t,q.__H.__h.push(n))}function Wt(e,t){var n=De(pe++,4);!E.__s&&kt(n.__H,t)&&(n.__=e,n.__H=t,q.__h.push(n))}function at(e,t){var n=De(pe++,7);return kt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Br(){ht.forEach(function(e){if(e.__P)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(vt),e.__H.__h=[]}catch(t){e.__H.__h=[],E.__e(t,e.__v)}}),ht=[]}E.__b=function(e){q=null,Ht&&Ht(e)},E.__r=function(e){Ut&&Ut(e),pe=0;var t=(q=e.__c).__H;t&&(t.__h.forEach(Be),t.__h.forEach(vt),t.__h=[])},E.diffed=function(e){Ft&&Ft(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(ht.push(t)!==1&&Mt===E.requestAnimationFrame||((Mt=E.requestAnimationFrame)||function(n){var r,o=function(){clearTimeout(a),Kt&&cancelAnimationFrame(r),setTimeout(n)},a=setTimeout(o,100);Kt&&(r=requestAnimationFrame(o))})(Br)),q=void 0},E.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Be),n.__h=n.__h.filter(function(r){return!r.__||vt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],E.__e(r,n.__v)}}),Bt&&Bt(e,t)},E.unmount=function(e){Vt&&Vt(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Be)}catch(n){E.__e(n,t.__v)}};var Kt=typeof requestAnimationFrame=="function";function Be(e){var t=q;typeof e.__c=="function"&&e.__c(),q=t}function vt(e){var t=q;e.__c=e.__(),q=t}function kt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function tr(e,t){return typeof t=="function"?t(e):t}function nr(e,t){for(var n in t)e[n]=t[n];return e}function yt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function _t(e){this.props=e}(_t.prototype=new W).isPureReactComponent=!0,_t.prototype.shouldComponentUpdate=function(e,t){return yt(this.props,e)||yt(this.state,t)};var zt=E.__b;E.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),zt&&zt(e)};var Vr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Jt=function(e,t){return e==null?null:J(J(e).map(t))},Wr={map:Jt,forEach:Jt,count:function(e){return e?J(e).length:0},only:function(e){var t=J(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:J},Kr=E.__e;function Ve(){this.__u=0,this.t=null,this.__b=null}function rr(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function be(){this.u=null,this.o=null}E.__e=function(e,t,n){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}Kr(e,t,n)},(Ve.prototype=new W).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=rr(r.__v),a=!1,c=function(){a||(a=!0,n.componentWillUnmount=n.__c,o?o(i):i())};n.__c=n.componentWillUnmount,n.componentWillUnmount=function(){c(),n.__c&&n.__c()};var i=function(){if(!--r.__u){if(r.state.__e){var s=r.state.__e;r.__v.__k[0]=function p(m,d,_){return m&&(m.__v=null,m.__k=m.__k&&m.__k.map(function(v){return p(v,d,_)}),m.__c&&m.__c.__P===d&&(m.__e&&_.insertBefore(m.__e,m.__d),m.__c.__e=!0,m.__c.__P=_)),m}(s,s.__c.__P,s.__c.__O)}var l;for(r.setState({__e:r.__b=null});l=r.t.pop();)l.forceUpdate()}},u=t.__h===!0;r.__u++||u||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(c,c)},Ve.prototype.componentWillUnmount=function(){this.t=[]},Ve.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function a(c,i,u){return c&&(c.__c&&c.__c.__H&&(c.__c.__H.__.forEach(function(s){typeof s.__c=="function"&&s.__c()}),c.__c.__H=null),(c=nr({},c)).__c!=null&&(c.__c.__P===u&&(c.__c.__P=i),c.__c=null),c.__k=c.__k&&c.__k.map(function(s){return a(s,i,u)})),c}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&V(Y,null,e.fallback);return o&&(o.__h=null),[V(Y,null,t.__e?null:e.children),o]};var $t=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(r)}}),Ie(V(zr,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function or(e,t){return V(Jr,{__v:e,i:t})}(be.prototype=new W).__e=function(e){var t=this,n=rr(t.__v),r=t.o.get(e);return r[0]++,function(o){var a=function(){t.props.revealOrder?(r.push(o),$t(t,e,r)):o()};n?n(a):a()}},be.prototype.render=function(e){this.u=null,this.o=new Map;var t=J(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},be.prototype.componentDidUpdate=be.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){$t(e,n,t)})};var ar=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,$r=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Qr=function(e){return(typeof Symbol<"u"&&je(Symbol())=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};function cr(e,t,n){return t.__k==null&&(t.textContent=""),Ie(e,t),typeof n=="function"&&n(),e?e.__c:null}W.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(W.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Qt=E.event;function Zr(){}function Yr(){return this.cancelBubble}function Gr(){return this.defaultPrevented}E.event=function(e){return Qt&&(e=Qt(e)),e.persist=Zr,e.isPropagationStopped=Yr,e.isDefaultPrevented=Gr,e.nativeEvent=e};var ir,Zt={configurable:!0,get:function(){return this.class}},Yt=E.vnode;E.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){for(var o in r={},n){var a=n[o];o==="value"&&"defaultValue"in n&&a==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Qr(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():$r.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():a===null&&(a=void 0),r[o]=a)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=J(n.children).forEach(function(c){c.props.selected=r.value.indexOf(c.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=J(n.children).forEach(function(c){c.props.selected=r.multiple?r.defaultValue.indexOf(c.props.value)!=-1:r.defaultValue==c.props.value})),e.props=r}t&&n.class!=n.className&&(Zt.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Zt)),e.$$typeof=ar,Yt&&Yt(e)};var Gt=E.__r;E.__r=function(e){Gt&&Gt(e),ir=e.__c};var Xr={ReactCurrentDispatcher:{current:{readContext:function(e){return ir.__n[e.__c].props.value}}}};(typeof performance>"u"?"undefined":je(performance))=="object"&&typeof performance.now=="function"&&performance.now.bind(performance);function Xt(e){return!!e&&e.$$typeof===ar}var f={useState:Gn,useReducer:Xn,useEffect:er,useLayoutEffect:Wt,useRef:function(e){return fe=5,at(function(){return{current:e}},[])},useImperativeHandle:function(e,t,n){fe=6,Wt(function(){typeof e=="function"?e(t()):e&&(e.current=t())},n==null?n:n.concat(e))},useMemo:at,useCallback:function(e,t){return fe=8,at(function(){return e},t)},useContext:function(e){var t=q.context[e.__c],n=De(pe++,9);return n.__c=e,t?(n.__==null&&(n.__=!0,t.sub(q)),t.props.value):e.__},useDebugValue:function(e,t){E.useDebugValue&&E.useDebugValue(t?t(e):e)},version:"16.8.0",Children:Wr,render:cr,hydrate:function(e,t,n){return Yn(e,t),typeof n=="function"&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Ie(null,e),!0)},createPortal:or,createElement:V,createContext:function(e,t){var n={__c:t="__cC"+Bn++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,a;return this.getChildContext||(o=[],(a={})[t]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&o.some(dt)},this.sub=function(c){o.push(c);var i=c.componentWillUnmount;c.componentWillUnmount=function(){o.splice(o.indexOf(c),1),i&&i.call(c)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return V.bind(null,e)},cloneElement:function(e){return Xt(e)?Fr.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:Y,isValidElement:Xt,findDOMNode:function(e){return e&&(e.base||e.nodeType===1&&e)||null},Component:W,PureComponent:_t,memo:function(e,t){function n(o){var a=this.props.ref,c=a==o.ref;return!c&&a&&(a.call?a(null):a.current=null),t?!t(this.props,o)||!c:yt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,V(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(n,r){var o=nr({},n);return delete o.ref,e(o,(r=n.ref||r)&&(je(r)!="object"||"current"in r)?r:null)}return t.$$typeof=Vr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:Y,Suspense:Ve,SuspenseList:be,lazy:function(e){var t,n,r;function o(a){if(t||(t=e()).then(function(c){n=c.default||c},function(c){r=c}),r)throw r;if(!n)throw t;return V(n,a)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Xr};function eo(){return f.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},f.createElement("path",{d:"M4.505 4.496h2M5.505 5.496v5M8.216 4.496l.055 5.993M10 7.5c.333.333.5.667.5 1v2M12.326 4.5v5.996M8.384 4.496c1.674 0 2.116 0 2.116 1.5s-.442 1.5-2.116 1.5M3.205 9.303c-.09.448-.277 1.21-1.241 1.203C1 10.5.5 9.513.5 8V7c0-1.57.5-2.5 1.464-2.494.964.006 1.134.598 1.24 1.342M12.553 10.5h1.953",strokeWidth:"1.2",stroke:"currentColor",fill:"none",strokeLinecap:"square"}))}function ur(){return f.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20"},f.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}var to=["translations"];function gt(){return gt=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(l[u]=c[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var oo=f.forwardRef(function(e,t){var n=e.translations,r=n===void 0?{}:n,o=ro(e,to),a=r.buttonText,c=a===void 0?"Search":a,i=r.buttonAriaLabel,u=i===void 0?"Search":i,s=no(Gn(null),2),l=s[0],p=s[1];return er(function(){typeof navigator<"u"&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?p("⌘"):p("Ctrl"))},[]),f.createElement("button",gt({type:"button",className:"DocSearch DocSearch-Button","aria-label":u},o,{ref:t}),f.createElement("span",{className:"DocSearch-Button-Container"},f.createElement(ur,null),f.createElement("span",{className:"DocSearch-Button-Placeholder"},c)),f.createElement("span",{className:"DocSearch-Button-Keys"},l!==null&&f.createElement(f.Fragment,null,f.createElement("kbd",{className:"DocSearch-Button-Key"},l==="Ctrl"?f.createElement(eo,null):l),f.createElement("kbd",{className:"DocSearch-Button-Key"},"K"))))});function ke(e){return e.reduce(function(t,n){return t.concat(n)},[])}var ao=0;function bt(e){return e.collections.length===0?0:e.collections.reduce(function(t,n){return t+n.items.length},0)}var Ot=function(){},co=[{segment:"autocomplete-core",version:"1.8.2"}];function We(e,t){var n=t;return{then:function(r,o){return We(e.then(Re(r,n,e),Re(o,n,e)),n)},catch:function(r){return We(e.catch(Re(r,n,e)),n)},finally:function(r){return r&&n.onCancelList.push(r),We(e.finally(Re(r&&function(){return n.onCancelList=[],r()},n,e)),n)},cancel:function(){n.isCanceled=!0;var r=n.onCancelList;n.onCancelList=[],r.forEach(function(o){o()})},isCanceled:function(){return n.isCanceled===!0}}}function tn(e){return We(e,{isCanceled:!1,onCancelList:[]})}function Re(e,t,n){return e?function(r){return t.isCanceled?r:e(r)}:n}function nn(e,t,n,r){if(!n)return null;if(e<0&&(t===null||r!==null&&t===0))return n+e;var o=(t===null?-1:t)+e;return o<=-1||o>=n?r===null?null:0:o}function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0},reshape:function(a){return a.sources}},e),{},{id:(n=e.id)!==null&&n!==void 0?n:"autocomplete-".concat(ao++),plugins:o,initialState:ae({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(a){var c;(c=e.onStateChange)===null||c===void 0||c.call(e,a),o.forEach(function(i){var u;return(u=i.onStateChange)===null||u===void 0?void 0:u.call(i,a)})},onSubmit:function(a){var c;(c=e.onSubmit)===null||c===void 0||c.call(e,a),o.forEach(function(i){var u;return(u=i.onSubmit)===null||u===void 0?void 0:u.call(i,a)})},onReset:function(a){var c;(c=e.onReset)===null||c===void 0||c.call(e,a),o.forEach(function(i){var u;return(u=i.onReset)===null||u===void 0?void 0:u.call(i,a)})},getSources:function(a){return Promise.all([].concat(mo(o.map(function(c){return c.getSources})),[e.getSources]).filter(Boolean).map(function(c){return function(i,u){var s=[];return Promise.resolve(i(u)).then(function(l){return Promise.all(l.filter(function(p){return!!p}).map(function(p){if(p.sourceId,s.includes(p.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(p.sourceId)," is not unique."));s.push(p.sourceId);var m={getItemInputValue:function(_){return _.state.query},getItemUrl:function(){},onSelect:function(_){(0,_.setIsOpen)(!1)},onActive:Ot,onResolve:Ot};Object.keys(m).forEach(function(_){m[_].__default=!0});var d=on(on({},m),p);return Promise.resolve(d)}))})}(c,a)})).then(function(c){return ke(c)}).then(function(c){return c.map(function(i){return ae(ae({},i),{},{onSelect:function(u){i.onSelect(u),t.forEach(function(s){var l;return(l=s.onSelect)===null||l===void 0?void 0:l.call(s,u)})},onActive:function(u){i.onActive(u),t.forEach(function(s){var l;return(l=s.onActive)===null||l===void 0?void 0:l.call(s,u)})},onResolve:function(u){i.onResolve(u),t.forEach(function(s){var l;return(l=s.onResolve)===null||l===void 0?void 0:l.call(s,u)})}})})})},navigator:ae({navigate:function(a){var c=a.itemUrl;r.location.assign(c)},navigateNewTab:function(a){var c=a.itemUrl,i=r.open(c,"_blank","noopener");i==null||i.focus()},navigateNewWindow:function(a){var c=a.itemUrl;r.open(c,"_blank","noopener")}},e.navigator)})}function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function qe(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(l[u]=c[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var mn,ut,He,ge=null,dn=(mn=-1,ut=-1,He=void 0,function(e){var t=++mn;return Promise.resolve(e).then(function(n){return He&&t=0||(l[u]=c[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Io=["props","refresh","store"],ko=["inputElement","formElement","panelElement"],Do=["inputElement"],Co=["inputElement","maxLength"],xo=["sourceIndex"],Ao=["sourceIndex"],No=["item","source","sourceIndex"];function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function R(e){for(var t=1;t=0||(l[u]=c[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function To(e){var t=e.props,n=e.refresh,r=e.store,o=te(e,Io),a=function(c,i){return i!==void 0?"".concat(c,"-").concat(i):c};return{getEnvironmentProps:function(c){var i=c.inputElement,u=c.formElement,s=c.panelElement;function l(p){!r.getState().isOpen&&r.pendingRequests.isEmpty()||p.target===i||[u,s].some(function(m){return d=m,_=p.target,d===_||d.contains(_);var d,_})===!1&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return R({onTouchStart:l,onMouseDown:l,onTouchMove:function(p){r.getState().isOpen!==!1&&i===t.environment.document.activeElement&&p.target!==i&&i.blur()}},te(c,ko))},getRootProps:function(c){return R({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},c)},getFormProps:function(c){return c.inputElement,R({action:"",noValidate:!0,role:"search",onSubmit:function(i){var u;i.preventDefault(),t.onSubmit(R({event:i,refresh:n,state:r.getState()},o)),r.dispatch("submit",null),(u=c.inputElement)===null||u===void 0||u.blur()},onReset:function(i){var u;i.preventDefault(),t.onReset(R({event:i,refresh:n,state:r.getState()},o)),r.dispatch("reset",null),(u=c.inputElement)===null||u===void 0||u.focus()}},te(c,Do))},getLabelProps:function(c){var i=c||{},u=i.sourceIndex,s=te(i,xo);return R({htmlFor:"".concat(a(t.id,u),"-input"),id:"".concat(a(t.id,u),"-label")},s)},getInputProps:function(c){var i;function u(y){(t.openOnFocus||r.getState().query)&&ue(R({event:y,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},o)),r.dispatch("focus",null)}var s=c||{},l=(s.inputElement,s.maxLength),p=l===void 0?512:l,m=te(s,Co),d=le(r.getState()),_=function(y){return!!(y&&y.match(uo))}(((i=t.environment.navigator)===null||i===void 0?void 0:i.userAgent)||""),v=d!=null&&d.itemUrl&&!_?"go":"search";return R({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&r.getState().activeItemId!==null?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:v,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:p,type:"search",onChange:function(y){ue(R({event:y,props:t,query:y.currentTarget.value.slice(0,p),refresh:n,store:r},o))},onKeyDown:function(y){(function(S){var g=S.event,O=S.props,b=S.refresh,h=S.store,P=Po(S,wo);if(g.key==="ArrowUp"||g.key==="ArrowDown"){var A=function(){var L=O.environment.document.getElementById("".concat(O.id,"-item-").concat(h.getState().activeItemId));L&&(L.scrollIntoViewIfNeeded?L.scrollIntoViewIfNeeded(!1):L.scrollIntoView(!1))},T=function(){var L=le(h.getState());if(h.getState().activeItemId!==null&&L){var G=L.item,nt=L.itemInputValue,Ce=L.itemUrl,re=L.source;re.onActive(ee({event:g,item:G,itemInputValue:nt,itemUrl:Ce,refresh:b,source:re,state:h.getState()},P))}};g.preventDefault(),h.getState().isOpen===!1&&(O.openOnFocus||h.getState().query)?ue(ee({event:g,props:O,query:h.getState().query,refresh:b,store:h},P)).then(function(){h.dispatch(g.key,{nextActiveItemId:O.defaultActiveItemId}),T(),setTimeout(A,0)}):(h.dispatch(g.key,{}),T(),A())}else if(g.key==="Escape")g.preventDefault(),h.dispatch(g.key,null),h.pendingRequests.cancelAll();else if(g.key==="Tab")h.dispatch("blur",null),h.pendingRequests.cancelAll();else if(g.key==="Enter"){if(h.getState().activeItemId===null||h.getState().collections.every(function(L){return L.items.length===0}))return void(O.debug||h.pendingRequests.cancelAll());g.preventDefault();var x=le(h.getState()),D=x.item,N=x.itemInputValue,F=x.itemUrl,B=x.source;if(g.metaKey||g.ctrlKey)F!==void 0&&(B.onSelect(ee({event:g,item:D,itemInputValue:N,itemUrl:F,refresh:b,source:B,state:h.getState()},P)),O.navigator.navigateNewTab({itemUrl:F,item:D,state:h.getState()}));else if(g.shiftKey)F!==void 0&&(B.onSelect(ee({event:g,item:D,itemInputValue:N,itemUrl:F,refresh:b,source:B,state:h.getState()},P)),O.navigator.navigateNewWindow({itemUrl:F,item:D,state:h.getState()}));else if(!g.altKey){if(F!==void 0)return B.onSelect(ee({event:g,item:D,itemInputValue:N,itemUrl:F,refresh:b,source:B,state:h.getState()},P)),void O.navigator.navigate({itemUrl:F,item:D,state:h.getState()});ue(ee({event:g,nextState:{isOpen:!1},props:O,query:N,refresh:b,store:h},P)).then(function(){B.onSelect(ee({event:g,item:D,itemInputValue:N,itemUrl:F,refresh:b,source:B,state:h.getState()},P))})}}})(R({event:y,props:t,refresh:n,store:r},o))},onFocus:u,onBlur:Ot,onClick:function(y){c.inputElement!==t.environment.document.activeElement||r.getState().isOpen||u(y)}},m)},getPanelProps:function(c){return R({onMouseDown:function(i){i.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},c)},getListProps:function(c){var i=c||{},u=i.sourceIndex,s=te(i,Ao);return R({role:"listbox","aria-labelledby":"".concat(a(t.id,u),"-label"),id:"".concat(a(t.id,u),"-list")},s)},getItemProps:function(c){var i=c.item,u=c.source,s=c.sourceIndex,l=te(c,No);return R({id:"".concat(a(t.id,s),"-item-").concat(i.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===i.__autocomplete_id,onMouseMove:function(p){if(i.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",i.__autocomplete_id);var m=le(r.getState());if(r.getState().activeItemId!==null&&m){var d=m.item,_=m.itemInputValue,v=m.itemUrl,y=m.source;y.onActive(R({event:p,item:d,itemInputValue:_,itemUrl:v,refresh:n,source:y,state:r.getState()},o))}}},onMouseDown:function(p){p.preventDefault()},onClick:function(p){var m=u.getItemInputValue({item:i,state:r.getState()}),d=u.getItemUrl({item:i,state:r.getState()});(d?Promise.resolve():ue(R({event:p,nextState:{isOpen:!1},props:t,query:m,refresh:n,store:r},o))).then(function(){u.onSelect(R({event:p,item:i,itemInputValue:m,itemUrl:d,refresh:n,source:u,state:r.getState()},o))})}},l)}}}function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(l[u]=c[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oa(e){var t=e.translations,n=t===void 0?{}:t,r=ra(e,ta),o=n.noResultsText,a=o===void 0?"No results for":o,c=n.suggestedQueryText,i=c===void 0?"Try searching for":c,u=n.reportMissingResultsText,s=u===void 0?"Believe this query should return results?":u,l=n.reportMissingResultsLinkText,p=l===void 0?"Let us know.":l,m=r.state.context.searchSuggestions;return f.createElement("div",{className:"DocSearch-NoResults"},f.createElement("div",{className:"DocSearch-Screen-Icon"},f.createElement(Xo,null)),f.createElement("p",{className:"DocSearch-Title"},a,' "',f.createElement("strong",null,r.state.query),'"'),m&&m.length>0&&f.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},f.createElement("p",{className:"DocSearch-Help"},i,":"),f.createElement("ul",null,m.slice(0,3).reduce(function(d,_){return[].concat(na(d),[f.createElement("li",{key:_},f.createElement("button",{className:"DocSearch-Prefill",key:_,type:"button",onClick:function(){r.setQuery(_.toLowerCase()+" "),r.refresh(),r.inputRef.current.focus()}},_))])},[]))),r.getMissingResultsUrl&&f.createElement("p",{className:"DocSearch-Help"},"".concat(s," "),f.createElement("a",{href:r.getMissingResultsUrl({query:r.state.query}),target:"_blank",rel:"noopener noreferrer"},p)))}var aa=["hit","attribute","tagName"];function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function En(e){for(var t=1;t=0||(l[u]=c[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wn(e,t){return t.split(".").reduce(function(n,r){return n!=null&&n[r]?n[r]:null},e)}function ie(e){var t=e.hit,n=e.attribute,r=e.tagName;return V(r===void 0?"span":r,En(En({},ia(e,aa)),{},{dangerouslySetInnerHTML:{__html:wn(t,"_snippetResult.".concat(n,".value"))||wn(t,n)}}))}function jn(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var a,c,i=[],u=!0,s=!1;try{for(o=o.call(n);!(u=(a=o.next()).done)&&(i.push(a.value),!r||i.length!==r);u=!0);}catch(l){s=!0,c=l}finally{try{u||o.return==null||o.return()}finally{if(s)throw c}}return i}}(e,t)||function(n,r){if(n){if(typeof n=="string")return Pn(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Pn(n,r)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Pn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n|<\/mark>)/g,sa=RegExp(pr.source);function mr(e){var t,n,r,o,a,c=e;if(!c.__docsearch_parent&&!e._highlightResult)return e.hierarchy.lvl0;var i=((c.__docsearch_parent?(t=c.__docsearch_parent)===null||t===void 0||(n=t._highlightResult)===null||n===void 0||(r=n.hierarchy)===null||r===void 0?void 0:r.lvl0:(o=e._highlightResult)===null||o===void 0||(a=o.hierarchy)===null||a===void 0?void 0:a.lvl0)||{}).value;return i&&sa.test(i)?i.replace(pr,""):i}function wt(){return wt=Object.assign||function(e){for(var t=1;t=0||(l[u]=c[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function da(e){var t=e.translations,n=t===void 0?{}:t,r=ma(e,pa),o=n.recentSearchesTitle,a=o===void 0?"Recent":o,c=n.noRecentSearchesText,i=c===void 0?"No recent searches":c,u=n.saveRecentSearchButtonTitle,s=u===void 0?"Save this search":u,l=n.removeRecentSearchButtonTitle,p=l===void 0?"Remove this search from history":l,m=n.favoriteSearchesTitle,d=m===void 0?"Favorite":m,_=n.removeFavoriteSearchButtonTitle,v=_===void 0?"Remove this search from favorites":_;return r.state.status==="idle"&&r.hasCollections===!1?r.disableUserPersonalization?null:f.createElement("div",{className:"DocSearch-StartScreen"},f.createElement("p",{className:"DocSearch-Help"},i)):r.hasCollections===!1?null:f.createElement("div",{className:"DocSearch-Dropdown-Container"},f.createElement(Et,Ye({},r,{title:a,collection:r.state.collections[0],renderIcon:function(){return f.createElement("div",{className:"DocSearch-Hit-icon"},f.createElement(zo,null))},renderAction:function(y){var S=y.item,g=y.runFavoriteTransition,O=y.runDeleteTransition;return f.createElement(f.Fragment,null,f.createElement("div",{className:"DocSearch-Hit-action"},f.createElement("button",{className:"DocSearch-Hit-action-button",title:s,type:"submit",onClick:function(b){b.preventDefault(),b.stopPropagation(),g(function(){r.favoriteSearches.add(S),r.recentSearches.remove(S),r.refresh()})}},f.createElement(On,null))),f.createElement("div",{className:"DocSearch-Hit-action"},f.createElement("button",{className:"DocSearch-Hit-action-button",title:p,type:"submit",onClick:function(b){b.preventDefault(),b.stopPropagation(),O(function(){r.recentSearches.remove(S),r.refresh()})}},f.createElement(St,null))))}})),f.createElement(Et,Ye({},r,{title:d,collection:r.state.collections[1],renderIcon:function(){return f.createElement("div",{className:"DocSearch-Hit-icon"},f.createElement(On,null))},renderAction:function(y){var S=y.item,g=y.runDeleteTransition;return f.createElement("div",{className:"DocSearch-Hit-action"},f.createElement("button",{className:"DocSearch-Hit-action-button",title:v,type:"submit",onClick:function(O){O.preventDefault(),O.stopPropagation(),g(function(){r.favoriteSearches.remove(S),r.refresh()})}},f.createElement(St,null)))}})))}var ha=["translations"];function Ge(){return Ge=Object.assign||function(e){for(var t=1;t=0||(l[u]=c[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ya=f.memo(function(e){var t=e.translations,n=t===void 0?{}:t,r=va(e,ha);if(r.state.status==="error")return f.createElement(ea,{translations:n==null?void 0:n.errorScreen});var o=r.state.collections.some(function(a){return a.items.length>0});return r.state.query?o===!1?f.createElement(oa,Ge({},r,{translations:n==null?void 0:n.noResultsScreen})):f.createElement(fa,r):f.createElement(da,Ge({},r,{hasCollections:o,translations:n==null?void 0:n.startScreen}))},function(e,t){return t.state.status==="loading"||t.state.status==="stalled"}),_a=["translations"];function Xe(){return Xe=Object.assign||function(e){for(var t=1;t=0||(l[u]=c[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ba(e){var t=e.translations,n=t===void 0?{}:t,r=ga(e,_a),o=n.resetButtonTitle,a=o===void 0?"Clear the query":o,c=n.resetButtonAriaLabel,i=c===void 0?"Clear the query":c,u=n.cancelButtonText,s=u===void 0?"Cancel":u,l=n.cancelButtonAriaLabel,p=l===void 0?"Cancel":l,m=r.getFormProps({inputElement:r.inputRef.current}).onReset;return f.useEffect(function(){r.autoFocus&&r.inputRef.current&&r.inputRef.current.focus()},[r.autoFocus,r.inputRef]),f.useEffect(function(){r.isFromSelection&&r.inputRef.current&&r.inputRef.current.select()},[r.isFromSelection,r.inputRef]),f.createElement(f.Fragment,null,f.createElement("form",{className:"DocSearch-Form",onSubmit:function(d){d.preventDefault()},onReset:m},f.createElement("label",Xe({className:"DocSearch-MagnifierLabel"},r.getLabelProps()),f.createElement(ur,null)),f.createElement("div",{className:"DocSearch-LoadingIndicator"},f.createElement(Ko,null)),f.createElement("input",Xe({className:"DocSearch-Input",ref:r.inputRef},r.getInputProps({inputElement:r.inputRef.current,autoFocus:r.autoFocus,maxLength:64}))),f.createElement("button",{type:"reset",title:a,className:"DocSearch-Reset","aria-label":i,hidden:!r.state.query},f.createElement(St,null))),f.createElement("button",{className:"DocSearch-Cancel",type:"reset","aria-label":p,onClick:r.onClose},s))}var Oa=["_highlightResult","_snippetResult"];function Sa(e,t){if(e==null)return{};var n,r,o=function(c,i){if(c==null)return{};var u,s,l={},p=Object.keys(c);for(s=0;s=0||(l[u]=c[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ea(e){return function(){var t="__TEST_KEY__";try{return localStorage.setItem(t,""),localStorage.removeItem(t),!0}catch{return!1}}()===!1?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(t){return window.localStorage.setItem(e,JSON.stringify(t))},getItem:function(){var t=window.localStorage.getItem(e);return t?JSON.parse(t):[]}}}function Dn(e){var t=e.key,n=e.limit,r=n===void 0?5:n,o=Ea(t),a=o.getItem().slice(0,r);return{add:function(c){var i=c,u=(i._highlightResult,i._snippetResult,Sa(i,Oa)),s=a.findIndex(function(l){return l.objectID===u.objectID});s>-1&&a.splice(s,1),a.unshift(u),a=a.slice(0,r),o.setItem(a)},remove:function(c){a=a.filter(function(i){return i.objectID!==c.objectID}),o.setItem(a)},getAll:function(){return a}}}var wa=["facetName","facetQuery"];function ja(e){var t,n="algoliasearch-client-js-".concat(e.key),r=function(){return t===void 0&&(t=e.localStorage||window.localStorage),t},o=function(){return JSON.parse(r().getItem(n)||"{}")};return{get:function(a,c){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){var u=JSON.stringify(a),s=o()[u];return Promise.all([s||c(),s!==void 0])}).then(function(u){var s=ze(u,2),l=s[0],p=s[1];return Promise.all([l,p||i.miss(l)])}).then(function(u){return ze(u,1)[0]})},set:function(a,c){return Promise.resolve().then(function(){var i=o();return i[JSON.stringify(a)]=c,r().setItem(n,JSON.stringify(i)),c})},delete:function(a){return Promise.resolve().then(function(){var c=o();delete c[JSON.stringify(a)],r().setItem(n,JSON.stringify(c))})},clear:function(){return Promise.resolve().then(function(){r().removeItem(n)})}}}function Oe(e){var t=Je(e.caches),n=t.shift();return n===void 0?{get:function(r,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return o().then(function(c){return Promise.all([c,a.miss(c)])}).then(function(c){return ze(c,1)[0]})},set:function(r,o){return Promise.resolve(o)},delete:function(r){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(r,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(r,o,a).catch(function(){return Oe({caches:t}).get(r,o,a)})},set:function(r,o){return n.set(r,o).catch(function(){return Oe({caches:t}).set(r,o)})},delete:function(r){return n.delete(r).catch(function(){return Oe({caches:t}).delete(r)})},clear:function(){return n.clear().catch(function(){return Oe({caches:t}).clear()})}}}function st(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(n);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var c=r(),i=o&&o.miss||function(){return Promise.resolve()};return c.then(function(u){return i(u)}).then(function(){return c})},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(n){return delete t[JSON.stringify(n)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function Pa(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function dr(e,t){return t&&Object.keys(t).forEach(function(n){e[n]=t[n](e)}),e}function et(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var se={Read:1,Write:2,Any:3},hr=1,Ia=2,vr=3;function yr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hr;return I(I({},e),{},{status:t,lastUpdate:Date.now()})}function _r(e){return typeof e=="string"?{protocol:"https",url:e,accept:se.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||se.Any}}var xn="GET",tt="POST";function ka(e,t){return Promise.all(t.map(function(n){return e.get(n,function(){return Promise.resolve(yr(n))})})).then(function(n){var r=n.filter(function(c){return function(i){return i.status===hr||Date.now()-i.lastUpdate>12e4}(c)}),o=n.filter(function(c){return function(i){return i.status===vr&&Date.now()-i.lastUpdate<=12e4}(c)}),a=[].concat(Je(r),Je(o));return{getTimeout:function(c,i){return(o.length===0&&c===0?1:o.length+3+c)*i},statelessHosts:a.length>0?a.map(function(c){return _r(c)}):t}})}function An(e,t,n,r){var o=[],a=function(m,d){if(!(m.method===xn||m.data===void 0&&d.data===void 0)){var _=Array.isArray(m.data)?m.data:I(I({},m.data),d.data);return JSON.stringify(_)}}(n,r),c=function(m,d){var _=I(I({},m.headers),d.headers),v={};return Object.keys(_).forEach(function(y){var S=_[y];v[y.toLowerCase()]=S}),v}(e,r),i=n.method,u=n.method!==xn?{}:I(I({},n.data),r.data),s=I(I(I({"x-algolia-agent":e.userAgent.value},e.queryParameters),u),r.queryParameters),l=0,p=function m(d,_){var v=d.pop();if(v===void 0)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:Nn(o)};var y={data:a,headers:c,method:i,url:Ca(v,n.path,s),connectTimeout:_(l,e.timeouts.connect),responseTimeout:_(l,r.timeout)},S=function(O){var b={request:y,response:O,host:v,triesLeft:d.length};return o.push(b),b},g={onSucess:function(O){return function(b){try{return JSON.parse(b.content)}catch(h){throw function(P,A){return{name:"DeserializationError",message:P,response:A}}(h.message,b)}}(O)},onRetry:function(O){var b=S(O);return O.isTimedOut&&l++,Promise.all([e.logger.info("Retryable failure",br(b)),e.hostsCache.set(v,yr(v,O.isTimedOut?vr:Ia))]).then(function(){return m(d,_)})},onFail:function(O){throw S(O),function(b,h){var P=b.content,A=b.status,T=P;try{T=JSON.parse(P).message}catch{}return function(x,D,N){return{name:"ApiError",message:x,status:D,transporterStackTrace:N}}(T,A,h)}(O,Nn(o))}};return e.requester.send(y).then(function(O){return function(b,h){return function(P){var A=P.status;return P.isTimedOut||function(T){var x=T.isTimedOut,D=T.status;return!x&&~~D==0}(P)||~~(A/100)!=2&&~~(A/100)!=4}(b)?h.onRetry(b):~~(b.status/100)==2?h.onSucess(b):h.onFail(b)}(O,g)})};return ka(e.hostsCache,t).then(function(m){return p(Je(m.statelessHosts).reverse(),m.getTimeout)})}function Da(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(n){var r="; ".concat(n.segment).concat(n.version!==void 0?" (".concat(n.version,")"):"");return t.value.indexOf(r)===-1&&(t.value="".concat(t.value).concat(r)),t}};return t}function Ca(e,t,n){var r=gr(n),o="".concat(e.protocol,"://").concat(e.url,"/").concat(t.charAt(0)==="/"?t.substr(1):t);return r.length&&(o+="?".concat(r)),o}function gr(e){return Object.keys(e).map(function(t){return et("%s=%s",t,(n=e[t],Object.prototype.toString.call(n)==="[object Object]"||Object.prototype.toString.call(n)==="[object Array]"?JSON.stringify(e[t]):e[t]));var n}).join("&")}function Nn(e){return e.map(function(t){return br(t)})}function br(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return I(I({},e),{},{request:I(I({},e.request),{},{headers:I(I({},e.request.headers),t)})})}var xa=function(e){var t=e.appId,n=function(a,c,i){var u={"x-algolia-api-key":i,"x-algolia-application-id":c};return{headers:function(){return a===Ke.WithinHeaders?u:{}},queryParameters:function(){return a===Ke.WithinQueryParameters?u:{}}}}(e.authMode!==void 0?e.authMode:Ke.WithinHeaders,t,e.apiKey),r=function(a){var c=a.hostsCache,i=a.logger,u=a.requester,s=a.requestsCache,l=a.responsesCache,p=a.timeouts,m=a.userAgent,d=a.hosts,_=a.queryParameters,v={hostsCache:c,logger:i,requester:u,requestsCache:s,responsesCache:l,timeouts:p,userAgent:m,headers:a.headers,queryParameters:_,hosts:d.map(function(y){return _r(y)}),read:function(y,S){var g=Cn(S,v.timeouts.read),O=function(){return An(v,v.hosts.filter(function(h){return(h.accept&se.Read)!=0}),y,g)};if((g.cacheable!==void 0?g.cacheable:y.cacheable)!==!0)return O();var b={request:y,mappedRequestOptions:g,transporter:{queryParameters:v.queryParameters,headers:v.headers}};return v.responsesCache.get(b,function(){return v.requestsCache.get(b,function(){return v.requestsCache.set(b,O()).then(function(h){return Promise.all([v.requestsCache.delete(b),h])},function(h){return Promise.all([v.requestsCache.delete(b),Promise.reject(h)])}).then(function(h){var P=ze(h,2);return P[0],P[1]})})},{miss:function(h){return v.responsesCache.set(b,h)}})},write:function(y,S){return An(v,v.hosts.filter(function(g){return(g.accept&se.Write)!=0}),y,Cn(S,v.timeouts.write))}};return v}(I(I({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:se.Read},{url:"".concat(t,".algolia.net"),accept:se.Write}].concat(Pa([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:I(I(I({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:I(I({},n.queryParameters()),e.queryParameters)})),o={transporter:r,appId:t,addAlgoliaAgent:function(a,c){r.userAgent.add({segment:a,version:c})},clearCache:function(){return Promise.all([r.requestsCache.clear(),r.responsesCache.clear()]).then(function(){})}};return dr(o,e.methods)},Or=function(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r={transporter:e.transporter,appId:e.appId,indexName:t};return dr(r,n.methods)}},Rn=function(e){return function(t,n){var r=t.map(function(o){return I(I({},o),{},{params:gr(o.params||{})})});return e.transporter.read({method:tt,path:"1/indexes/*/queries",data:{requests:r},cacheable:!0},n)}},Tn=function(e){return function(t,n){return Promise.all(t.map(function(r){var o=r.params,a=o.facetName,c=o.facetQuery,i=qr(o,wa);return Or(e)(r.indexName,{methods:{searchForFacetValues:Sr}}).searchForFacetValues(a,c,I(I({},n),i))}))}},Aa=function(e){return function(t,n,r){return e.transporter.read({method:tt,path:et("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},Na=function(e){return function(t,n){return e.transporter.read({method:tt,path:et("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},Sr=function(e){return function(t,n,r){return e.transporter.read({method:tt,path:et("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},Ra=1,Ta=2,La=3;function Er(e,t,n){var r,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(a){return new Promise(function(c){var i=new XMLHttpRequest;i.open(a.method,a.url,!0),Object.keys(a.headers).forEach(function(p){return i.setRequestHeader(p,a.headers[p])});var u,s=function(p,m){return setTimeout(function(){i.abort(),c({status:0,content:m,isTimedOut:!0})},1e3*p)},l=s(a.connectTimeout,"Connection timeout");i.onreadystatechange=function(){i.readyState>i.OPENED&&u===void 0&&(clearTimeout(l),u=s(a.responseTimeout,"Socket timeout"))},i.onerror=function(){i.status===0&&(clearTimeout(l),clearTimeout(u),c({content:i.responseText||"Network request failed",status:i.status,isTimedOut:!1}))},i.onload=function(){clearTimeout(l),clearTimeout(u),c({content:i.responseText,status:i.status,isTimedOut:!1})},i.send(a.data)})}},logger:(r=La,{debug:function(a,c){return Ra>=r&&console.debug(a,c),Promise.resolve()},info:function(a,c){return Ta>=r&&console.info(a,c),Promise.resolve()},error:function(a,c){return console.error(a,c),Promise.resolve()}}),responsesCache:st(),requestsCache:st({serializable:!1}),hostsCache:Oe({caches:[ja({key:"".concat("4.8.5","-").concat(e)}),st()]}),userAgent:Da("4.8.5").add({segment:"Browser",version:"lite"}),authMode:Ke.WithinQueryParameters};return xa(I(I(I({},o),n),{},{methods:{search:Rn,searchForFacetValues:Tn,multipleQueries:Rn,multipleSearchForFacetValues:Tn,initIndex:function(a){return function(c){return Or(a)(c,{methods:{search:Na,searchForFacetValues:Sr,findAnswers:Aa}})}}}}))}Er.version="4.8.5";var qa=["footer","searchBox"];function we(){return we=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(l[u]=c[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Fa(e){var t=e.appId,n=e.apiKey,r=e.indexName,o=e.placeholder,a=o===void 0?"Search docs":o,c=e.searchParameters,i=e.onClose,u=i===void 0?la:i,s=e.transformItems,l=s===void 0?kn:s,p=e.hitComponent,m=p===void 0?Wo:p,d=e.resultsFooterComponent,_=d===void 0?function(){return null}:d,v=e.navigator,y=e.initialScrollY,S=y===void 0?0:y,g=e.transformSearchClient,O=g===void 0?kn:g,b=e.disableUserPersonalization,h=b!==void 0&&b,P=e.initialQuery,A=P===void 0?"":P,T=e.translations,x=T===void 0?{}:T,D=e.getMissingResultsUrl,N=x.footer,F=x.searchBox,B=Ua(x,qa),L=Ha(f.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),2),G=L[0],nt=L[1],Ce=f.useRef(null),re=f.useRef(null),Dt=f.useRef(null),xe=f.useRef(null),me=f.useRef(null),$=f.useRef(10),Ct=f.useRef(typeof window<"u"?window.getSelection().toString().slice(0,64):"").current,X=f.useRef(A||Ct).current,xt=function(j,k,M){return f.useMemo(function(){var H=Er(j,k);return H.addAlgoliaAgent("docsearch","3.3.4"),/docsearch.js \(.*\)/.test(H.transporter.userAgent.value)===!1&&H.addAlgoliaAgent("docsearch-react","3.3.4"),M(H)},[j,k,M])}(t,n,O),oe=f.useRef(Dn({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(r),limit:10})).current,de=f.useRef(Dn({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(r),limit:oe.getAll().length===0?7:4})).current,he=f.useCallback(function(j){if(!h){var k=j.type==="content"?j.__docsearch_parent:j;k&&oe.getAll().findIndex(function(M){return M.objectID===k.objectID})===-1&&de.add(k)}},[oe,de,h]),ve=f.useMemo(function(){return Fo({id:"docsearch",defaultActiveItemId:0,placeholder:a,openOnFocus:!0,initialState:{query:X,context:{searchSuggestions:[]}},navigator:v,onStateChange:function(j){nt(j.state)},getSources:function(j){var k=j.query,M=j.state,H=j.setContext,Q=j.setStatus;return k?xt.search([{query:k,indexName:r,params:ft({attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:["hierarchy.lvl1:".concat($.current),"hierarchy.lvl2:".concat($.current),"hierarchy.lvl3:".concat($.current),"hierarchy.lvl4:".concat($.current),"hierarchy.lvl5:".concat($.current),"hierarchy.lvl6:".concat($.current),"content:".concat($.current)],snippetEllipsisText:"…",highlightPreTag:"",highlightPostTag:"",hitsPerPage:20},c)}]).catch(function(C){throw C.name==="RetryError"&&Q("error"),C}).then(function(C){var U=C.results[0],Z=U.hits,Pr=U.nbHits,rt=In(Z,function(ot){return mr(ot)});return M.context.searchSuggestions.length0&&(At(),me.current&&me.current.focus())},[X,At]),f.useEffect(function(){function j(){if(re.current){var k=.01*window.innerHeight;re.current.style.setProperty("--docsearch-vh","".concat(k,"px"))}}return j(),window.addEventListener("resize",j),function(){window.removeEventListener("resize",j)}},[]),f.createElement("div",we({ref:Ce},jr({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container",G.status==="stalled"&&"DocSearch-Container--Stalled",G.status==="error"&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(j){j.target===j.currentTarget&&u()}}),f.createElement("div",{className:"DocSearch-Modal",ref:re},f.createElement("header",{className:"DocSearch-SearchBar",ref:Dt},f.createElement(ba,we({},ve,{state:G,autoFocus:X.length===0,inputRef:me,isFromSelection:!!X&&X===Ct,translations:F,onClose:u}))),f.createElement("div",{className:"DocSearch-Dropdown",ref:xe},f.createElement(ya,we({},ve,{indexName:r,state:G,hitComponent:m,resultsFooterComponent:_,disableUserPersonalization:h,recentSearches:de,favoriteSearches:oe,inputRef:me,translations:B,getMissingResultsUrl:D,onItemClick:function(j,k){he(j),Fe(k)||u()}}))),f.createElement("footer",{className:"DocSearch-Footer"},f.createElement(Vo,{translations:N}))))}function jt(){return jt=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:window;return typeof t=="string"?n.document.querySelector(t):t}(e.container,e.environment))}const Wa={id:"docsearch"},Ja=kr({__name:"VPAlgoliaSearchBox",props:{algolia:null},setup(e){const t=e,n=Dr(),r=Cr(),{site:o,localeIndex:a,lang:c}=Tr();xr(i),Ar(a,i);function i(){var d,_;const l={...t.algolia,...(d=t.algolia.locales)==null?void 0:d[a.value]},p=((_=l.searchParameters)==null?void 0:_.facetFilters)??[],m=[...(Array.isArray(p)?p:[p]).filter(v=>!v.startsWith("lang:")),`lang:${c.value}`];u({...l,searchParameters:{...l.searchParameters,facetFilters:m}})}function u(l){const p=Object.assign({},l,{container:"#docsearch",navigator:{navigate({itemUrl:m}){const{pathname:d}=new URL(window.location.origin+m);r.path===d?window.location.assign(window.location.origin+m):n.go(m)}},transformItems(m){return m.map(d=>Object.assign({},d,{url:s(d.url)}))},hitComponent({hit:m,children:d}){return{__v:null,type:"a",ref:void 0,constructor:void 0,key:void 0,props:{href:m.url,children:d}}}});Va(p)}function s(l){const{pathname:p,hash:m}=new URL(l);return p.replace(/\.html$/,o.value.cleanUrls?"":".html")+m}return(l,p)=>(Nr(),Rr("div",Wa))}});export{Ja as default}; diff --git a/docs/assets/chunks/VPAlgoliaSearchBox.393da1ac.js b/docs/assets/chunks/VPAlgoliaSearchBox.393da1ac.js deleted file mode 100644 index cf63347..0000000 --- a/docs/assets/chunks/VPAlgoliaSearchBox.393da1ac.js +++ /dev/null @@ -1,14 +0,0 @@ -import{d as jr,ah as Pr,s as Ir,h as kr,w as Dr,o as Cr,c as Ar}from"./framework.7addaa9c.js";import{u as xr}from"./theme.fdc5fc3e.js";/*! @docsearch/js 3.3.3 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t=0||(c[l]=i[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ve(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var a,i,u=[],l=!0,s=!1;try{for(o=o.call(n);!(l=(a=o.next()).done)&&(u.push(a.value),!r||u.length!==r);l=!0);}catch(c){s=!0,i=c}finally{try{l||o.return==null||o.return()}finally{if(s)throw i}}return u}}(e,t)||qn(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function We(e){return function(t){if(Array.isArray(t))return ft(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||qn(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function qn(e,t){if(e){if(typeof e=="string")return ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ft(e,t):void 0}}function ft(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3)for(n=[n],a=3;a0?Se(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=v[c])===null||m&&p.key==m.key&&p.type===m.type)v[c]=void 0;else for(d=0;d3)for(n=[n],a=3;a=n.__.length&&n.__.push({}),n.__[e]}function Qn(e){return ue=1,Zn(Gn,e)}function Zn(e,t,n){var r=ke(le++,2);return r.t=e,r.__c||(r.__=[n?n(t):Gn(void 0,t),function(o){var a=r.t(r.__[0],o);r.__[0]!==a&&(r.__=[a,r.__[1]],r.__c.setState({}))}],r.__c=T),r.__}function Yn(e,t){var n=ke(le++,3);!w.__s&&jt(n.__H,t)&&(n.__=e,n.__H=t,T.__H.__h.push(n))}function Ft(e,t){var n=ke(le++,4);!w.__s&&jt(n.__H,t)&&(n.__=e,n.__H=t,T.__h.push(n))}function rt(e,t){var n=ke(le++,7);return jt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Hr(){mt.forEach(function(e){if(e.__P)try{e.__H.__h.forEach(He),e.__H.__h.forEach(dt),e.__H.__h=[]}catch(t){e.__H.__h=[],w.__e(t,e.__v)}}),mt=[]}w.__b=function(e){T=null,Lt&&Lt(e)},w.__r=function(e){qt&&qt(e),le=0;var t=(T=e.__c).__H;t&&(t.__h.forEach(He),t.__h.forEach(dt),t.__h=[])},w.diffed=function(e){Mt&&Mt(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(mt.push(t)!==1&&Tt===w.requestAnimationFrame||((Tt=w.requestAnimationFrame)||function(n){var r,o=function(){clearTimeout(a),Bt&&cancelAnimationFrame(r),setTimeout(n)},a=setTimeout(o,100);Bt&&(r=requestAnimationFrame(o))})(Hr)),T=void 0},w.__c=function(e,t){t.some(function(n){try{n.__h.forEach(He),n.__h=n.__h.filter(function(r){return!r.__||dt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],w.__e(r,n.__v)}}),Ht&&Ht(e,t)},w.unmount=function(e){Ut&&Ut(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(He)}catch(n){w.__e(n,t.__v)}};var Bt=typeof requestAnimationFrame=="function";function He(e){var t=T;typeof e.__c=="function"&&e.__c(),T=t}function dt(e){var t=T;e.__c=e.__(),T=t}function jt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Gn(e,t){return typeof t=="function"?t(e):t}function Xn(e,t){for(var n in t)e[n]=t[n];return e}function ht(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function vt(e){this.props=e}(vt.prototype=new W).isPureReactComponent=!0,vt.prototype.shouldComponentUpdate=function(e,t){return ht(this.props,e)||ht(this.state,t)};var Vt=w.__b;w.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Vt&&Vt(e)};var Ur=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Wt=function(e,t){return e==null?null:J(J(e).map(t))},Fr={map:Wt,forEach:Wt,count:function(e){return e?J(e).length:0},only:function(e){var t=J(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:J},Br=w.__e;function Ue(){this.__u=0,this.t=null,this.__b=null}function er(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ge(){this.u=null,this.o=null}w.__e=function(e,t,n){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}Br(e,t,n)},(Ue.prototype=new W).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=er(r.__v),a=!1,i=function(){a||(a=!0,n.componentWillUnmount=n.__c,o?o(u):u())};n.__c=n.componentWillUnmount,n.componentWillUnmount=function(){i(),n.__c&&n.__c()};var u=function(){if(!--r.__u){if(r.state.__e){var s=r.state.__e;r.__v.__k[0]=function d(m,p,_){return m&&(m.__v=null,m.__k=m.__k&&m.__k.map(function(h){return d(h,p,_)}),m.__c&&m.__c.__P===p&&(m.__e&&_.insertBefore(m.__e,m.__d),m.__c.__e=!0,m.__c.__P=_)),m}(s,s.__c.__P,s.__c.__O)}var c;for(r.setState({__e:r.__b=null});c=r.t.pop();)c.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(i,i)},Ue.prototype.componentWillUnmount=function(){this.t=[]},Ue.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function a(i,u,l){return i&&(i.__c&&i.__c.__H&&(i.__c.__H.__.forEach(function(s){typeof s.__c=="function"&&s.__c()}),i.__c.__H=null),(i=Xn({},i)).__c!=null&&(i.__c.__P===l&&(i.__c.__P=u),i.__c=null),i.__k=i.__k&&i.__k.map(function(s){return a(s,u,l)})),i}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&V(Z,null,e.fallback);return o&&(o.__h=null),[V(Z,null,t.__e?null:e.children),o]};var Kt=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(r)}}),Pe(V(Vr,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function tr(e,t){return V(Wr,{__v:e,i:t})}(ge.prototype=new W).__e=function(e){var t=this,n=er(t.__v),r=t.o.get(e);return r[0]++,function(o){var a=function(){t.props.revealOrder?(r.push(o),Kt(t,e,r)):o()};n?n(a):a()}},ge.prototype.render=function(e){this.u=null,this.o=new Map;var t=J(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ge.prototype.componentDidUpdate=ge.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Kt(e,n,t)})};var nr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Kr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,zr=function(e){return(typeof Symbol<"u"&&Ee(Symbol())=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};function rr(e,t,n){return t.__k==null&&(t.textContent=""),Pe(e,t),typeof n=="function"&&n(),e?e.__c:null}W.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(W.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var zt=w.event;function Jr(){}function $r(){return this.cancelBubble}function Qr(){return this.defaultPrevented}w.event=function(e){return zt&&(e=zt(e)),e.persist=Jr,e.isPropagationStopped=$r,e.isDefaultPrevented=Qr,e.nativeEvent=e};var or,Jt={configurable:!0,get:function(){return this.class}},$t=w.vnode;w.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){for(var o in r={},n){var a=n[o];o==="value"&&"defaultValue"in n&&a==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!zr(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Kr.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():a===null&&(a=void 0),r[o]=a)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=J(n.children).forEach(function(i){i.props.selected=r.value.indexOf(i.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=J(n.children).forEach(function(i){i.props.selected=r.multiple?r.defaultValue.indexOf(i.props.value)!=-1:r.defaultValue==i.props.value})),e.props=r}t&&n.class!=n.className&&(Jt.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Jt)),e.$$typeof=nr,$t&&$t(e)};var Qt=w.__r;w.__r=function(e){Qt&&Qt(e),or=e.__c};var Zr={ReactCurrentDispatcher:{current:{readContext:function(e){return or.__n[e.__c].props.value}}}};(typeof performance>"u"?"undefined":Ee(performance))=="object"&&typeof performance.now=="function"&&performance.now.bind(performance);function Zt(e){return!!e&&e.$$typeof===nr}var f={useState:Qn,useReducer:Zn,useEffect:Yn,useLayoutEffect:Ft,useRef:function(e){return ue=5,rt(function(){return{current:e}},[])},useImperativeHandle:function(e,t,n){ue=6,Ft(function(){typeof e=="function"?e(t()):e&&(e.current=t())},n==null?n:n.concat(e))},useMemo:rt,useCallback:function(e,t){return ue=8,rt(function(){return e},t)},useContext:function(e){var t=T.context[e.__c],n=ke(le++,9);return n.__c=e,t?(n.__==null&&(n.__=!0,t.sub(T)),t.props.value):e.__},useDebugValue:function(e,t){w.useDebugValue&&w.useDebugValue(t?t(e):e)},version:"16.8.0",Children:Fr,render:rr,hydrate:function(e,t,n){return $n(e,t),typeof n=="function"&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Pe(null,e),!0)},createPortal:tr,createElement:V,createContext:function(e,t){var n={__c:t="__cC"+Hn++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,a;return this.getChildContext||(o=[],(a={})[t]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(pt)},this.sub=function(i){o.push(i);var u=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),u&&u.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return V.bind(null,e)},cloneElement:function(e){return Zt(e)?Mr.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:Z,isValidElement:Zt,findDOMNode:function(e){return e&&(e.base||e.nodeType===1&&e)||null},Component:W,PureComponent:vt,memo:function(e,t){function n(o){var a=this.props.ref,i=a==o.ref;return!i&&a&&(a.call?a(null):a.current=null),t?!t(this.props,o)||!i:ht(this.props,o)}function r(o){return this.shouldComponentUpdate=n,V(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(n,r){var o=Xn({},n);return delete o.ref,e(o,(r=n.ref||r)&&(Ee(r)!="object"||"current"in r)?r:null)}return t.$$typeof=Ur,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:Z,Suspense:Ue,SuspenseList:ge,lazy:function(e){var t,n,r;function o(a){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return V(n,a)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Zr};function Yr(){return f.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},f.createElement("path",{d:"M4.505 4.496h2M5.505 5.496v5M8.216 4.496l.055 5.993M10 7.5c.333.333.5.667.5 1v2M12.326 4.5v5.996M8.384 4.496c1.674 0 2.116 0 2.116 1.5s-.442 1.5-2.116 1.5M3.205 9.303c-.09.448-.277 1.21-1.241 1.203C1 10.5.5 9.513.5 8V7c0-1.57.5-2.5 1.464-2.494.964.006 1.134.598 1.24 1.342M12.553 10.5h1.953",strokeWidth:"1.2",stroke:"currentColor",fill:"none",strokeLinecap:"square"}))}function ar(){return f.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20"},f.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}var Gr=["translations"];function yt(){return yt=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(c[l]=i[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var to=f.forwardRef(function(e,t){var n=e.translations,r=n===void 0?{}:n,o=eo(e,Gr),a=r.buttonText,i=a===void 0?"Search":a,u=r.buttonAriaLabel,l=u===void 0?"Search":u,s=Xr(Qn(null),2),c=s[0],d=s[1];return Yn(function(){typeof navigator<"u"&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?d("⌘"):d("Ctrl"))},[]),f.createElement("button",yt({type:"button",className:"DocSearch DocSearch-Button","aria-label":l},o,{ref:t}),f.createElement("span",{className:"DocSearch-Button-Container"},f.createElement(ar,null),f.createElement("span",{className:"DocSearch-Button-Placeholder"},i)),f.createElement("span",{className:"DocSearch-Button-Keys"},c!==null&&f.createElement(f.Fragment,null,f.createElement("kbd",{className:"DocSearch-Button-Key"},c==="Ctrl"?f.createElement(Yr,null):c),f.createElement("kbd",{className:"DocSearch-Button-Key"},"K"))))});function Ie(e){return e.reduce(function(t,n){return t.concat(n)},[])}var no=0;function _t(e){return e.collections.length===0?0:e.collections.reduce(function(t,n){return t+n.items.length},0)}var ir=function(){},ro=[{segment:"autocomplete-core",version:"1.7.4"}];function Fe(e,t){var n=t;return{then:function(r,o){return Fe(e.then(xe(r,n,e),xe(o,n,e)),n)},catch:function(r){return Fe(e.catch(xe(r,n,e)),n)},finally:function(r){return r&&n.onCancelList.push(r),Fe(e.finally(xe(r&&function(){return n.onCancelList=[],r()},n,e)),n)},cancel:function(){n.isCanceled=!0;var r=n.onCancelList;n.onCancelList=[],r.forEach(function(o){o()})},isCanceled:function(){return n.isCanceled===!0}}}function Gt(e){return Fe(e,{isCanceled:!1,onCancelList:[]})}function xe(e,t,n){return e?function(r){return t.isCanceled?r:e(r)}:n}function Xt(e,t,n,r){if(!n)return null;if(e<0&&(t===null||r!==null&&t===0))return n+e;var o=(t===null?-1:t)+e;return o<=-1||o>=n?r===null?null:0:o}function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ao(e,t){var n=[];return Promise.resolve(e(t)).then(function(r){return Promise.all(r.filter(function(o){return!!o}).map(function(o){if(o.sourceId,n.includes(o.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(o.sourceId)," is not unique."));n.push(o.sourceId);var a=function(i){for(var u=1;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(c[l]=i[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sn,it,qe,ye=null,fn=(sn=-1,it=-1,qe=void 0,function(e){var t=++sn;return Promise.resolve(e).then(function(n){return qe&&t=0||(c[l]=i[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jo=["props","refresh","store"],Po=["inputElement","formElement","panelElement"],Io=["inputElement"],ko=["inputElement","maxLength"],Do=["item","source"];function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t=0||(c[l]=i[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ao(e){var t=e.props,n=e.refresh,r=e.store,o=_e(e,jo);return{getEnvironmentProps:function(a){var i=a.inputElement,u=a.formElement,l=a.panelElement;function s(c){!r.getState().isOpen&&r.pendingRequests.isEmpty()||c.target===i||[u,l].some(function(d){return m=d,p=c.target,m===p||m.contains(p);var m,p})===!1&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return x({onTouchStart:s,onMouseDown:s,onTouchMove:function(c){r.getState().isOpen!==!1&&i===t.environment.document.activeElement&&c.target!==i&&i.blur()}},_e(a,Po))},getRootProps:function(a){return x({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},a)},getFormProps:function(a){return a.inputElement,x({action:"",noValidate:!0,role:"search",onSubmit:function(i){var u;i.preventDefault(),t.onSubmit(x({event:i,refresh:n,state:r.getState()},o)),r.dispatch("submit",null),(u=a.inputElement)===null||u===void 0||u.blur()},onReset:function(i){var u;i.preventDefault(),t.onReset(x({event:i,refresh:n,state:r.getState()},o)),r.dispatch("reset",null),(u=a.inputElement)===null||u===void 0||u.focus()}},_e(a,Io))},getLabelProps:function(a){return x({htmlFor:"".concat(t.id,"-input"),id:"".concat(t.id,"-label")},a)},getInputProps:function(a){var i;function u(h){(t.openOnFocus||r.getState().query)&&ae(x({event:h,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},o)),r.dispatch("focus",null)}var l=a||{},s=(l.inputElement,l.maxLength),c=s===void 0?512:s,d=_e(l,ko),m=ie(r.getState()),p=function(h){return!!(h&&h.match(io))}(((i=t.environment.navigator)===null||i===void 0?void 0:i.userAgent)||""),_=m!=null&&m.itemUrl&&!p?"go":"search";return x({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&r.getState().activeItemId!==null?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:_,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:c,type:"search",onChange:function(h){ae(x({event:h,props:t,query:h.currentTarget.value.slice(0,c),refresh:n,store:r},o))},onKeyDown:function(h){(function(g){var v=g.event,S=g.props,O=g.refresh,y=g.store,b=Eo(g,So);if(v.key==="ArrowUp"||v.key==="ArrowDown"){var I=function(){var q=S.environment.document.getElementById("".concat(S.id,"-item-").concat(y.getState().activeItemId));q&&(q.scrollIntoViewIfNeeded?q.scrollIntoViewIfNeeded(!1):q.scrollIntoView(!1))},N=function(){var q=ie(y.getState());if(y.getState().activeItemId!==null&&q){var De=q.item,Y=q.itemInputValue,Xe=q.itemUrl,se=q.source;se.onActive(X({event:v,item:De,itemInputValue:Y,itemUrl:Xe,refresh:O,source:se,state:y.getState()},b))}};v.preventDefault(),y.getState().isOpen===!1&&(S.openOnFocus||y.getState().query)?ae(X({event:v,props:S,query:y.getState().query,refresh:O,store:y},b)).then(function(){y.dispatch(v.key,{nextActiveItemId:S.defaultActiveItemId}),N(),setTimeout(I,0)}):(y.dispatch(v.key,{}),N(),I())}else if(v.key==="Escape")v.preventDefault(),y.dispatch(v.key,null),y.pendingRequests.cancelAll();else if(v.key==="Tab")y.dispatch("blur",null),y.pendingRequests.cancelAll();else if(v.key==="Enter"){if(y.getState().activeItemId===null||y.getState().collections.every(function(q){return q.items.length===0}))return void(S.debug||y.pendingRequests.cancelAll());v.preventDefault();var A=ie(y.getState()),k=A.item,R=A.itemInputValue,L=A.itemUrl,B=A.source;if(v.metaKey||v.ctrlKey)L!==void 0&&(B.onSelect(X({event:v,item:k,itemInputValue:R,itemUrl:L,refresh:O,source:B,state:y.getState()},b)),S.navigator.navigateNewTab({itemUrl:L,item:k,state:y.getState()}));else if(v.shiftKey)L!==void 0&&(B.onSelect(X({event:v,item:k,itemInputValue:R,itemUrl:L,refresh:O,source:B,state:y.getState()},b)),S.navigator.navigateNewWindow({itemUrl:L,item:k,state:y.getState()}));else if(!v.altKey){if(L!==void 0)return B.onSelect(X({event:v,item:k,itemInputValue:R,itemUrl:L,refresh:O,source:B,state:y.getState()},b)),void S.navigator.navigate({itemUrl:L,item:k,state:y.getState()});ae(X({event:v,nextState:{isOpen:!1},props:S,query:R,refresh:O,store:y},b)).then(function(){B.onSelect(X({event:v,item:k,itemInputValue:R,itemUrl:L,refresh:O,source:B,state:y.getState()},b))})}}})(x({event:h,props:t,refresh:n,store:r},o))},onFocus:u,onBlur:ir,onClick:function(h){a.inputElement!==t.environment.document.activeElement||r.getState().isOpen||u(h)}},d)},getPanelProps:function(a){return x({onMouseDown:function(i){i.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},a)},getListProps:function(a){return x({role:"listbox","aria-labelledby":"".concat(t.id,"-label"),id:"".concat(t.id,"-list")},a)},getItemProps:function(a){var i=a.item,u=a.source,l=_e(a,Do);return x({id:"".concat(t.id,"-item-").concat(i.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===i.__autocomplete_id,onMouseMove:function(s){if(i.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",i.__autocomplete_id);var c=ie(r.getState());if(r.getState().activeItemId!==null&&c){var d=c.item,m=c.itemInputValue,p=c.itemUrl,_=c.source;_.onActive(x({event:s,item:d,itemInputValue:m,itemUrl:p,refresh:n,source:_,state:r.getState()},o))}}},onMouseDown:function(s){s.preventDefault()},onClick:function(s){var c=u.getItemInputValue({item:i,state:r.getState()}),d=u.getItemUrl({item:i,state:r.getState()});(d?Promise.resolve():ae(x({event:s,nextState:{isOpen:!1},props:t,query:c,refresh:n,store:r},o))).then(function(){u.onSelect(x({event:s,item:i,itemInputValue:c,itemUrl:d,refresh:n,source:u,state:r.getState()},o))})}},l)}}}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xo(e){for(var t=1;t0},reshape:function(m){return m.sources}},u),{},{id:(s=u.id)!==null&&s!==void 0?s:"autocomplete-".concat(no++),plugins:d,initialState:re({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},u.initialState),onStateChange:function(m){var p;(p=u.onStateChange)===null||p===void 0||p.call(u,m),d.forEach(function(_){var h;return(h=_.onStateChange)===null||h===void 0?void 0:h.call(_,m)})},onSubmit:function(m){var p;(p=u.onSubmit)===null||p===void 0||p.call(u,m),d.forEach(function(_){var h;return(h=_.onSubmit)===null||h===void 0?void 0:h.call(_,m)})},onReset:function(m){var p;(p=u.onReset)===null||p===void 0||p.call(u,m),d.forEach(function(_){var h;return(h=_.onReset)===null||h===void 0?void 0:h.call(_,m)})},getSources:function(m){return Promise.all([].concat(fo(d.map(function(p){return p.getSources})),[u.getSources]).filter(Boolean).map(function(p){return ao(p,m)})).then(function(p){return Ie(p)}).then(function(p){return p.map(function(_){return re(re({},_),{},{onSelect:function(h){_.onSelect(h),l.forEach(function(g){var v;return(v=g.onSelect)===null||v===void 0?void 0:v.call(g,h)})},onActive:function(h){_.onActive(h),l.forEach(function(g){var v;return(v=g.onActive)===null||v===void 0?void 0:v.call(g,h)})}})})})},navigator:re({navigate:function(m){var p=m.itemUrl;c.location.assign(p)},navigateNewTab:function(m){var p=m.itemUrl,_=c.open(p,"_blank","noopener");_==null||_.focus()},navigateNewWindow:function(m){var p=m.itemUrl;c.open(p,"_blank","noopener")}},u.navigator)})}(e,t),r=lo(To,n,function(u){var l=u.prevState,s=u.state;n.onStateChange(ee({prevState:l,state:s,refresh:i},o))}),o=function(u){var l=u.store;return{setActiveItemId:function(s){l.dispatch("setActiveItemId",s)},setQuery:function(s){l.dispatch("setQuery",s)},setCollections:function(s){var c=0,d=s.map(function(m){return Re(Re({},m),{},{items:Ie(m.items).map(function(p){return Re(Re({},p),{},{__autocomplete_id:c++})})})});l.dispatch("setCollections",d)},setIsOpen:function(s){l.dispatch("setIsOpen",s)},setStatus:function(s){l.dispatch("setStatus",s)},setContext:function(s){l.dispatch("setContext",s)}}}({store:r}),a=Ao(ee({props:n,refresh:i,store:r},o));function i(){return ae(ee({event:new Event("input"),nextState:{isOpen:r.getState().isOpen},props:n,query:r.getState().query,refresh:i,store:r},o))}return n.plugins.forEach(function(u){var l;return(l=u.subscribe)===null||l===void 0?void 0:l.call(u,ee(ee({},o),{},{refresh:i,onSelect:function(s){t.push({onSelect:s})},onActive:function(s){t.push({onActive:s})}}))}),function(u){var l,s,c=u.metadata,d=u.environment;if(!((l=d.navigator)===null||l===void 0||(s=l.userAgent)===null||s===void 0)&&s.includes("Algolia Crawler")){var m=d.document.createElement("meta"),p=d.document.querySelector("head");m.name="algolia:metadata",setTimeout(function(){m.content=JSON.stringify(c),p.appendChild(m)},0)}}({metadata:No({plugins:n.plugins,options:e}),environment:n.environment}),ee(ee({refresh:i},a),o)}function Mo(e){var t=e.translations,n=(t===void 0?{}:t).searchByText,r=n===void 0?"Search by":n;return f.createElement("a",{href:"https://www.algolia.com/ref/docsearch/?utm_source=".concat(window.location.hostname,"&utm_medium=referral&utm_content=powered_by&utm_campaign=docsearch"),target:"_blank",rel:"noopener noreferrer"},f.createElement("span",{className:"DocSearch-Label"},r),f.createElement("svg",{width:"77",height:"19","aria-label":"Algolia",role:"img",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2196.2 500"},f.createElement("defs",null,f.createElement("style",null,".cls-1,.cls-2{fill:#003dff;}.cls-2{fill-rule:evenodd;}")),f.createElement("path",{className:"cls-2",d:"M1070.38,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),f.createElement("rect",{className:"cls-1",x:"1845.88",y:"104.73",width:"62.58",height:"277.9",rx:"5.9",ry:"5.9"}),f.createElement("path",{className:"cls-2",d:"M1851.78,71.38h50.77c3.26,0,5.9-2.64,5.9-5.9V5.9c0-3.62-3.24-6.39-6.82-5.83l-50.77,7.95c-2.87,.45-4.99,2.92-4.99,5.83v51.62c0,3.26,2.64,5.9,5.9,5.9Z"}),f.createElement("path",{className:"cls-2",d:"M1764.03,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),f.createElement("path",{className:"cls-2",d:"M1631.95,142.72c-11.14-12.25-24.83-21.65-40.78-28.31-15.92-6.53-33.26-9.85-52.07-9.85-18.78,0-36.15,3.17-51.92,9.85-15.59,6.66-29.29,16.05-40.76,28.31-11.47,12.23-20.38,26.87-26.76,44.03-6.38,17.17-9.24,37.37-9.24,58.36,0,20.99,3.19,36.87,9.55,54.21,6.38,17.32,15.14,32.11,26.45,44.36,11.29,12.23,24.83,21.62,40.6,28.46,15.77,6.83,40.12,10.33,52.4,10.48,12.25,0,36.78-3.82,52.7-10.48,15.92-6.68,29.46-16.23,40.78-28.46,11.29-12.25,20.05-27.04,26.25-44.36,6.22-17.34,9.24-33.22,9.24-54.21,0-20.99-3.34-41.19-10.03-58.36-6.38-17.17-15.14-31.8-26.43-44.03Zm-44.43,163.75c-11.47,15.75-27.56,23.7-48.09,23.7-20.55,0-36.63-7.8-48.1-23.7-11.47-15.75-17.21-34.01-17.21-61.2,0-26.89,5.59-49.14,17.06-64.87,11.45-15.75,27.54-23.52,48.07-23.52,20.55,0,36.63,7.78,48.09,23.52,11.47,15.57,17.36,37.98,17.36,64.87,0,27.19-5.72,45.3-17.19,61.2Z"}),f.createElement("path",{className:"cls-2",d:"M894.42,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),f.createElement("path",{className:"cls-2",d:"M2133.97,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),f.createElement("path",{className:"cls-2",d:"M1314.05,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-11.79,18.34-19.6,39.64-22.11,62.59-.58,5.3-.88,10.68-.88,16.14s.31,11.15,.93,16.59c4.28,38.09,23.14,71.61,50.66,94.52,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47h0c17.99,0,34.61-5.93,48.16-15.97,16.29-11.58,28.88-28.54,34.48-47.75v50.26h-.11v11.08c0,21.84-5.71,38.27-17.34,49.36-11.61,11.08-31.04,16.63-58.25,16.63-11.12,0-28.79-.59-46.6-2.41-2.83-.29-5.46,1.5-6.27,4.22l-12.78,43.11c-1.02,3.46,1.27,7.02,4.83,7.53,21.52,3.08,42.52,4.68,54.65,4.68,48.91,0,85.16-10.75,108.89-32.21,21.48-19.41,33.15-48.89,35.2-88.52V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,64.1s.65,139.13,0,143.36c-12.08,9.77-27.11,13.59-43.49,14.7-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-1.32,0-2.63-.03-3.94-.1-40.41-2.11-74.52-37.26-74.52-79.38,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33Z"}),f.createElement("path",{className:"cls-1",d:"M249.83,0C113.3,0,2,110.09,.03,246.16c-2,138.19,110.12,252.7,248.33,253.5,42.68,.25,83.79-10.19,120.3-30.03,3.56-1.93,4.11-6.83,1.08-9.51l-23.38-20.72c-4.75-4.21-11.51-5.4-17.36-2.92-25.48,10.84-53.17,16.38-81.71,16.03-111.68-1.37-201.91-94.29-200.13-205.96,1.76-110.26,92-199.41,202.67-199.41h202.69V407.41l-115-102.18c-3.72-3.31-9.42-2.66-12.42,1.31-18.46,24.44-48.53,39.64-81.93,37.34-46.33-3.2-83.87-40.5-87.34-86.81-4.15-55.24,39.63-101.52,94-101.52,49.18,0,89.68,37.85,93.91,85.95,.38,4.28,2.31,8.27,5.52,11.12l29.95,26.55c3.4,3.01,8.79,1.17,9.63-3.3,2.16-11.55,2.92-23.58,2.07-35.92-4.82-70.34-61.8-126.93-132.17-131.26-80.68-4.97-148.13,58.14-150.27,137.25-2.09,77.1,61.08,143.56,138.19,145.26,32.19,.71,62.03-9.41,86.14-26.95l150.26,133.2c6.44,5.71,16.61,1.14,16.61-7.47V9.48C499.66,4.25,495.42,0,490.18,0H249.83Z"})))}function Me(e){return f.createElement("svg",{width:"15",height:"15","aria-label":e.ariaLabel,role:"img"},f.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"},e.children))}function Ho(e){var t=e.translations,n=t===void 0?{}:t,r=n.selectText,o=r===void 0?"to select":r,a=n.selectKeyAriaLabel,i=a===void 0?"Enter key":a,u=n.navigateText,l=u===void 0?"to navigate":u,s=n.navigateUpKeyAriaLabel,c=s===void 0?"Arrow up":s,d=n.navigateDownKeyAriaLabel,m=d===void 0?"Arrow down":d,p=n.closeText,_=p===void 0?"to close":p,h=n.closeKeyAriaLabel,g=h===void 0?"Escape key":h,v=n.searchByText,S=v===void 0?"Search by":v;return f.createElement(f.Fragment,null,f.createElement("div",{className:"DocSearch-Logo"},f.createElement(Mo,{translations:{searchByText:S}})),f.createElement("ul",{className:"DocSearch-Commands"},f.createElement("li",null,f.createElement("kbd",{className:"DocSearch-Commands-Key"},f.createElement(Me,{ariaLabel:i},f.createElement("path",{d:"M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"}))),f.createElement("span",{className:"DocSearch-Label"},o)),f.createElement("li",null,f.createElement("kbd",{className:"DocSearch-Commands-Key"},f.createElement(Me,{ariaLabel:m},f.createElement("path",{d:"M7.5 3.5v8M10.5 8.5l-3 3-3-3"}))),f.createElement("kbd",{className:"DocSearch-Commands-Key"},f.createElement(Me,{ariaLabel:c},f.createElement("path",{d:"M7.5 11.5v-8M10.5 6.5l-3-3-3 3"}))),f.createElement("span",{className:"DocSearch-Label"},l)),f.createElement("li",null,f.createElement("kbd",{className:"DocSearch-Commands-Key"},f.createElement(Me,{ariaLabel:g},f.createElement("path",{d:"M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"}))),f.createElement("span",{className:"DocSearch-Label"},_))))}function Uo(e){var t=e.hit,n=e.children;return f.createElement("a",{href:t.url},n)}function Fo(){return f.createElement("svg",{viewBox:"0 0 38 38",stroke:"currentColor",strokeOpacity:".5"},f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},f.createElement("circle",{strokeOpacity:".3",cx:"18",cy:"18",r:"18"}),f.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},f.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}function Bo(){return f.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},f.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("path",{d:"M3.18 6.6a8.23 8.23 0 1112.93 9.94h0a8.23 8.23 0 01-11.63 0"}),f.createElement("path",{d:"M6.44 7.25H2.55V3.36M10.45 6v5.6M10.45 11.6L13 13"})))}function gt(){return f.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},f.createElement("path",{d:"M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function Vo(){return f.createElement("svg",{className:"DocSearch-Hit-Select-Icon",width:"20",height:"20",viewBox:"0 0 20 20"},f.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("path",{d:"M18 3v4c0 2-2 4-4 4H2"}),f.createElement("path",{d:"M8 17l-6-6 6-6"})))}var Wo=function(){return f.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},f.createElement("path",{d:"M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))};function Ko(e){switch(e.type){case"lvl1":return f.createElement(Wo,null);case"content":return f.createElement(Jo,null);default:return f.createElement(zo,null)}}function zo(){return f.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},f.createElement("path",{d:"M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function Jo(){return f.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},f.createElement("path",{d:"M17 5H3h14zm0 5H3h14zm0 5H3h14z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function _n(){return f.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},f.createElement("path",{d:"M10 14.2L5 17l1-5.6-4-4 5.5-.7 2.5-5 2.5 5 5.6.8-4 4 .9 5.5z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function $o(){return f.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("path",{d:"M19 4.8a16 16 0 00-2-1.2m-3.3-1.2A16 16 0 001.1 4.7M16.7 8a12 12 0 00-2.8-1.4M10 6a12 12 0 00-6.7 2M12.3 14.7a4 4 0 00-4.5 0M14.5 11.4A8 8 0 0010 10M3 16L18 2M10 18h0"}))}function Qo(){return f.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("path",{d:"M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"}))}function Zo(e){var t=e.translations,n=t===void 0?{}:t,r=n.titleText,o=r===void 0?"Unable to fetch results":r,a=n.helpText,i=a===void 0?"You might want to check your network connection.":a;return f.createElement("div",{className:"DocSearch-ErrorScreen"},f.createElement("div",{className:"DocSearch-Screen-Icon"},f.createElement($o,null)),f.createElement("p",{className:"DocSearch-Title"},o),f.createElement("p",{className:"DocSearch-Help"},i))}var Yo=["translations"];function Go(e){return function(t){if(Array.isArray(t))return ct(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return ct(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ct(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ct(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(c[l]=i[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ea(e){var t=e.translations,n=t===void 0?{}:t,r=Xo(e,Yo),o=n.noResultsText,a=o===void 0?"No results for":o,i=n.suggestedQueryText,u=i===void 0?"Try searching for":i,l=n.reportMissingResultsText,s=l===void 0?"Believe this query should return results?":l,c=n.reportMissingResultsLinkText,d=c===void 0?"Let us know.":c,m=r.state.context.searchSuggestions;return f.createElement("div",{className:"DocSearch-NoResults"},f.createElement("div",{className:"DocSearch-Screen-Icon"},f.createElement(Qo,null)),f.createElement("p",{className:"DocSearch-Title"},a,' "',f.createElement("strong",null,r.state.query),'"'),m&&m.length>0&&f.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},f.createElement("p",{className:"DocSearch-Help"},u,":"),f.createElement("ul",null,m.slice(0,3).reduce(function(p,_){return[].concat(Go(p),[f.createElement("li",{key:_},f.createElement("button",{className:"DocSearch-Prefill",key:_,type:"button",onClick:function(){r.setQuery(_.toLowerCase()+" "),r.refresh(),r.inputRef.current.focus()}},_))])},[]))),r.getMissingResultsUrl&&f.createElement("p",{className:"DocSearch-Help"},"".concat(s," "),f.createElement("a",{href:r.getMissingResultsUrl({query:r.state.query}),target:"_blank",rel:"noopener noreferrer"},d)))}var ta=["hit","attribute","tagName"];function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function bn(e){for(var t=1;t=0||(c[l]=i[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function On(e,t){return t.split(".").reduce(function(n,r){return n!=null&&n[r]?n[r]:null},e)}function oe(e){var t=e.hit,n=e.attribute,r=e.tagName;return V(r===void 0?"span":r,bn(bn({},ra(e,ta)),{},{dangerouslySetInnerHTML:{__html:On(t,"_snippetResult.".concat(n,".value"))||On(t,n)}}))}function Sn(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var a,i,u=[],l=!0,s=!1;try{for(o=o.call(n);!(l=(a=o.next()).done)&&(u.push(a.value),!r||u.length!==r);l=!0);}catch(c){s=!0,i=c}finally{try{l||o.return==null||o.return()}finally{if(s)throw i}}return u}}(e,t)||function(n,r){if(n){if(typeof n=="string")return wn(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return wn(n,r)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function wn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n|<\/mark>)/g,ia=RegExp(lr.source);function sr(e){var t,n,r,o,a,i=e;if(!i.__docsearch_parent&&!e._highlightResult)return e.hierarchy.lvl0;var u=((i.__docsearch_parent?(t=i.__docsearch_parent)===null||t===void 0||(n=t._highlightResult)===null||n===void 0||(r=n.hierarchy)===null||r===void 0?void 0:r.lvl0:(o=e._highlightResult)===null||o===void 0||(a=o.hierarchy)===null||a===void 0?void 0:a.lvl0)||{}).value;return u&&ia.test(u)?u.replace(lr,""):u}function Ot(){return Ot=Object.assign||function(e){for(var t=1;t=0||(c[l]=i[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sa(e){var t=e.translations,n=t===void 0?{}:t,r=la(e,ua),o=n.recentSearchesTitle,a=o===void 0?"Recent":o,i=n.noRecentSearchesText,u=i===void 0?"No recent searches":i,l=n.saveRecentSearchButtonTitle,s=l===void 0?"Save this search":l,c=n.removeRecentSearchButtonTitle,d=c===void 0?"Remove this search from history":c,m=n.favoriteSearchesTitle,p=m===void 0?"Favorite":m,_=n.removeFavoriteSearchButtonTitle,h=_===void 0?"Remove this search from favorites":_;return r.state.status==="idle"&&r.hasCollections===!1?r.disableUserPersonalization?null:f.createElement("div",{className:"DocSearch-StartScreen"},f.createElement("p",{className:"DocSearch-Help"},u)):r.hasCollections===!1?null:f.createElement("div",{className:"DocSearch-Dropdown-Container"},f.createElement(bt,$e({},r,{title:a,collection:r.state.collections[0],renderIcon:function(){return f.createElement("div",{className:"DocSearch-Hit-icon"},f.createElement(Bo,null))},renderAction:function(g){var v=g.item,S=g.runFavoriteTransition,O=g.runDeleteTransition;return f.createElement(f.Fragment,null,f.createElement("div",{className:"DocSearch-Hit-action"},f.createElement("button",{className:"DocSearch-Hit-action-button",title:s,type:"submit",onClick:function(y){y.preventDefault(),y.stopPropagation(),S(function(){r.favoriteSearches.add(v),r.recentSearches.remove(v),r.refresh()})}},f.createElement(_n,null))),f.createElement("div",{className:"DocSearch-Hit-action"},f.createElement("button",{className:"DocSearch-Hit-action-button",title:d,type:"submit",onClick:function(y){y.preventDefault(),y.stopPropagation(),O(function(){r.recentSearches.remove(v),r.refresh()})}},f.createElement(gt,null))))}})),f.createElement(bt,$e({},r,{title:p,collection:r.state.collections[1],renderIcon:function(){return f.createElement("div",{className:"DocSearch-Hit-icon"},f.createElement(_n,null))},renderAction:function(g){var v=g.item,S=g.runDeleteTransition;return f.createElement("div",{className:"DocSearch-Hit-action"},f.createElement("button",{className:"DocSearch-Hit-action-button",title:h,type:"submit",onClick:function(O){O.preventDefault(),O.stopPropagation(),S(function(){r.favoriteSearches.remove(v),r.refresh()})}},f.createElement(gt,null)))}})))}var fa=["translations"];function Qe(){return Qe=Object.assign||function(e){for(var t=1;t=0||(c[l]=i[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ma=f.memo(function(e){var t=e.translations,n=t===void 0?{}:t,r=pa(e,fa);if(r.state.status==="error")return f.createElement(Zo,{translations:n==null?void 0:n.errorScreen});var o=r.state.collections.some(function(a){return a.items.length>0});return r.state.query?o===!1?f.createElement(ea,Qe({},r,{translations:n==null?void 0:n.noResultsScreen})):f.createElement(ca,r):f.createElement(sa,Qe({},r,{hasCollections:o,translations:n==null?void 0:n.startScreen}))},function(e,t){return t.state.status==="loading"||t.state.status==="stalled"}),da=["translations"];function Ze(){return Ze=Object.assign||function(e){for(var t=1;t=0||(c[l]=i[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function va(e){var t=e.translations,n=t===void 0?{}:t,r=ha(e,da),o=n.resetButtonTitle,a=o===void 0?"Clear the query":o,i=n.resetButtonAriaLabel,u=i===void 0?"Clear the query":i,l=n.cancelButtonText,s=l===void 0?"Cancel":l,c=n.cancelButtonAriaLabel,d=c===void 0?"Cancel":c,m=r.getFormProps({inputElement:r.inputRef.current}).onReset;return f.useEffect(function(){r.autoFocus&&r.inputRef.current&&r.inputRef.current.focus()},[r.autoFocus,r.inputRef]),f.useEffect(function(){r.isFromSelection&&r.inputRef.current&&r.inputRef.current.select()},[r.isFromSelection,r.inputRef]),f.createElement(f.Fragment,null,f.createElement("form",{className:"DocSearch-Form",onSubmit:function(p){p.preventDefault()},onReset:m},f.createElement("label",Ze({className:"DocSearch-MagnifierLabel"},r.getLabelProps()),f.createElement(ar,null)),f.createElement("div",{className:"DocSearch-LoadingIndicator"},f.createElement(Fo,null)),f.createElement("input",Ze({className:"DocSearch-Input",ref:r.inputRef},r.getInputProps({inputElement:r.inputRef.current,autoFocus:r.autoFocus,maxLength:64}))),f.createElement("button",{type:"reset",title:a,className:"DocSearch-Reset","aria-label":u,hidden:!r.state.query},f.createElement(gt,null))),f.createElement("button",{className:"DocSearch-Cancel",type:"reset","aria-label":d,onClick:r.onClose},s))}var ya=["_highlightResult","_snippetResult"];function _a(e,t){if(e==null)return{};var n,r,o=function(i,u){if(i==null)return{};var l,s,c={},d=Object.keys(i);for(s=0;s=0||(c[l]=i[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ga(e){return function(){var t="__TEST_KEY__";try{return localStorage.setItem(t,""),localStorage.removeItem(t),!0}catch{return!1}}()===!1?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(t){return window.localStorage.setItem(e,JSON.stringify(t))},getItem:function(){var t=window.localStorage.getItem(e);return t?JSON.parse(t):[]}}}function Pn(e){var t=e.key,n=e.limit,r=n===void 0?5:n,o=ga(t),a=o.getItem().slice(0,r);return{add:function(i){var u=i,l=(u._highlightResult,u._snippetResult,_a(u,ya)),s=a.findIndex(function(c){return c.objectID===l.objectID});s>-1&&a.splice(s,1),a.unshift(l),a=a.slice(0,r),o.setItem(a)},remove:function(i){a=a.filter(function(u){return u.objectID!==i.objectID}),o.setItem(a)},getAll:function(){return a}}}var ba=["facetName","facetQuery"];function Oa(e){var t,n="algoliasearch-client-js-".concat(e.key),r=function(){return t===void 0&&(t=e.localStorage||window.localStorage),t},o=function(){return JSON.parse(r().getItem(n)||"{}")};return{get:function(a,i){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){var l=JSON.stringify(a),s=o()[l];return Promise.all([s||i(),s!==void 0])}).then(function(l){var s=Ve(l,2),c=s[0],d=s[1];return Promise.all([c,d||u.miss(c)])}).then(function(l){return Ve(l,1)[0]})},set:function(a,i){return Promise.resolve().then(function(){var u=o();return u[JSON.stringify(a)]=i,r().setItem(n,JSON.stringify(u)),i})},delete:function(a){return Promise.resolve().then(function(){var i=o();delete i[JSON.stringify(a)],r().setItem(n,JSON.stringify(i))})},clear:function(){return Promise.resolve().then(function(){r().removeItem(n)})}}}function be(e){var t=We(e.caches),n=t.shift();return n===void 0?{get:function(r,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return o().then(function(i){return Promise.all([i,a.miss(i)])}).then(function(i){return Ve(i,1)[0]})},set:function(r,o){return Promise.resolve(o)},delete:function(r){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(r,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(r,o,a).catch(function(){return be({caches:t}).get(r,o,a)})},set:function(r,o){return n.set(r,o).catch(function(){return be({caches:t}).set(r,o)})},delete:function(r){return n.delete(r).catch(function(){return be({caches:t}).delete(r)})},clear:function(){return n.clear().catch(function(){return be({caches:t}).clear()})}}}function ut(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(n);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var i=r(),u=o&&o.miss||function(){return Promise.resolve()};return i.then(function(l){return u(l)}).then(function(){return i})},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(n){return delete t[JSON.stringify(n)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function Sa(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function fr(e,t){return t&&Object.keys(t).forEach(function(n){e[n]=t[n](e)}),e}function Ye(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var ce={Read:1,Write:2,Any:3},pr=1,wa=2,mr=3;function dr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pr;return P(P({},e),{},{status:t,lastUpdate:Date.now()})}function hr(e){return typeof e=="string"?{protocol:"https",url:e,accept:ce.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||ce.Any}}var kn="GET",Ge="POST";function Ea(e,t){return Promise.all(t.map(function(n){return e.get(n,function(){return Promise.resolve(dr(n))})})).then(function(n){var r=n.filter(function(i){return function(u){return u.status===pr||Date.now()-u.lastUpdate>12e4}(i)}),o=n.filter(function(i){return function(u){return u.status===mr&&Date.now()-u.lastUpdate<=12e4}(i)}),a=[].concat(We(r),We(o));return{getTimeout:function(i,u){return(o.length===0&&i===0?1:o.length+3+i)*u},statelessHosts:a.length>0?a.map(function(i){return hr(i)}):t}})}function Dn(e,t,n,r){var o=[],a=function(m,p){if(!(m.method===kn||m.data===void 0&&p.data===void 0)){var _=Array.isArray(m.data)?m.data:P(P({},m.data),p.data);return JSON.stringify(_)}}(n,r),i=function(m,p){var _=P(P({},m.headers),p.headers),h={};return Object.keys(_).forEach(function(g){var v=_[g];h[g.toLowerCase()]=v}),h}(e,r),u=n.method,l=n.method!==kn?{}:P(P({},n.data),r.data),s=P(P(P({"x-algolia-agent":e.userAgent.value},e.queryParameters),l),r.queryParameters),c=0,d=function m(p,_){var h=p.pop();if(h===void 0)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:Cn(o)};var g={data:a,headers:i,method:u,url:Pa(h,n.path,s),connectTimeout:_(c,e.timeouts.connect),responseTimeout:_(c,r.timeout)},v=function(O){var y={request:g,response:O,host:h,triesLeft:p.length};return o.push(y),y},S={onSucess:function(O){return function(y){try{return JSON.parse(y.content)}catch(b){throw function(I,N){return{name:"DeserializationError",message:I,response:N}}(b.message,y)}}(O)},onRetry:function(O){var y=v(O);return O.isTimedOut&&c++,Promise.all([e.logger.info("Retryable failure",yr(y)),e.hostsCache.set(h,dr(h,O.isTimedOut?mr:wa))]).then(function(){return m(p,_)})},onFail:function(O){throw v(O),function(y,b){var I=y.content,N=y.status,A=I;try{A=JSON.parse(I).message}catch{}return function(k,R,L){return{name:"ApiError",message:k,status:R,transporterStackTrace:L}}(A,N,b)}(O,Cn(o))}};return e.requester.send(g).then(function(O){return function(y,b){return function(I){var N=I.status;return I.isTimedOut||function(A){var k=A.isTimedOut,R=A.status;return!k&&~~R==0}(I)||~~(N/100)!=2&&~~(N/100)!=4}(y)?b.onRetry(y):~~(y.status/100)==2?b.onSucess(y):b.onFail(y)}(O,S)})};return Ea(e.hostsCache,t).then(function(m){return d(We(m.statelessHosts).reverse(),m.getTimeout)})}function ja(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(n){var r="; ".concat(n.segment).concat(n.version!==void 0?" (".concat(n.version,")"):"");return t.value.indexOf(r)===-1&&(t.value="".concat(t.value).concat(r)),t}};return t}function Pa(e,t,n){var r=vr(n),o="".concat(e.protocol,"://").concat(e.url,"/").concat(t.charAt(0)==="/"?t.substr(1):t);return r.length&&(o+="?".concat(r)),o}function vr(e){return Object.keys(e).map(function(t){return Ye("%s=%s",t,(n=e[t],Object.prototype.toString.call(n)==="[object Object]"||Object.prototype.toString.call(n)==="[object Array]"?JSON.stringify(e[t]):e[t]));var n}).join("&")}function Cn(e){return e.map(function(t){return yr(t)})}function yr(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return P(P({},e),{},{request:P(P({},e.request),{},{headers:P(P({},e.request.headers),t)})})}var Ia=function(e){var t=e.appId,n=function(a,i,u){var l={"x-algolia-api-key":u,"x-algolia-application-id":i};return{headers:function(){return a===Be.WithinHeaders?l:{}},queryParameters:function(){return a===Be.WithinQueryParameters?l:{}}}}(e.authMode!==void 0?e.authMode:Be.WithinHeaders,t,e.apiKey),r=function(a){var i=a.hostsCache,u=a.logger,l=a.requester,s=a.requestsCache,c=a.responsesCache,d=a.timeouts,m=a.userAgent,p=a.hosts,_=a.queryParameters,h={hostsCache:i,logger:u,requester:l,requestsCache:s,responsesCache:c,timeouts:d,userAgent:m,headers:a.headers,queryParameters:_,hosts:p.map(function(g){return hr(g)}),read:function(g,v){var S=In(v,h.timeouts.read),O=function(){return Dn(h,h.hosts.filter(function(b){return(b.accept&ce.Read)!=0}),g,S)};if((S.cacheable!==void 0?S.cacheable:g.cacheable)!==!0)return O();var y={request:g,mappedRequestOptions:S,transporter:{queryParameters:h.queryParameters,headers:h.headers}};return h.responsesCache.get(y,function(){return h.requestsCache.get(y,function(){return h.requestsCache.set(y,O()).then(function(b){return Promise.all([h.requestsCache.delete(y),b])},function(b){return Promise.all([h.requestsCache.delete(y),Promise.reject(b)])}).then(function(b){var I=Ve(b,2);return I[0],I[1]})})},{miss:function(b){return h.responsesCache.set(y,b)}})},write:function(g,v){return Dn(h,h.hosts.filter(function(S){return(S.accept&ce.Write)!=0}),g,In(v,h.timeouts.write))}};return h}(P(P({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:ce.Read},{url:"".concat(t,".algolia.net"),accept:ce.Write}].concat(Sa([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:P(P(P({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:P(P({},n.queryParameters()),e.queryParameters)})),o={transporter:r,appId:t,addAlgoliaAgent:function(a,i){r.userAgent.add({segment:a,version:i})},clearCache:function(){return Promise.all([r.requestsCache.clear(),r.responsesCache.clear()]).then(function(){})}};return fr(o,e.methods)},_r=function(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r={transporter:e.transporter,appId:e.appId,indexName:t};return fr(r,n.methods)}},An=function(e){return function(t,n){var r=t.map(function(o){return P(P({},o),{},{params:vr(o.params||{})})});return e.transporter.read({method:Ge,path:"1/indexes/*/queries",data:{requests:r},cacheable:!0},n)}},xn=function(e){return function(t,n){return Promise.all(t.map(function(r){var o=r.params,a=o.facetName,i=o.facetQuery,u=Rr(o,ba);return _r(e)(r.indexName,{methods:{searchForFacetValues:gr}}).searchForFacetValues(a,i,P(P({},n),u))}))}},ka=function(e){return function(t,n,r){return e.transporter.read({method:Ge,path:Ye("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},Da=function(e){return function(t,n){return e.transporter.read({method:Ge,path:Ye("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},gr=function(e){return function(t,n,r){return e.transporter.read({method:Ge,path:Ye("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},Ca=1,Aa=2,xa=3;function br(e,t,n){var r,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(a){return new Promise(function(i){var u=new XMLHttpRequest;u.open(a.method,a.url,!0),Object.keys(a.headers).forEach(function(d){return u.setRequestHeader(d,a.headers[d])});var l,s=function(d,m){return setTimeout(function(){u.abort(),i({status:0,content:m,isTimedOut:!0})},1e3*d)},c=s(a.connectTimeout,"Connection timeout");u.onreadystatechange=function(){u.readyState>u.OPENED&&l===void 0&&(clearTimeout(c),l=s(a.responseTimeout,"Socket timeout"))},u.onerror=function(){u.status===0&&(clearTimeout(c),clearTimeout(l),i({content:u.responseText||"Network request failed",status:u.status,isTimedOut:!1}))},u.onload=function(){clearTimeout(c),clearTimeout(l),i({content:u.responseText,status:u.status,isTimedOut:!1})},u.send(a.data)})}},logger:(r=xa,{debug:function(a,i){return Ca>=r&&console.debug(a,i),Promise.resolve()},info:function(a,i){return Aa>=r&&console.info(a,i),Promise.resolve()},error:function(a,i){return console.error(a,i),Promise.resolve()}}),responsesCache:ut(),requestsCache:ut({serializable:!1}),hostsCache:be({caches:[Oa({key:"".concat("4.8.5","-").concat(e)}),ut()]}),userAgent:ja("4.8.5").add({segment:"Browser",version:"lite"}),authMode:Be.WithinQueryParameters};return Ia(P(P(P({},o),n),{},{methods:{search:An,searchForFacetValues:xn,multipleQueries:An,multipleSearchForFacetValues:xn,initIndex:function(a){return function(i){return _r(a)(i,{methods:{search:Da,searchForFacetValues:gr,findAnswers:ka}})}}}}))}br.version="4.8.5";var Na=["footer","searchBox"];function we(){return we=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(c[l]=i[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qa(e){var t=e.appId,n=e.apiKey,r=e.indexName,o=e.placeholder,a=o===void 0?"Search docs":o,i=e.searchParameters,u=e.onClose,l=u===void 0?aa:u,s=e.transformItems,c=s===void 0?jn:s,d=e.hitComponent,m=d===void 0?Uo:d,p=e.resultsFooterComponent,_=p===void 0?function(){return null}:p,h=e.navigator,g=e.initialScrollY,v=g===void 0?0:g,S=e.transformSearchClient,O=S===void 0?jn:S,y=e.disableUserPersonalization,b=y!==void 0&&y,I=e.initialQuery,N=I===void 0?"":I,A=e.translations,k=A===void 0?{}:A,R=e.getMissingResultsUrl,L=k.footer,B=k.searchBox,q=La(k,Na),De=Ta(f.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),2),Y=De[0],Xe=De[1],se=f.useRef(null),et=f.useRef(null),Pt=f.useRef(null),Ce=f.useRef(null),fe=f.useRef(null),$=f.useRef(10),It=f.useRef(typeof window<"u"?window.getSelection().toString().slice(0,64):"").current,G=f.useRef(N||It).current,kt=function(j,D,M){return f.useMemo(function(){var H=br(j,D);return H.addAlgoliaAgent("docsearch","3.3.3"),/docsearch.js \(.*\)/.test(H.transporter.userAgent.value)===!1&&H.addAlgoliaAgent("docsearch-react","3.3.3"),M(H)},[j,D,M])}(t,n,O),te=f.useRef(Pn({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(r),limit:10})).current,pe=f.useRef(Pn({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(r),limit:te.getAll().length===0?7:4})).current,me=f.useCallback(function(j){if(!b){var D=j.type==="content"?j.__docsearch_parent:j;D&&te.getAll().findIndex(function(M){return M.objectID===D.objectID})===-1&&pe.add(D)}},[te,pe,b]),de=f.useMemo(function(){return qo({id:"docsearch",defaultActiveItemId:0,placeholder:a,openOnFocus:!0,initialState:{query:G,context:{searchSuggestions:[]}},navigator:h,onStateChange:function(j){Xe(j.state)},getSources:function(j){var D=j.query,M=j.state,H=j.setContext,Q=j.setStatus;return D?kt.search([{query:D,indexName:r,params:lt({attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:["hierarchy.lvl1:".concat($.current),"hierarchy.lvl2:".concat($.current),"hierarchy.lvl3:".concat($.current),"hierarchy.lvl4:".concat($.current),"hierarchy.lvl5:".concat($.current),"hierarchy.lvl6:".concat($.current),"content:".concat($.current)],snippetEllipsisText:"…",highlightPreTag:"",highlightPostTag:"",hitsPerPage:20},i)}]).catch(function(C){throw C.name==="RetryError"&&Q("error"),C}).then(function(C){var U=C.results[0],F=U.hits,wr=U.nbHits,tt=En(F,function(nt){return sr(nt)});return M.context.searchSuggestions.length0&&(Dt(),fe.current&&fe.current.focus())},[G,Dt]),f.useEffect(function(){function j(){if(et.current){var D=.01*window.innerHeight;et.current.style.setProperty("--docsearch-vh","".concat(D,"px"))}}return j(),window.addEventListener("resize",j),function(){window.removeEventListener("resize",j)}},[]),f.createElement("div",we({ref:se},Sr({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container",Y.status==="stalled"&&"DocSearch-Container--Stalled",Y.status==="error"&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(j){j.target===j.currentTarget&&l()}}),f.createElement("div",{className:"DocSearch-Modal",ref:et},f.createElement("header",{className:"DocSearch-SearchBar",ref:Pt},f.createElement(va,we({},de,{state:Y,autoFocus:G.length===0,inputRef:fe,isFromSelection:!!G&&G===It,translations:B,onClose:l}))),f.createElement("div",{className:"DocSearch-Dropdown",ref:Ce},f.createElement(ma,we({},de,{indexName:r,state:Y,hitComponent:m,resultsFooterComponent:_,disableUserPersonalization:b,recentSearches:pe,favoriteSearches:te,inputRef:fe,translations:q,getMissingResultsUrl:R,onItemClick:function(j){me(j),l()}}))),f.createElement("footer",{className:"DocSearch-Footer"},f.createElement(Ho,{translations:L}))))}function St(){return St=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:window;return typeof t=="string"?n.document.querySelector(t):t}(e.container,e.environment))}const Ua={id:"docsearch"},Va=jr({__name:"VPAlgoliaSearchBox",props:{algolia:null},setup(e){const t=e,n=Pr(),r=Ir(),{site:o,localeIndex:a,lang:i}=xr();kr(u),Dr(a,u);function u(){var p,_;const c={...t.algolia,...(p=t.algolia.locales)==null?void 0:p[a.value]},d=((_=c.searchParameters)==null?void 0:_.facetFilters)??[],m=[...(Array.isArray(d)?d:[d]).filter(h=>!h.startsWith("lang:")),`lang:${i.value}`];l({...c,searchParameters:{...c.searchParameters,facetFilters:m}})}function l(c){const d=Object.assign({},c,{container:"#docsearch",navigator:{navigate({itemUrl:m}){const{pathname:p}=new URL(window.location.origin+m);r.path===p?window.location.assign(window.location.origin+m):n.go(m)}},transformItems(m){return m.map(p=>Object.assign({},p,{url:s(p.url)}))},hitComponent({hit:m,children:p}){return{__v:null,type:"a",ref:void 0,constructor:void 0,key:void 0,props:{href:m.url,children:p}}}});Ha(d)}function s(c){const{pathname:d,hash:m}=new URL(c);return d.replace(/\.html$/,o.value.cleanUrls?"":".html")+m}return(c,d)=>(Cr(),Ar("div",Ua))}});export{Va as default}; diff --git a/docs/assets/chunks/framework.7addaa9c.js b/docs/assets/chunks/framework.7addaa9c.js deleted file mode 100644 index 83e5a54..0000000 --- a/docs/assets/chunks/framework.7addaa9c.js +++ /dev/null @@ -1,2 +0,0 @@ -function zn(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}function Yn(e){if(N(e)){const t={};for(let n=0;n{if(n){const s=n.split(wi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Jn(e){let t="";if(ie(e))t=e;else if(N(e))for(let n=0;nie(e)?e:e==null?"":N(e)||ee(e)&&(e.toString===ar||!j(e.toString))?JSON.stringify(e,cr,2):String(e),cr=(e,t)=>t&&t.__v_isRef?cr(e,t.value):ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:fr(t)?{[`Set(${t.size})`]:[...t.values()]}:ee(t)&&!N(t)&&!dr(t)?String(t):t,te={},ft=[],Oe=()=>{},vi=()=>!1,Ai=/^on[^a-z]/,Nt=e=>Ai.test(e),Xn=e=>e.startsWith("onUpdate:"),le=Object.assign,Zn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ri=Object.prototype.hasOwnProperty,V=(e,t)=>Ri.call(e,t),N=Array.isArray,ut=e=>fn(e)==="[object Map]",fr=e=>fn(e)==="[object Set]",j=e=>typeof e=="function",ie=e=>typeof e=="string",Qn=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",ur=e=>ee(e)&&j(e.then)&&j(e.catch),ar=Object.prototype.toString,fn=e=>ar.call(e),Oi=e=>fn(e).slice(8,-1),dr=e=>fn(e)==="[object Object]",Gn=e=>ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vt=zn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ii=/-(\w)/g,Se=un(e=>e.replace(Ii,(t,n)=>n?n.toUpperCase():"")),Fi=/\B([A-Z])/g,it=un(e=>e.replace(Fi,"-$1").toLowerCase()),an=un(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zt=un(e=>e?`on${an(e)}`:""),Ft=(e,t)=>!Object.is(e,t),xn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Pi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Mi=e=>{const t=ie(e)?Number(e):NaN;return isNaN(t)?e:t};let ws;const Si=()=>ws||(ws=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let _e;class Li{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=_e,!t&&_e&&(this.index=(_e.scopes||(_e.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=_e;try{return _e=this,t()}finally{_e=n}}}on(){_e=this}off(){_e=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},hr=e=>(e.w&qe)>0,pr=e=>(e.n&qe)>0,Hi=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(d==="length"||d>=c)&&l.push(a)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":N(e)?Gn(n)&&l.push(o.get("length")):(l.push(o.get(st)),ut(e)&&l.push(o.get(Ln)));break;case"delete":N(e)||(l.push(o.get(st)),ut(e)&&l.push(o.get(Ln)));break;case"set":ut(e)&&l.push(o.get(st));break}if(l.length===1)l[0]&&Nn(l[0]);else{const c=[];for(const a of l)a&&c.push(...a);Nn(es(c))}}function Nn(e,t){const n=N(e)?e:[...e];for(const s of n)s.computed&&xs(s);for(const s of n)s.computed||xs(s)}function xs(e,t){(e!==Ae||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ui=zn("__proto__,__v_isRef,__isVue"),_r=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qn)),ji=ns(),Di=ns(!1,!0),Ki=ns(!0),Es=ki();function ki(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Y(this);for(let i=0,o=this.length;i{e[t]=function(...n){wt();const s=Y(this)[t].apply(this,n);return Ct(),s}}),e}function Wi(e){const t=Y(this);return pe(t,"has",e),t.hasOwnProperty(e)}function ns(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?oo:xr:t?Cr:wr).get(s))return s;const o=N(s);if(!e){if(o&&V(Es,r))return Reflect.get(Es,r,i);if(r==="hasOwnProperty")return Wi}const l=Reflect.get(s,r,i);return(Qn(r)?_r.has(r):Ui(r))||(e||pe(s,"get",r),t)?l:fe(l)?o&&Gn(r)?l:l.value:ee(l)?e?Er(l):hn(l):l}}const qi=br(),Vi=br(!0);function br(e=!1){return function(n,s,r,i){let o=n[s];if(mt(o)&&fe(o)&&!fe(r))return!1;if(!e&&(!nn(r)&&!mt(r)&&(o=Y(o),r=Y(r)),!N(n)&&fe(o)&&!fe(r)))return o.value=r,!0;const l=N(n)&&Gn(s)?Number(s)e,dn=e=>Reflect.getPrototypeOf(e);function Kt(e,t,n=!1,s=!1){e=e.__v_raw;const r=Y(e),i=Y(t);n||(t!==i&&pe(r,"get",t),pe(r,"get",i));const{has:o}=dn(r),l=s?ss:n?os:Pt;if(o.call(r,t))return l(e.get(t));if(o.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function kt(e,t=!1){const n=this.__v_raw,s=Y(n),r=Y(e);return t||(e!==r&&pe(s,"has",e),pe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Wt(e,t=!1){return e=e.__v_raw,!t&&pe(Y(e),"iterate",st),Reflect.get(e,"size",e)}function Ts(e){e=Y(e);const t=Y(this);return dn(t).has.call(t,e)||(t.add(e),$e(t,"add",e,e)),this}function vs(e,t){t=Y(t);const n=Y(this),{has:s,get:r}=dn(n);let i=s.call(n,e);i||(e=Y(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?Ft(t,o)&&$e(n,"set",e,t):$e(n,"add",e,t),this}function As(e){const t=Y(this),{has:n,get:s}=dn(t);let r=n.call(t,e);r||(e=Y(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&$e(t,"delete",e,void 0),i}function Rs(){const e=Y(this),t=e.size!==0,n=e.clear();return t&&$e(e,"clear",void 0,void 0),n}function qt(e,t){return function(s,r){const i=this,o=i.__v_raw,l=Y(o),c=t?ss:e?os:Pt;return!e&&pe(l,"iterate",st),o.forEach((a,d)=>s.call(r,c(a),c(d),i))}}function Vt(e,t,n){return function(...s){const r=this.__v_raw,i=Y(r),o=ut(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,a=r[e](...s),d=n?ss:t?os:Pt;return!t&&pe(i,"iterate",c?Ln:st),{next(){const{value:p,done:y}=a.next();return y?{value:p,done:y}:{value:l?[d(p[0]),d(p[1])]:d(p),done:y}},[Symbol.iterator](){return this}}}}function Be(e){return function(...t){return e==="delete"?!1:this}}function Qi(){const e={get(i){return Kt(this,i)},get size(){return Wt(this)},has:kt,add:Ts,set:vs,delete:As,clear:Rs,forEach:qt(!1,!1)},t={get(i){return Kt(this,i,!1,!0)},get size(){return Wt(this)},has:kt,add:Ts,set:vs,delete:As,clear:Rs,forEach:qt(!1,!0)},n={get(i){return Kt(this,i,!0)},get size(){return Wt(this,!0)},has(i){return kt.call(this,i,!0)},add:Be("add"),set:Be("set"),delete:Be("delete"),clear:Be("clear"),forEach:qt(!0,!1)},s={get(i){return Kt(this,i,!0,!0)},get size(){return Wt(this,!0)},has(i){return kt.call(this,i,!0)},add:Be("add"),set:Be("set"),delete:Be("delete"),clear:Be("clear"),forEach:qt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Vt(i,!1,!1),n[i]=Vt(i,!0,!1),t[i]=Vt(i,!1,!0),s[i]=Vt(i,!0,!0)}),[e,n,t,s]}const[Gi,eo,to,no]=Qi();function rs(e,t){const n=t?e?no:to:e?eo:Gi;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(V(n,r)&&r in s?n:s,r,i)}const so={get:rs(!1,!1)},ro={get:rs(!1,!0)},io={get:rs(!0,!1)},wr=new WeakMap,Cr=new WeakMap,xr=new WeakMap,oo=new WeakMap;function lo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function co(e){return e.__v_skip||!Object.isExtensible(e)?0:lo(Oi(e))}function hn(e){return mt(e)?e:is(e,!1,yr,so,wr)}function fo(e){return is(e,!1,Zi,ro,Cr)}function Er(e){return is(e,!0,Xi,io,xr)}function is(e,t,n,s,r){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=co(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function at(e){return mt(e)?at(e.__v_raw):!!(e&&e.__v_isReactive)}function mt(e){return!!(e&&e.__v_isReadonly)}function nn(e){return!!(e&&e.__v_isShallow)}function Tr(e){return at(e)||mt(e)}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function At(e){return tn(e,"__v_skip",!0),e}const Pt=e=>ee(e)?hn(e):e,os=e=>ee(e)?Er(e):e;function vr(e){ke&&Ae&&(e=Y(e),mr(e.dep||(e.dep=es())))}function Ar(e,t){e=Y(e);const n=e.dep;n&&Nn(n)}function fe(e){return!!(e&&e.__v_isRef===!0)}function Rt(e){return Rr(e,!1)}function uo(e){return Rr(e,!0)}function Rr(e,t){return fe(e)?e:new ao(e,t)}class ao{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Y(t),this._value=n?t:Pt(t)}get value(){return vr(this),this._value}set value(t){const n=this.__v_isShallow||nn(t)||mt(t);t=n?t:Y(t),Ft(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Pt(t),Ar(this))}}function ho(e){return fe(e)?e.value:e}const po={get:(e,t,n)=>ho(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return fe(r)&&!fe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Or(e){return at(e)?e:new Proxy(e,po)}var Ir;class go{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Ir]=!1,this._dirty=!0,this.effect=new ts(t,()=>{this._dirty||(this._dirty=!0,Ar(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Y(this);return vr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Ir="__v_isReadonly";function mo(e,t,n=!1){let s,r;const i=j(e);return i?(s=e,r=Oe):(s=e.get,r=e.set),new go(s,r,i||!r,n)}function We(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){$t(i,t,n)}return r}function xe(e,t,n,s){if(j(e)){const i=We(e,t,n,s);return i&&ur(i)&&i.catch(o=>{$t(o,t,n)}),i}const r=[];for(let i=0;i>>1;St(ce[s])Me&&ce.splice(t,1)}function wo(e){N(e)?dt.push(...e):(!Ne||!Ne.includes(e,e.allowRecurse?Ge+1:Ge))&&dt.push(e),Mr()}function Os(e,t=Mt?Me+1:0){for(;tSt(n)-St(s)),Ge=0;Gee.id==null?1/0:e.id,Co=(e,t)=>{const n=St(e)-St(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Sr(e){$n=!1,Mt=!0,ce.sort(Co);const t=Oe;try{for(Me=0;Meie(T)?T.trim():T)),p&&(r=n.map(Pi))}let l,c=s[l=Zt(t)]||s[l=Zt(Se(t))];!c&&i&&(c=s[l=Zt(it(t))]),c&&xe(c,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,xe(a,e,6,r)}}function Lr(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!j(e)){const c=a=>{const d=Lr(a,t,!0);d&&(l=!0,le(o,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(ee(e)&&s.set(e,null),null):(N(i)?i.forEach(c=>o[c]=null):le(o,i),ee(e)&&s.set(e,o),o)}function gn(e,t){return!e||!Nt(t)?!1:(t=t.slice(2).replace(/Once$/,""),V(e,t[0].toLowerCase()+t.slice(1))||V(e,it(t))||V(e,t))}let ue=null,mn=null;function rn(e){const t=ue;return ue=e,mn=e&&e.type.__scopeId||null,t}function vc(e){mn=e}function Ac(){mn=null}function Eo(e,t=ue,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Bs(-1);const i=rn(t);let o;try{o=e(...r)}finally{rn(i),s._d&&Bs(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function En(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:l,attrs:c,emit:a,render:d,renderCache:p,data:y,setupState:T,ctx:R,inheritAttrs:I}=e;let B,g;const w=rn(e);try{if(n.shapeFlag&4){const H=r||s;B=ve(d.call(H,H,p,i,T,y,R)),g=c}else{const H=t;B=ve(H.length>1?H(i,{attrs:c,slots:l,emit:a}):H(i,null)),g=t.props?c:To(c)}}catch(H){It.length=0,$t(H,e,1),B=re(be)}let O=B;if(g&&I!==!1){const H=Object.keys(g),{shapeFlag:K}=O;H.length&&K&7&&(o&&H.some(Xn)&&(g=vo(g,o)),O=Ve(O,g))}return n.dirs&&(O=Ve(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),B=O,rn(w),B}const To=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nt(n))&&((t||(t={}))[n]=e[n]);return t},vo=(e,t)=>{const n={};for(const s in e)(!Xn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ao(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Is(s,o,a):!!o;if(c&8){const d=t.dynamicProps;for(let p=0;pe.__isSuspense;function Nr(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):wo(e)}function Io(e,t){if(se){let n=se.provides;const s=se.parent&&se.parent.provides;s===n&&(n=se.provides=Object.create(s)),n[e]=t}}function ht(e,t,n=!1){const s=se||ue;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&j(t)?t.call(s.proxy):t}}function Fo(e,t){return _n(e,null,t)}function Po(e,t){return _n(e,null,{flush:"post"})}const zt={};function Qt(e,t,n){return _n(e,t,n)}function _n(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=te){const l=$i()===(se==null?void 0:se.scope)?se:null;let c,a=!1,d=!1;if(fe(e)?(c=()=>e.value,a=nn(e)):at(e)?(c=()=>e,s=!0):N(e)?(d=!0,a=e.some(O=>at(O)||nn(O)),c=()=>e.map(O=>{if(fe(O))return O.value;if(at(O))return ct(O);if(j(O))return We(O,l,2)})):j(e)?t?c=()=>We(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return p&&p(),xe(e,l,3,[y])}:c=Oe,t&&s){const O=c;c=()=>ct(O())}let p,y=O=>{p=g.onStop=()=>{We(O,l,4)}},T;if(yt)if(y=Oe,t?n&&xe(t,l,3,[c(),d?[]:void 0,y]):c(),r==="sync"){const O=El();T=O.__watcherHandles||(O.__watcherHandles=[])}else return Oe;let R=d?new Array(e.length).fill(zt):zt;const I=()=>{if(g.active)if(t){const O=g.run();(s||a||(d?O.some((H,K)=>Ft(H,R[K])):Ft(O,R)))&&(p&&p(),xe(t,l,3,[O,R===zt?void 0:d&&R[0]===zt?[]:R,y]),R=O)}else g.run()};I.allowRecurse=!!t;let B;r==="sync"?B=I:r==="post"?B=()=>he(I,l&&l.suspense):(I.pre=!0,l&&(I.id=l.uid),B=()=>pn(I));const g=new ts(c,B);t?n?I():R=g.run():r==="post"?he(g.run.bind(g),l&&l.suspense):g.run();const w=()=>{g.stop(),l&&l.scope&&Zn(l.scope.effects,g)};return T&&T.push(w),w}function Mo(e,t,n){const s=this.proxy,r=ie(e)?e.includes(".")?$r(s,e):()=>s[e]:e.bind(s,s);let i;j(t)?i=t:(i=t.handler,n=t);const o=se;bt(this);const l=_n(r,i.bind(s),n);return o?bt(o):rt(),l}function $r(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{ct(n,t)});else if(dr(e))for(const n in e)ct(e[n],t);return e}function So(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Bt(()=>{e.isMounted=!0}),Dr(()=>{e.isUnmounting=!0}),e}const ye=[Function,Array],Lo={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ye,onEnter:ye,onAfterEnter:ye,onEnterCancelled:ye,onBeforeLeave:ye,onLeave:ye,onAfterLeave:ye,onLeaveCancelled:ye,onBeforeAppear:ye,onAppear:ye,onAfterAppear:ye,onAppearCancelled:ye},setup(e,{slots:t}){const n=hs(),s=So();let r;return()=>{const i=t.default&&Ur(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const I of i)if(I.type!==be){o=I;break}}const l=Y(e),{mode:c}=l;if(s.isLeaving)return Tn(o);const a=Fs(o);if(!a)return Tn(o);const d=Hn(a,l,s,n);Bn(a,d);const p=n.subTree,y=p&&Fs(p);let T=!1;const{getTransitionKey:R}=a.type;if(R){const I=R();r===void 0?r=I:I!==r&&(r=I,T=!0)}if(y&&y.type!==be&&(!et(a,y)||T)){const I=Hn(y,l,s,n);if(Bn(y,I),c==="out-in")return s.isLeaving=!0,I.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},Tn(o);c==="in-out"&&a.type!==be&&(I.delayLeave=(B,g,w)=>{const O=Br(s,y);O[String(y.key)]=y,B._leaveCb=()=>{g(),B._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=w})}return o}}},Hr=Lo;function Br(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Hn(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:p,onLeave:y,onAfterLeave:T,onLeaveCancelled:R,onBeforeAppear:I,onAppear:B,onAfterAppear:g,onAppearCancelled:w}=t,O=String(e.key),H=Br(n,e),K=(A,D)=>{A&&xe(A,s,9,D)},Z=(A,D)=>{const U=D[1];K(A,D),N(A)?A.every(z=>z.length<=1)&&U():A.length<=1&&U()},q={mode:i,persisted:o,beforeEnter(A){let D=l;if(!n.isMounted)if(r)D=I||l;else return;A._leaveCb&&A._leaveCb(!0);const U=H[O];U&&et(e,U)&&U.el._leaveCb&&U.el._leaveCb(),K(D,[A])},enter(A){let D=c,U=a,z=d;if(!n.isMounted)if(r)D=B||c,U=g||a,z=w||d;else return;let F=!1;const k=A._enterCb=M=>{F||(F=!0,M?K(z,[A]):K(U,[A]),q.delayedLeave&&q.delayedLeave(),A._enterCb=void 0)};D?Z(D,[A,k]):k()},leave(A,D){const U=String(e.key);if(A._enterCb&&A._enterCb(!0),n.isUnmounting)return D();K(p,[A]);let z=!1;const F=A._leaveCb=k=>{z||(z=!0,D(),k?K(R,[A]):K(T,[A]),A._leaveCb=void 0,H[U]===e&&delete H[U])};H[U]=e,y?Z(y,[A,F]):F()},clone(A){return Hn(A,t,n,s)}};return q}function Tn(e){if(Ht(e))return e=Ve(e),e.children=null,e}function Fs(e){return Ht(e)?e.children?e.children[0]:void 0:e}function Bn(e,t){e.shapeFlag&6&&e.component?Bn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ur(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;function Rc(e){j(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:i,suspensible:o=!0,onError:l}=e;let c=null,a,d=0;const p=()=>(d++,c=null,y()),y=()=>{let T;return c||(T=c=t().catch(R=>{if(R=R instanceof Error?R:new Error(String(R)),l)return new Promise((I,B)=>{l(R,()=>I(p()),()=>B(R),d+1)});throw R}).then(R=>T!==c&&c?c:(R&&(R.__esModule||R[Symbol.toStringTag]==="Module")&&(R=R.default),a=R,R)))};return cs({name:"AsyncComponentWrapper",__asyncLoader:y,get __asyncResolved(){return a},setup(){const T=se;if(a)return()=>vn(a,T);const R=w=>{c=null,$t(w,T,13,!s)};if(o&&T.suspense||yt)return y().then(w=>()=>vn(w,T)).catch(w=>(R(w),()=>s?re(s,{error:w}):null));const I=Rt(!1),B=Rt(),g=Rt(!!r);return r&&setTimeout(()=>{g.value=!1},r),i!=null&&setTimeout(()=>{if(!I.value&&!B.value){const w=new Error(`Async component timed out after ${i}ms.`);R(w),B.value=w}},i),y().then(()=>{I.value=!0,T.parent&&Ht(T.parent.vnode)&&pn(T.parent.update)}).catch(w=>{R(w),B.value=w}),()=>{if(I.value&&a)return vn(a,T);if(B.value&&s)return re(s,{error:B.value});if(n&&!g.value)return re(n)}}})}function vn(e,t){const{ref:n,props:s,children:r,ce:i}=t.vnode,o=re(e,s,r);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const Ht=e=>e.type.__isKeepAlive;function No(e,t){jr(e,"a",t)}function $o(e,t){jr(e,"da",t)}function jr(e,t,n=se){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(bn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Ht(r.parent.vnode)&&Ho(s,t,n,r),r=r.parent}}function Ho(e,t,n,s){const r=bn(t,e,s,!0);Ut(()=>{Zn(s[t],r)},n)}function bn(e,t,n=se,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;wt(),bt(n);const l=xe(t,n,e,o);return rt(),Ct(),l});return s?r.unshift(i):r.push(i),i}}const He=e=>(t,n=se)=>(!yt||e==="sp")&&bn(e,(...s)=>t(...s),n),Bo=He("bm"),Bt=He("m"),Uo=He("bu"),jo=He("u"),Dr=He("bum"),Ut=He("um"),Do=He("sp"),Ko=He("rtg"),ko=He("rtc");function Wo(e,t=se){bn("ec",e,t)}function Pe(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;ot(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,c=o.length;lcn(t)?!(t.type===be||t.type===de&&!Wr(t.children)):!0)?e:null}function Mc(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Zt(s)]=e[s];return n}const Un=e=>e?ii(e)?ps(e)||e.proxy:Un(e.parent):null,Ot=le(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Un(e.parent),$root:e=>Un(e.root),$emit:e=>e.emit,$options:e=>us(e),$forceUpdate:e=>e.f||(e.f=()=>pn(e.update)),$nextTick:e=>e.n||(e.n=Pr.bind(e.proxy)),$watch:e=>Mo.bind(e)}),An=(e,t)=>e!==te&&!e.__isScriptSetup&&V(e,t),qo={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const T=o[t];if(T!==void 0)switch(T){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(An(s,t))return o[t]=1,s[t];if(r!==te&&V(r,t))return o[t]=2,r[t];if((a=e.propsOptions[0])&&V(a,t))return o[t]=3,i[t];if(n!==te&&V(n,t))return o[t]=4,n[t];jn&&(o[t]=0)}}const d=Ot[t];let p,y;if(d)return t==="$attrs"&&pe(e,"get",t),d(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==te&&V(n,t))return o[t]=4,n[t];if(y=c.config.globalProperties,V(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return An(r,t)?(r[t]=n,!0):s!==te&&V(s,t)?(s[t]=n,!0):V(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==te&&V(e,o)||An(t,o)||(l=i[0])&&V(l,o)||V(s,o)||V(Ot,o)||V(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:V(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let jn=!0;function Vo(e){const t=us(e),n=e.proxy,s=e.ctx;jn=!1,t.beforeCreate&&Ms(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:a,created:d,beforeMount:p,mounted:y,beforeUpdate:T,updated:R,activated:I,deactivated:B,beforeDestroy:g,beforeUnmount:w,destroyed:O,unmounted:H,render:K,renderTracked:Z,renderTriggered:q,errorCaptured:A,serverPrefetch:D,expose:U,inheritAttrs:z,components:F,directives:k,filters:M}=t;if(a&&zo(a,s,null,e.appContext.config.unwrapInjectedRef),o)for(const ne in o){const Q=o[ne];j(Q)&&(s[ne]=Q.bind(n))}if(r){const ne=r.call(n,n);ee(ne)&&(e.data=hn(ne))}if(jn=!0,i)for(const ne in i){const Q=i[ne],ze=j(Q)?Q.bind(n,n):j(Q.get)?Q.get.bind(n,n):Oe,jt=!j(Q)&&j(Q.set)?Q.set.bind(n):Oe,Ye=Te({get:ze,set:jt});Object.defineProperty(s,ne,{enumerable:!0,configurable:!0,get:()=>Ye.value,set:Ie=>Ye.value=Ie})}if(l)for(const ne in l)qr(l[ne],s,n,ne);if(c){const ne=j(c)?c.call(n):c;Reflect.ownKeys(ne).forEach(Q=>{Io(Q,ne[Q])})}d&&Ms(d,e,"c");function J(ne,Q){N(Q)?Q.forEach(ze=>ne(ze.bind(n))):Q&&ne(Q.bind(n))}if(J(Bo,p),J(Bt,y),J(Uo,T),J(jo,R),J(No,I),J($o,B),J(Wo,A),J(ko,Z),J(Ko,q),J(Dr,w),J(Ut,H),J(Do,D),N(U))if(U.length){const ne=e.exposed||(e.exposed={});U.forEach(Q=>{Object.defineProperty(ne,Q,{get:()=>n[Q],set:ze=>n[Q]=ze})})}else e.exposed||(e.exposed={});K&&e.render===Oe&&(e.render=K),z!=null&&(e.inheritAttrs=z),F&&(e.components=F),k&&(e.directives=k)}function zo(e,t,n=Oe,s=!1){N(e)&&(e=Dn(e));for(const r in e){const i=e[r];let o;ee(i)?"default"in i?o=ht(i.from||r,i.default,!0):o=ht(i.from||r):o=ht(i),fe(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function Ms(e,t,n){xe(N(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function qr(e,t,n,s){const r=s.includes(".")?$r(n,s):()=>n[s];if(ie(e)){const i=t[e];j(i)&&Qt(r,i)}else if(j(e))Qt(r,e.bind(n));else if(ee(e))if(N(e))e.forEach(i=>qr(i,t,n,s));else{const i=j(e.handler)?e.handler.bind(n):t[e.handler];j(i)&&Qt(r,i,e)}}function us(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>on(c,a,o,!0)),on(c,t,o)),ee(t)&&i.set(t,c),c}function on(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&on(e,i,n,!0),r&&r.forEach(o=>on(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Yo[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Yo={data:Ss,props:Qe,emits:Qe,methods:Qe,computed:Qe,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:Qe,directives:Qe,watch:Xo,provide:Ss,inject:Jo};function Ss(e,t){return t?e?function(){return le(j(e)?e.call(this,this):e,j(t)?t.call(this,this):t)}:t:e}function Jo(e,t){return Qe(Dn(e),Dn(t))}function Dn(e){if(N(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[y,T]=zr(p,t,!0);le(o,y),T&&l.push(...T)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!c)return ee(e)&&s.set(e,ft),ft;if(N(i))for(let d=0;d-1,T[1]=I<0||R-1||V(T,"default"))&&l.push(p)}}}const a=[o,l];return ee(e)&&s.set(e,a),a}function Ls(e){return e[0]!=="$"}function Ns(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function $s(e,t){return Ns(e)===Ns(t)}function Hs(e,t){return N(t)?t.findIndex(n=>$s(n,e)):j(t)&&$s(t,e)?0:-1}const Yr=e=>e[0]==="_"||e==="$stable",as=e=>N(e)?e.map(ve):[ve(e)],Go=(e,t,n)=>{if(t._n)return t;const s=Eo((...r)=>as(t(...r)),n);return s._c=!1,s},Jr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Yr(r))continue;const i=e[r];if(j(i))t[r]=Go(r,i,s);else if(i!=null){const o=as(i);t[r]=()=>o}}},Xr=(e,t)=>{const n=as(t);e.slots.default=()=>n},el=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Y(t),tn(t,"_",n)):Jr(t,e.slots={})}else e.slots={},t&&Xr(e,t);tn(e.slots,yn,1)},tl=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=te;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(le(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Jr(t,r)),o=t}else t&&(Xr(e,t),o={default:1});if(i)for(const l in r)!Yr(l)&&!(l in o)&&delete r[l]};function Zr(){return{app:null,config:{isNativeTag:vi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let nl=0;function sl(e,t){return function(s,r=null){j(s)||(s=Object.assign({},s)),r!=null&&!ee(r)&&(r=null);const i=Zr(),o=new Set;let l=!1;const c=i.app={_uid:nl++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:Tl,get config(){return i.config},set config(a){},use(a,...d){return o.has(a)||(a&&j(a.install)?(o.add(a),a.install(c,...d)):j(a)&&(o.add(a),a(c,...d))),c},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),c},component(a,d){return d?(i.components[a]=d,c):i.components[a]},directive(a,d){return d?(i.directives[a]=d,c):i.directives[a]},mount(a,d,p){if(!l){const y=re(s,r);return y.appContext=i,d&&t?t(y,a):e(y,a,p),l=!0,c._container=a,a.__vue_app__=c,ps(y.component)||y.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(a,d){return i.provides[a]=d,c}};return c}}function ln(e,t,n,s,r=!1){if(N(e)){e.forEach((y,T)=>ln(y,t&&(N(t)?t[T]:t),n,s,r));return}if(pt(s)&&!r)return;const i=s.shapeFlag&4?ps(s.component)||s.component.proxy:s.el,o=r?null:i,{i:l,r:c}=e,a=t&&t.r,d=l.refs===te?l.refs={}:l.refs,p=l.setupState;if(a!=null&&a!==c&&(ie(a)?(d[a]=null,V(p,a)&&(p[a]=null)):fe(a)&&(a.value=null)),j(c))We(c,l,12,[o,d]);else{const y=ie(c),T=fe(c);if(y||T){const R=()=>{if(e.f){const I=y?V(p,c)?p[c]:d[c]:c.value;r?N(I)&&Zn(I,i):N(I)?I.includes(i)||I.push(i):y?(d[c]=[i],V(p,c)&&(p[c]=d[c])):(c.value=[i],e.k&&(d[e.k]=c.value))}else y?(d[c]=o,V(p,c)&&(p[c]=o)):T&&(c.value=o,e.k&&(d[e.k]=o))};o?(R.id=-1,he(R,n)):R()}}}let Ue=!1;const Yt=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Jt=e=>e.nodeType===8;function rl(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:a}}=e,d=(g,w)=>{if(!w.hasChildNodes()){n(null,g,w),sn(),w._vnode=g;return}Ue=!1,p(w.firstChild,g,null,null,null),sn(),w._vnode=g,Ue&&console.error("Hydration completed but contains mismatches.")},p=(g,w,O,H,K,Z=!1)=>{const q=Jt(g)&&g.data==="[",A=()=>I(g,w,O,H,K,q),{type:D,ref:U,shapeFlag:z,patchFlag:F}=w;let k=g.nodeType;w.el=g,F===-2&&(Z=!1,w.dynamicChildren=null);let M=null;switch(D){case _t:k!==3?w.children===""?(c(w.el=r(""),o(g),g),M=g):M=A():(g.data!==w.children&&(Ue=!0,g.data=w.children),M=i(g));break;case be:k!==8||q?M=A():M=i(g);break;case gt:if(q&&(g=i(g),k=g.nodeType),k===1||k===3){M=g;const ge=!w.children.length;for(let J=0;J{Z=Z||!!w.dynamicChildren;const{type:q,props:A,patchFlag:D,shapeFlag:U,dirs:z}=w,F=q==="input"&&z||q==="option";if(F||D!==-1){if(z&&Pe(w,null,O,"created"),A)if(F||!Z||D&48)for(const M in A)(F&&M.endsWith("value")||Nt(M)&&!vt(M))&&s(g,M,null,A[M],!1,void 0,O);else A.onClick&&s(g,"onClick",null,A.onClick,!1,void 0,O);let k;if((k=A&&A.onVnodeBeforeMount)&&we(k,O,w),z&&Pe(w,null,O,"beforeMount"),((k=A&&A.onVnodeMounted)||z)&&Nr(()=>{k&&we(k,O,w),z&&Pe(w,null,O,"mounted")},H),U&16&&!(A&&(A.innerHTML||A.textContent))){let M=T(g.firstChild,w,g,O,H,K,Z);for(;M;){Ue=!0;const ge=M;M=M.nextSibling,l(ge)}}else U&8&&g.textContent!==w.children&&(Ue=!0,g.textContent=w.children)}return g.nextSibling},T=(g,w,O,H,K,Z,q)=>{q=q||!!w.dynamicChildren;const A=w.children,D=A.length;for(let U=0;U{const{slotScopeIds:q}=w;q&&(K=K?K.concat(q):q);const A=o(g),D=T(i(g),w,A,O,H,K,Z);return D&&Jt(D)&&D.data==="]"?i(w.anchor=D):(Ue=!0,c(w.anchor=a("]"),A,D),D)},I=(g,w,O,H,K,Z)=>{if(Ue=!0,w.el=null,Z){const D=B(g);for(;;){const U=i(g);if(U&&U!==D)l(U);else break}}const q=i(g),A=o(g);return l(g),n(null,w,A,q,O,H,Yt(A),K),q},B=g=>{let w=0;for(;g;)if(g=i(g),g&&Jt(g)&&(g.data==="["&&w++,g.data==="]")){if(w===0)return i(g);w--}return g};return[d,p]}const he=Nr;function il(e){return ol(e,rl)}function ol(e,t){const n=Si();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:a,setElementText:d,parentNode:p,nextSibling:y,setScopeId:T=Oe,insertStaticContent:R}=e,I=(f,u,h,_=null,m=null,x=null,v=!1,C=null,E=!!u.dynamicChildren)=>{if(f===u)return;f&&!et(f,u)&&(_=Dt(f),Ie(f,m,x,!0),f=null),u.patchFlag===-2&&(E=!1,u.dynamicChildren=null);const{type:b,ref:S,shapeFlag:P}=u;switch(b){case _t:B(f,u,h,_);break;case be:g(f,u,h,_);break;case gt:f==null&&w(u,h,_,v);break;case de:F(f,u,h,_,m,x,v,C,E);break;default:P&1?K(f,u,h,_,m,x,v,C,E):P&6?k(f,u,h,_,m,x,v,C,E):(P&64||P&128)&&b.process(f,u,h,_,m,x,v,C,E,ot)}S!=null&&m&&ln(S,f&&f.ref,x,u||f,!u)},B=(f,u,h,_)=>{if(f==null)s(u.el=l(u.children),h,_);else{const m=u.el=f.el;u.children!==f.children&&a(m,u.children)}},g=(f,u,h,_)=>{f==null?s(u.el=c(u.children||""),h,_):u.el=f.el},w=(f,u,h,_)=>{[f.el,f.anchor]=R(f.children,u,h,_,f.el,f.anchor)},O=({el:f,anchor:u},h,_)=>{let m;for(;f&&f!==u;)m=y(f),s(f,h,_),f=m;s(u,h,_)},H=({el:f,anchor:u})=>{let h;for(;f&&f!==u;)h=y(f),r(f),f=h;r(u)},K=(f,u,h,_,m,x,v,C,E)=>{v=v||u.type==="svg",f==null?Z(u,h,_,m,x,v,C,E):D(f,u,m,x,v,C,E)},Z=(f,u,h,_,m,x,v,C)=>{let E,b;const{type:S,props:P,shapeFlag:L,transition:$,dirs:W}=f;if(E=f.el=o(f.type,x,P&&P.is,P),L&8?d(E,f.children):L&16&&A(f.children,E,null,_,m,x&&S!=="foreignObject",v,C),W&&Pe(f,null,_,"created"),q(E,f,f.scopeId,v,_),P){for(const X in P)X!=="value"&&!vt(X)&&i(E,X,null,P[X],x,f.children,_,m,Le);"value"in P&&i(E,"value",null,P.value),(b=P.onVnodeBeforeMount)&&we(b,_,f)}W&&Pe(f,null,_,"beforeMount");const G=(!m||m&&!m.pendingBranch)&&$&&!$.persisted;G&&$.beforeEnter(E),s(E,u,h),((b=P&&P.onVnodeMounted)||G||W)&&he(()=>{b&&we(b,_,f),G&&$.enter(E),W&&Pe(f,null,_,"mounted")},m)},q=(f,u,h,_,m)=>{if(h&&T(f,h),_)for(let x=0;x<_.length;x++)T(f,_[x]);if(m){let x=m.subTree;if(u===x){const v=m.vnode;q(f,v,v.scopeId,v.slotScopeIds,m.parent)}}},A=(f,u,h,_,m,x,v,C,E=0)=>{for(let b=E;b{const C=u.el=f.el;let{patchFlag:E,dynamicChildren:b,dirs:S}=u;E|=f.patchFlag&16;const P=f.props||te,L=u.props||te;let $;h&&Je(h,!1),($=L.onVnodeBeforeUpdate)&&we($,h,u,f),S&&Pe(u,f,h,"beforeUpdate"),h&&Je(h,!0);const W=m&&u.type!=="foreignObject";if(b?U(f.dynamicChildren,b,C,h,_,W,x):v||Q(f,u,C,null,h,_,W,x,!1),E>0){if(E&16)z(C,u,P,L,h,_,m);else if(E&2&&P.class!==L.class&&i(C,"class",null,L.class,m),E&4&&i(C,"style",P.style,L.style,m),E&8){const G=u.dynamicProps;for(let X=0;X{$&&we($,h,u,f),S&&Pe(u,f,h,"updated")},_)},U=(f,u,h,_,m,x,v)=>{for(let C=0;C{if(h!==_){if(h!==te)for(const C in h)!vt(C)&&!(C in _)&&i(f,C,h[C],null,v,u.children,m,x,Le);for(const C in _){if(vt(C))continue;const E=_[C],b=h[C];E!==b&&C!=="value"&&i(f,C,b,E,v,u.children,m,x,Le)}"value"in _&&i(f,"value",h.value,_.value)}},F=(f,u,h,_,m,x,v,C,E)=>{const b=u.el=f?f.el:l(""),S=u.anchor=f?f.anchor:l("");let{patchFlag:P,dynamicChildren:L,slotScopeIds:$}=u;$&&(C=C?C.concat($):$),f==null?(s(b,h,_),s(S,h,_),A(u.children,h,S,m,x,v,C,E)):P>0&&P&64&&L&&f.dynamicChildren?(U(f.dynamicChildren,L,h,m,x,v,C),(u.key!=null||m&&u===m.subTree)&&Qr(f,u,!0)):Q(f,u,h,S,m,x,v,C,E)},k=(f,u,h,_,m,x,v,C,E)=>{u.slotScopeIds=C,f==null?u.shapeFlag&512?m.ctx.activate(u,h,_,v,E):M(u,h,_,m,x,v,E):ge(f,u,E)},M=(f,u,h,_,m,x,v)=>{const C=f.component=gl(f,_,m);if(Ht(f)&&(C.ctx.renderer=ot),ml(C),C.asyncDep){if(m&&m.registerDep(C,J),!f.el){const E=C.subTree=re(be);g(null,E,u,h)}return}J(C,f,u,h,m,x,v)},ge=(f,u,h)=>{const _=u.component=f.component;if(Ao(f,u,h))if(_.asyncDep&&!_.asyncResolved){ne(_,u,h);return}else _.next=u,yo(_.update),_.update();else u.el=f.el,_.vnode=u},J=(f,u,h,_,m,x,v)=>{const C=()=>{if(f.isMounted){let{next:S,bu:P,u:L,parent:$,vnode:W}=f,G=S,X;Je(f,!1),S?(S.el=W.el,ne(f,S,v)):S=W,P&&xn(P),(X=S.props&&S.props.onVnodeBeforeUpdate)&&we(X,$,S,W),Je(f,!0);const oe=En(f),Ee=f.subTree;f.subTree=oe,I(Ee,oe,p(Ee.el),Dt(Ee),f,m,x),S.el=oe.el,G===null&&Ro(f,oe.el),L&&he(L,m),(X=S.props&&S.props.onVnodeUpdated)&&he(()=>we(X,$,S,W),m)}else{let S;const{el:P,props:L}=u,{bm:$,m:W,parent:G}=f,X=pt(u);if(Je(f,!1),$&&xn($),!X&&(S=L&&L.onVnodeBeforeMount)&&we(S,G,u),Je(f,!0),P&&Cn){const oe=()=>{f.subTree=En(f),Cn(P,f.subTree,f,m,null)};X?u.type.__asyncLoader().then(()=>!f.isUnmounted&&oe()):oe()}else{const oe=f.subTree=En(f);I(null,oe,h,_,f,m,x),u.el=oe.el}if(W&&he(W,m),!X&&(S=L&&L.onVnodeMounted)){const oe=u;he(()=>we(S,G,oe),m)}(u.shapeFlag&256||G&&pt(G.vnode)&&G.vnode.shapeFlag&256)&&f.a&&he(f.a,m),f.isMounted=!0,u=h=_=null}},E=f.effect=new ts(C,()=>pn(b),f.scope),b=f.update=()=>E.run();b.id=f.uid,Je(f,!0),b()},ne=(f,u,h)=>{u.component=f;const _=f.vnode.props;f.vnode=u,f.next=null,Qo(f,u.props,_,h),tl(f,u.children,h),wt(),Os(),Ct()},Q=(f,u,h,_,m,x,v,C,E=!1)=>{const b=f&&f.children,S=f?f.shapeFlag:0,P=u.children,{patchFlag:L,shapeFlag:$}=u;if(L>0){if(L&128){jt(b,P,h,_,m,x,v,C,E);return}else if(L&256){ze(b,P,h,_,m,x,v,C,E);return}}$&8?(S&16&&Le(b,m,x),P!==b&&d(h,P)):S&16?$&16?jt(b,P,h,_,m,x,v,C,E):Le(b,m,x,!0):(S&8&&d(h,""),$&16&&A(P,h,_,m,x,v,C,E))},ze=(f,u,h,_,m,x,v,C,E)=>{f=f||ft,u=u||ft;const b=f.length,S=u.length,P=Math.min(b,S);let L;for(L=0;LS?Le(f,m,x,!0,!1,P):A(u,h,_,m,x,v,C,E,P)},jt=(f,u,h,_,m,x,v,C,E)=>{let b=0;const S=u.length;let P=f.length-1,L=S-1;for(;b<=P&&b<=L;){const $=f[b],W=u[b]=E?Ke(u[b]):ve(u[b]);if(et($,W))I($,W,h,null,m,x,v,C,E);else break;b++}for(;b<=P&&b<=L;){const $=f[P],W=u[L]=E?Ke(u[L]):ve(u[L]);if(et($,W))I($,W,h,null,m,x,v,C,E);else break;P--,L--}if(b>P){if(b<=L){const $=L+1,W=$L)for(;b<=P;)Ie(f[b],m,x,!0),b++;else{const $=b,W=b,G=new Map;for(b=W;b<=L;b++){const me=u[b]=E?Ke(u[b]):ve(u[b]);me.key!=null&&G.set(me.key,b)}let X,oe=0;const Ee=L-W+1;let lt=!1,_s=0;const xt=new Array(Ee);for(b=0;b=Ee){Ie(me,m,x,!0);continue}let Fe;if(me.key!=null)Fe=G.get(me.key);else for(X=W;X<=L;X++)if(xt[X-W]===0&&et(me,u[X])){Fe=X;break}Fe===void 0?Ie(me,m,x,!0):(xt[Fe-W]=b+1,Fe>=_s?_s=Fe:lt=!0,I(me,u[Fe],h,null,m,x,v,C,E),oe++)}const bs=lt?ll(xt):ft;for(X=bs.length-1,b=Ee-1;b>=0;b--){const me=W+b,Fe=u[me],ys=me+1{const{el:x,type:v,transition:C,children:E,shapeFlag:b}=f;if(b&6){Ye(f.component.subTree,u,h,_);return}if(b&128){f.suspense.move(u,h,_);return}if(b&64){v.move(f,u,h,ot);return}if(v===de){s(x,u,h);for(let P=0;PC.enter(x),m);else{const{leave:P,delayLeave:L,afterLeave:$}=C,W=()=>s(x,u,h),G=()=>{P(x,()=>{W(),$&&$()})};L?L(x,W,G):G()}else s(x,u,h)},Ie=(f,u,h,_=!1,m=!1)=>{const{type:x,props:v,ref:C,children:E,dynamicChildren:b,shapeFlag:S,patchFlag:P,dirs:L}=f;if(C!=null&&ln(C,null,h,f,!0),S&256){u.ctx.deactivate(f);return}const $=S&1&&L,W=!pt(f);let G;if(W&&(G=v&&v.onVnodeBeforeUnmount)&&we(G,u,f),S&6)bi(f.component,h,_);else{if(S&128){f.suspense.unmount(h,_);return}$&&Pe(f,null,u,"beforeUnmount"),S&64?f.type.remove(f,u,h,m,ot,_):b&&(x!==de||P>0&&P&64)?Le(b,u,h,!1,!0):(x===de&&P&384||!m&&S&16)&&Le(E,u,h),_&&gs(f)}(W&&(G=v&&v.onVnodeUnmounted)||$)&&he(()=>{G&&we(G,u,f),$&&Pe(f,null,u,"unmounted")},h)},gs=f=>{const{type:u,el:h,anchor:_,transition:m}=f;if(u===de){_i(h,_);return}if(u===gt){H(f);return}const x=()=>{r(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(f.shapeFlag&1&&m&&!m.persisted){const{leave:v,delayLeave:C}=m,E=()=>v(h,x);C?C(f.el,x,E):E()}else x()},_i=(f,u)=>{let h;for(;f!==u;)h=y(f),r(f),f=h;r(u)},bi=(f,u,h)=>{const{bum:_,scope:m,update:x,subTree:v,um:C}=f;_&&xn(_),m.stop(),x&&(x.active=!1,Ie(v,f,u,h)),C&&he(C,u),he(()=>{f.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Le=(f,u,h,_=!1,m=!1,x=0)=>{for(let v=x;vf.shapeFlag&6?Dt(f.component.subTree):f.shapeFlag&128?f.suspense.next():y(f.anchor||f.el),ms=(f,u,h)=>{f==null?u._vnode&&Ie(u._vnode,null,null,!0):I(u._vnode||null,f,u,null,null,null,h),Os(),sn(),u._vnode=f},ot={p:I,um:Ie,m:Ye,r:gs,mt:M,mc:A,pc:Q,pbc:U,n:Dt,o:e};let wn,Cn;return t&&([wn,Cn]=t(ot)),{render:ms,hydrate:wn,createApp:sl(ms,wn)}}function Je({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Qr(e,t,n=!1){const s=e.children,r=t.children;if(N(s)&&N(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const cl=e=>e.__isTeleport,de=Symbol(void 0),_t=Symbol(void 0),be=Symbol(void 0),gt=Symbol(void 0),It=[];let Re=null;function Gr(e=!1){It.push(Re=e?null:[])}function fl(){It.pop(),Re=It[It.length-1]||null}let Lt=1;function Bs(e){Lt+=e}function ei(e){return e.dynamicChildren=Lt>0?Re||ft:null,fl(),Lt>0&&Re&&Re.push(e),e}function Sc(e,t,n,s,r,i){return ei(si(e,t,n,s,r,i,!0))}function ti(e,t,n,s,r){return ei(re(e,t,n,s,r,!0))}function cn(e){return e?e.__v_isVNode===!0:!1}function et(e,t){return e.type===t.type&&e.key===t.key}const yn="__vInternal",ni=({key:e})=>e??null,Gt=({ref:e,ref_key:t,ref_for:n})=>e!=null?ie(e)||fe(e)||j(e)?{i:ue,r:e,k:t,f:!!n}:e:null;function si(e,t=null,n=null,s=0,r=null,i=e===de?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ni(t),ref:t&&Gt(t),scopeId:mn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ue};return l?(ds(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ie(n)?8:16),Lt>0&&!o&&Re&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Re.push(c),c}const re=ul;function ul(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Kr)&&(e=be),cn(e)){const l=Ve(e,t,!0);return n&&ds(l,n),Lt>0&&!i&&Re&&(l.shapeFlag&6?Re[Re.indexOf(e)]=l:Re.push(l)),l.patchFlag|=-2,l}if(wl(e)&&(e=e.__vccOpts),t){t=al(t);let{class:l,style:c}=t;l&&!ie(l)&&(t.class=Jn(l)),ee(c)&&(Tr(c)&&!N(c)&&(c=le({},c)),t.style=Yn(c))}const o=ie(e)?1:Oo(e)?128:cl(e)?64:ee(e)?4:j(e)?2:0;return si(e,t,n,s,r,o,i,!0)}function al(e){return e?Tr(e)||yn in e?le({},e):e:null}function Ve(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,l=t?dl(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ni(l),ref:t&&t.ref?n&&r?N(r)?r.concat(Gt(t)):[r,Gt(t)]:Gt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==de?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ve(e.ssContent),ssFallback:e.ssFallback&&Ve(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ri(e=" ",t=0){return re(_t,null,e,t)}function Lc(e,t){const n=re(gt,null,e);return n.staticCount=t,n}function Nc(e="",t=!1){return t?(Gr(),ti(be,null,e)):re(be,null,e)}function ve(e){return e==null||typeof e=="boolean"?re(be):N(e)?re(de,null,e.slice()):typeof e=="object"?Ke(e):re(_t,null,String(e))}function Ke(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ve(e)}function ds(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),ds(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(yn in t)?t._ctx=ue:r===3&&ue&&(ue.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else j(t)?(t={default:t,_ctx:ue},n=32):(t=String(t),s&64?(n=16,t=[ri(t)]):n=8);e.children=t,e.shapeFlag|=n}function dl(...e){const t={};for(let n=0;nse||ue,bt=e=>{se=e,e.scope.on()},rt=()=>{se&&se.scope.off(),se=null};function ii(e){return e.vnode.shapeFlag&4}let yt=!1;function ml(e,t=!1){yt=t;const{props:n,children:s}=e.vnode,r=ii(e);Zo(e,n,r,t),el(e,s);const i=r?_l(e,t):void 0;return yt=!1,i}function _l(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=At(new Proxy(e.ctx,qo));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?li(e):null;bt(e),wt();const i=We(s,e,0,[e.props,r]);if(Ct(),rt(),ur(i)){if(i.then(rt,rt),t)return i.then(o=>{Us(e,o,t)}).catch(o=>{$t(o,e,0)});e.asyncDep=i}else Us(e,i,t)}else oi(e,t)}function Us(e,t,n){j(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=Or(t)),oi(e,n)}let js;function oi(e,t,n){const s=e.type;if(!e.render){if(!t&&js&&!s.render){const r=s.template||us(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,a=le(le({isCustomElement:i,delimiters:l},o),c);s.render=js(r,a)}}e.render=s.render||Oe}bt(e),wt(),Vo(e),Ct(),rt()}function bl(e){return new Proxy(e.attrs,{get(t,n){return pe(e,"get","$attrs"),t[n]}})}function li(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=bl(e))},slots:e.slots,emit:e.emit,expose:t}}function ps(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Or(At(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ot)return Ot[n](e)},has(t,n){return n in t||n in Ot}}))}function yl(e,t=!0){return j(e)?e.displayName||e.name:e.name||t&&e.__name}function wl(e){return j(e)&&"__vccOpts"in e}const Te=(e,t)=>mo(e,t,yt);function $c(){return Cl().slots}function Cl(){const e=hs();return e.setupContext||(e.setupContext=li(e))}function kn(e,t,n){const s=arguments.length;return s===2?ee(t)&&!N(t)?cn(t)?re(e,null,[t]):re(e,t):re(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&cn(n)&&(n=[n]),re(e,t,n))}const xl=Symbol(""),El=()=>ht(xl),Tl="3.2.47",vl="http://www.w3.org/2000/svg",tt=typeof document<"u"?document:null,Ds=tt&&tt.createElement("template"),Al={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?tt.createElementNS(vl,e):tt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>tt.createTextNode(e),createComment:e=>tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ds.innerHTML=s?`${e}`:e;const l=Ds.content;if(s){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Rl(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ol(e,t,n){const s=e.style,r=ie(n);if(n&&!r){if(t&&!ie(t))for(const i in t)n[i]==null&&Wn(s,i,"");for(const i in n)Wn(s,i,n[i])}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const Ks=/\s*!important$/;function Wn(e,t,n){if(N(n))n.forEach(s=>Wn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Il(e,t);Ks.test(n)?e.setProperty(it(s),n.replace(Ks,""),"important"):e[s]=n}}const ks=["Webkit","Moz","ms"],Rn={};function Il(e,t){const n=Rn[t];if(n)return n;let s=Se(t);if(s!=="filter"&&s in e)return Rn[t]=s;s=an(s);for(let r=0;rOn||($l.then(()=>On=0),On=Date.now());function Bl(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;xe(Ul(s,n.value),t,5,[s])};return n.value=e,n.attached=Hl(),n}function Ul(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Vs=/^on[a-z]/,jl=(e,t,n,s,r=!1,i,o,l,c)=>{t==="class"?Rl(e,s,r):t==="style"?Ol(e,n,s):Nt(t)?Xn(t)||Ll(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Dl(e,t,s,r))?Pl(e,t,s,i,o,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Fl(e,t,s,r))};function Dl(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Vs.test(t)&&j(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Vs.test(t)&&ie(n)?!1:t in e}function Hc(e){const t=hs();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Vn(i,r))},s=()=>{const r=e(t.proxy);qn(t.subTree,r),n(r)};Po(s),Bt(()=>{const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),Ut(()=>r.disconnect())})}function qn(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{qn(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Vn(e.el,t);else if(e.type===de)e.children.forEach(n=>qn(n,t));else if(e.type===gt){let{el:n,anchor:s}=e;for(;n&&(Vn(n,t),n!==s);)n=n.nextSibling}}function Vn(e,t){if(e.nodeType===1){const n=e.style;for(const s in t)n.setProperty(`--${s}`,t[s])}}const je="transition",Et="animation",ci=(e,{slots:t})=>kn(Hr,Kl(e),t);ci.displayName="Transition";const fi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ci.props=le({},Hr.props,fi);const Xe=(e,t=[])=>{N(e)?e.forEach(n=>n(...t)):e&&e(...t)},zs=e=>e?N(e)?e.some(t=>t.length>1):e.length>1:!1;function Kl(e){const t={};for(const F in e)F in fi||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:a=o,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:T=`${n}-leave-to`}=e,R=kl(r),I=R&&R[0],B=R&&R[1],{onBeforeEnter:g,onEnter:w,onEnterCancelled:O,onLeave:H,onLeaveCancelled:K,onBeforeAppear:Z=g,onAppear:q=w,onAppearCancelled:A=O}=t,D=(F,k,M)=>{Ze(F,k?d:l),Ze(F,k?a:o),M&&M()},U=(F,k)=>{F._isLeaving=!1,Ze(F,p),Ze(F,T),Ze(F,y),k&&k()},z=F=>(k,M)=>{const ge=F?q:w,J=()=>D(k,F,M);Xe(ge,[k,J]),Ys(()=>{Ze(k,F?c:i),De(k,F?d:l),zs(ge)||Js(k,s,I,J)})};return le(t,{onBeforeEnter(F){Xe(g,[F]),De(F,i),De(F,o)},onBeforeAppear(F){Xe(Z,[F]),De(F,c),De(F,a)},onEnter:z(!1),onAppear:z(!0),onLeave(F,k){F._isLeaving=!0;const M=()=>U(F,k);De(F,p),Vl(),De(F,y),Ys(()=>{F._isLeaving&&(Ze(F,p),De(F,T),zs(H)||Js(F,s,B,M))}),Xe(H,[F,M])},onEnterCancelled(F){D(F,!1),Xe(O,[F])},onAppearCancelled(F){D(F,!0),Xe(A,[F])},onLeaveCancelled(F){U(F),Xe(K,[F])}})}function kl(e){if(e==null)return null;if(ee(e))return[In(e.enter),In(e.leave)];{const t=In(e);return[t,t]}}function In(e){return Mi(e)}function De(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ze(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Ys(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Wl=0;function Js(e,t,n,s){const r=e._endId=++Wl,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=ql(e,t);if(!o)return s();const a=o+"end";let d=0;const p=()=>{e.removeEventListener(a,y),i()},y=T=>{T.target===e&&++d>=c&&p()};setTimeout(()=>{d(n[R]||"").split(", "),r=s(`${je}Delay`),i=s(`${je}Duration`),o=Xs(r,i),l=s(`${Et}Delay`),c=s(`${Et}Duration`),a=Xs(l,c);let d=null,p=0,y=0;t===je?o>0&&(d=je,p=o,y=i.length):t===Et?a>0&&(d=Et,p=a,y=c.length):(p=Math.max(o,a),d=p>0?o>a?je:Et:null,y=d?d===je?i.length:c.length:0);const T=d===je&&/\b(transform|all)(,|$)/.test(s(`${je}Property`).toString());return{type:d,timeout:p,propCount:y,hasTransform:T}}function Xs(e,t){for(;e.lengthZs(n)+Zs(e[s])))}function Zs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Vl(){return document.body.offsetHeight}const zl=["ctrl","shift","alt","meta"],Yl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>zl.some(n=>e[`${n}Key`]&&!t.includes(n))},Bc=(e,t)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=it(n.key);if(t.some(r=>r===s||Jl[r]===s))return e(n)},Xl=le({patchProp:jl},Al);let Fn,Qs=!1;function Zl(){return Fn=Qs?Fn:il(Xl),Qs=!0,Fn}const jc=(...e)=>{const t=Zl().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ql(s);if(r)return n(r,!0,r instanceof SVGElement)},t};function Ql(e){return ie(e)?document.querySelector(e):e}const Dc=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Gl="modulepreload",ec=function(e){return"/"+e},Gs={},Kc=function(t,n,s){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=ec(i),i in Gs)return;Gs[i]=!0;const o=i.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!s)for(let d=r.length-1;d>=0;d--){const p=r[d];if(p.href===i&&(!o||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const a=document.createElement("link");if(a.rel=o?"stylesheet":Gl,o||(a.as="script",a.crossOrigin=""),a.href=i,document.head.appendChild(a),o)return new Promise((d,p)=>{a.addEventListener("load",d),a.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},tc=window.__VP_SITE_DATA__,ui=/^[a-z]+:/i,kc=/^pathname:\/\//,Wc="vitepress-theme-appearance",ai=/#.*$/,nc=/(index)?\.(md|html)$/,Ce=typeof document<"u",di={relativePath:"",title:"404",description:"Not Found",headers:[],frontmatter:{sidebar:!1,layout:"page"},lastUpdated:0,isNotFound:!0};function sc(e,t,n=!1){if(t===void 0)return!1;if(e=er(`/${e}`),n)return new RegExp(t).test(e);if(er(t)!==e)return!1;const s=t.match(ai);return s?(Ce?location.hash:"")===s[0]:!0}function er(e){return decodeURI(e).replace(ai,"").replace(nc,"")}function rc(e){return ui.test(e)}function ic(e,t){var s,r,i,o,l,c,a;const n=Object.keys(e.locales).find(d=>d!=="root"&&!rc(d)&&sc(t,`/${d}/`,!0))||"root";return Object.assign({},e,{localeIndex:n,lang:((s=e.locales[n])==null?void 0:s.lang)??e.lang,dir:((r=e.locales[n])==null?void 0:r.dir)??e.dir,title:((i=e.locales[n])==null?void 0:i.title)??e.title,titleTemplate:((o=e.locales[n])==null?void 0:o.titleTemplate)??e.titleTemplate,description:((l=e.locales[n])==null?void 0:l.description)??e.description,head:pi(e.head,((c=e.locales[n])==null?void 0:c.head)??[]),themeConfig:{...e.themeConfig,...(a=e.locales[n])==null?void 0:a.themeConfig}})}function hi(e,t){const n=t.title||e.title,s=t.titleTemplate??e.titleTemplate;if(typeof s=="string"&&s.includes(":title"))return s.replace(/:title/g,n);const r=oc(e.title,s);return`${n}${r}`}function oc(e,t){return t===!1?"":t===!0||t===void 0?` | ${e}`:e===t?"":` | ${t}`}function lc(e,t){const[n,s]=t;if(n!=="meta")return!1;const r=Object.entries(s)[0];return r==null?!1:e.some(([i,o])=>i===n&&o[r[0]]===r[1])}function pi(e,t){return[...e.filter(n=>!lc(t,n)),...t]}const cc=/[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g,fc=/^[a-z]:/i;function tr(e){const t=fc.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(cc,"_").replace(/(^|\/)_+(?=[^/]*$)/,"$1")}const uc=Symbol(),nt=uo(tc);function qc(e){const t=Te(()=>ic(nt.value,e.data.relativePath));return{site:t,theme:Te(()=>t.value.themeConfig),page:Te(()=>e.data),frontmatter:Te(()=>e.data.frontmatter),params:Te(()=>e.data.params),lang:Te(()=>t.value.lang),dir:Te(()=>t.value.dir),localeIndex:Te(()=>t.value.localeIndex||"root"),title:Te(()=>hi(t.value,e.data)),description:Te(()=>e.data.description||t.value.description),isDark:Rt(!1)}}function Vc(){const e=ht(uc);if(!e)throw new Error("vitepress data not properly injected in app");return e}function ac(e,t){return`${e}${t}`.replace(/\/+/g,"/")}function nr(e){return ui.test(e)||e.startsWith(".")?e:ac(nt.value.base,e)}function dc(e){let t=e.replace(/\.html$/,"");if(t=decodeURIComponent(t),t=t.replace(/\/$/,"/index"),Ce){const n="/";t=tr(t.slice(n.length).replace(/\//g,"_")||"index")+".md";let s=__VP_HASH_MAP__[t.toLowerCase()];s||(t=t.endsWith("_index.md")?t.slice(0,-9)+".md":t.slice(0,-3)+"_index.md",s=__VP_HASH_MAP__[t.toLowerCase()]),t=`${n}assets/${t}.${s}.js`}else t=`./${tr(t.slice(1).replace(/\//g,"_"))}.md.js`;return t}let en=[];function zc(e){en.push(e),Ut(()=>{en=en.filter(t=>t!==e)})}const hc=Symbol(),sr="http://a.com",pc=()=>({path:"/",component:null,data:di});function Yc(e,t){const n=hn(pc()),s={route:n,go:r};async function r(l=Ce?location.href:"/"){var a,d;await((a=s.onBeforeRouteChange)==null?void 0:a.call(s,l));const c=new URL(l,sr);nt.value.cleanUrls||!c.pathname.endsWith("/")&&!c.pathname.endsWith(".html")&&(c.pathname+=".html",l=c.pathname+c.search+c.hash),Ce&&l!==location.href&&(history.replaceState({scrollPosition:window.scrollY},document.title),history.pushState(null,"",l)),await o(l),await((d=s.onAfterRouteChanged)==null?void 0:d.call(s,l))}let i=null;async function o(l,c=0,a=!1){const d=new URL(l,sr),p=i=d.pathname;try{let y=await e(p);if(i===p){i=null;const{default:T,__pageData:R}=y;if(!T)throw new Error(`Invalid route component: ${T}`);n.path=Ce?p:nr(p),n.component=At(T),n.data=At(R),Ce&&Pr(()=>{let I=nt.value.base+R.relativePath.replace(/(?:(^|\/)index)?\.md$/,"$1");if(!nt.value.cleanUrls&&!I.endsWith("/")&&(I+=".html"),I!==d.pathname&&(d.pathname=I,l=I+d.search+d.hash,history.replaceState(null,"",l)),d.hash&&!c){let B=null;try{B=document.querySelector(decodeURIComponent(d.hash))}catch(g){console.warn(g)}if(B){rr(B,d.hash);return}}window.scrollTo(0,c)})}}catch(y){if(!/fetch/.test(y.message)&&!/^\/404(\.html|\/)?$/.test(l)&&console.error(y),!a)try{const T=await fetch(nt.value.base+"hashmap.json");window.__VP_HASH_MAP__=await T.json(),await o(l,c,!0);return}catch{}i===p&&(i=null,n.path=Ce?p:nr(p),n.component=t?At(t):null,n.data=di)}}return Ce&&(window.addEventListener("click",l=>{if(l.target.closest("button"))return;const a=l.target.closest("a");if(a&&!a.closest(".vp-raw")&&(a instanceof SVGElement||!a.download)){const{target:d}=a,{href:p,origin:y,pathname:T,hash:R,search:I}=new URL(a.href instanceof SVGAnimatedString?a.href.animVal:a.href,a.baseURI),B=window.location,g=T.match(/\.\w+$/);!l.ctrlKey&&!l.shiftKey&&!l.altKey&&!l.metaKey&&d!=="_blank"&&y===B.origin&&!(g&&g[0]!==".html")&&(l.preventDefault(),T===B.pathname&&I===B.search?R&&R!==B.hash&&(history.pushState(null,"",R),window.dispatchEvent(new Event("hashchange")),rr(a,R,a.classList.contains("header-anchor"))):r(p))}},{capture:!0}),window.addEventListener("popstate",l=>{o(location.href,l.state&&l.state.scrollPosition||0)}),window.addEventListener("hashchange",l=>{l.preventDefault()})),s}function gc(){const e=ht(hc);if(!e)throw new Error("useRouter() is called without provider.");return e}function gi(){return gc().route}function rr(e,t,n=!1){let s=null;try{s=e.classList.contains("header-anchor")?e:document.querySelector(decodeURIComponent(t))}catch(r){console.warn(r)}if(s){const r=nt.value.scrollOffset;let i=0;if(typeof r=="number")i=r;else if(typeof r=="string")i=ir(r);else if(Array.isArray(r))for(const c of r){const a=ir(c);if(a){i=a;break}}const o=parseInt(window.getComputedStyle(s).paddingTop,10),l=window.scrollY+s.getBoundingClientRect().top-i+o;!n||Math.abs(l-window.scrollY)>window.innerHeight?window.scrollTo(0,l):window.scrollTo({left:0,top:l,behavior:"smooth"})}}function ir(e){const t=document.querySelector(e);if(!t)return 0;const n=t.getBoundingClientRect().bottom;return n<0?0:n+24}const or=()=>en.forEach(e=>e()),Jc=cs({name:"VitePressContent",props:{as:{type:[Object,String],default:"div"}},setup(e){const t=gi();return()=>kn(e.as,{style:{position:"relative"}},[t.component?kn(t.component,{onVnodeMounted:or,onVnodeUpdated:or}):"404 Page Not Found"])}});function Xc(e,t){let n=[],s=!0;const r=i=>{if(s){s=!1;return}n.forEach(o=>document.head.removeChild(o)),n=[],i.forEach(o=>{const l=mc(o);document.head.appendChild(l),n.push(l)})};Fo(()=>{const i=e.data,o=t.value,l=i&&i.description,c=i&&i.frontmatter.head||[];document.title=hi(o,i),document.querySelector("meta[name=description]").setAttribute("content",l||o.description),r(pi(o.head,bc(c)))})}function mc([e,t,n]){const s=document.createElement(e);for(const r in t)s.setAttribute(r,t[r]);return n&&(s.innerHTML=n),s}function _c(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function bc(e){return e.filter(t=>!_c(t))}const Pn=new Set,mi=()=>document.createElement("link"),yc=e=>{const t=mi();t.rel="prefetch",t.href=e,document.head.appendChild(t)},wc=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let Xt;const Cc=Ce&&(Xt=mi())&&Xt.relList&&Xt.relList.supports&&Xt.relList.supports("prefetch")?yc:wc;function Zc(){if(!Ce||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const s=()=>{n&&n.disconnect(),n=new IntersectionObserver(i=>{i.forEach(o=>{if(o.isIntersecting){const l=o.target;n.unobserve(l);const{pathname:c}=l;if(!Pn.has(c)){Pn.add(c);const a=dc(c);Cc(a)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(i=>{const{target:o}=i,{hostname:l,pathname:c}=new URL(i.href instanceof SVGAnimatedString?i.href.animVal:i.href,i.baseURI),a=c.match(/\.\w+$/);a&&a[0]!==".html"||o!=="_blank"&&l===location.hostname&&(c!==location.pathname?n.observe(i):Pn.add(c))})})};Bt(s);const r=gi();Qt(()=>r.path,s),Ut(()=>{n&&n.disconnect()})}const Qc=cs({setup(e,{slots:t}){const n=Rt(!1);return Bt(()=>{n.value=!0}),()=>n.value&&t.default?t.default():null}});function Gc(){if(Ce){const e=new Map;window.addEventListener("click",t=>{var s;const n=t.target;if(n.matches('div[class*="language-"] > button.copy')){const r=n.parentElement,i=(s=n.nextElementSibling)==null?void 0:s.nextElementSibling;if(!r||!i)return;const o=/language-(shellscript|shell|bash|sh|zsh)/.test(r.className);let l="";i.querySelectorAll("span.line:not(.diff.remove)").forEach(c=>l+=(c.textContent||"")+` -`),l=l.slice(0,-1),o&&(l=l.replace(/^ *(\$|>) /gm,"").trim()),xc(l).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const c=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,c)})}})}}async function xc(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const s=document.getSelection(),r=s?s.rangeCount>0&&s.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),r&&(s.removeAllRanges(),s.addRange(r)),n&&n.focus()}}function ef(){Ce&&window.addEventListener("click",e=>{var n,s;const t=e.target;if(t.matches(".vp-code-group input")){const r=(n=t.parentElement)==null?void 0:n.parentElement,i=Array.from((r==null?void 0:r.querySelectorAll("input"))||[]).indexOf(t),o=r==null?void 0:r.querySelector('div[class*="language-"].active'),l=(s=r==null?void 0:r.querySelectorAll('div[class*="language-"]:not(.language-id)'))==null?void 0:s[i];o&&l&&o!==l&&(o.classList.remove("active"),l.classList.add("active"))}})}export{Mc as $,Nc as A,dl as B,re as C,Oc as D,Rc as E,de as F,Hc as G,Kc as H,Ic as I,ui as J,Ce as K,Er as L,Fc as M,vc as N,Ac as O,kc as P,Lc as Q,Wc as R,ht as S,ci as T,Io as U,jo as V,zc as W,uo as X,Yn as Y,Uc as Z,Dc as _,ri as a,Po as a0,Bc as a1,$c as a2,Xc as a3,Zc as a4,Gc as a5,ef as a6,kn as a7,hc as a8,qc as a9,uc as aa,Jc as ab,Qc as ac,nt as ad,jc as ae,Yc as af,dc as ag,gc as ah,ho as b,Sc as c,cs as d,Te as e,Rt as f,hs as g,Bt as h,Pr as i,$i as j,Tc as k,Fo as l,rc as m,Jn as n,Gr as o,nr as p,sc as q,Pc as r,gi as s,Ec as t,Vc as u,Ut as v,Qt as w,si as x,ti as y,Eo as z}; diff --git a/docs/assets/chunks/framework.bdd825cc.js b/docs/assets/chunks/framework.bdd825cc.js new file mode 100644 index 0000000..9712ebc --- /dev/null +++ b/docs/assets/chunks/framework.bdd825cc.js @@ -0,0 +1,2 @@ +function qn(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}function Vn(e){if(N(e)){const t={};for(let n=0;n{if(n){const s=n.split(bi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function zn(e){let t="";if(ie(e))t=e;else if(N(e))for(let n=0;nie(e)?e:e==null?"":N(e)||ee(e)&&(e.toString===ur||!B(e.toString))?JSON.stringify(e,lr,2):String(e),lr=(e,t)=>t&&t.__v_isRef?lr(e,t.value):ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:cr(t)?{[`Set(${t.size})`]:[...t.values()]}:ee(t)&&!N(t)&&!ar(t)?String(t):t,te={},ft=[],Ie=()=>{},Ei=()=>!1,vi=/^on[^a-z]/,Nt=e=>vi.test(e),Yn=e=>e.startsWith("onUpdate:"),ce=Object.assign,Jn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ti=Object.prototype.hasOwnProperty,V=(e,t)=>Ti.call(e,t),N=Array.isArray,ut=e=>cn(e)==="[object Map]",cr=e=>cn(e)==="[object Set]",B=e=>typeof e=="function",ie=e=>typeof e=="string",Xn=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",fr=e=>ee(e)&&B(e.then)&&B(e.catch),ur=Object.prototype.toString,cn=e=>ur.call(e),Ai=e=>cn(e).slice(8,-1),ar=e=>cn(e)==="[object Object]",Zn=e=>ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vt=qn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ri=/-(\w)/g,Se=fn(e=>e.replace(Ri,(t,n)=>n?n.toUpperCase():"")),Ii=/\B([A-Z])/g,it=fn(e=>e.replace(Ii,"-$1").toLowerCase()),un=fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Jt=fn(e=>e?`on${un(e)}`:""),Pt=(e,t)=>!Object.is(e,t),En=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Oi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Pi=e=>{const t=ie(e)?Number(e):NaN;return isNaN(t)?e:t};let ys;const Fi=()=>ys||(ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let _e;class Mi{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=_e,!t&&_e&&(this.index=(_e.scopes||(_e.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=_e;try{return _e=this,t()}finally{_e=n}}}on(){_e=this}off(){_e=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},dr=e=>(e.w&qe)>0,hr=e=>(e.n&qe)>0,Ni=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(d==="length"||d>=c)&&l.push(a)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":N(e)?Zn(n)&&l.push(o.get("length")):(l.push(o.get(st)),ut(e)&&l.push(o.get(Ln)));break;case"delete":N(e)||(l.push(o.get(st)),ut(e)&&l.push(o.get(Ln)));break;case"set":ut(e)&&l.push(o.get(st));break}if(l.length===1)l[0]&&Nn(l[0]);else{const c=[];for(const a of l)a&&c.push(...a);Nn(Qn(c))}}function Nn(e,t){const n=N(e)?e:[...e];for(const s of n)s.computed&&Cs(s);for(const s of n)s.computed||Cs(s)}function Cs(e,t){(e!==Ae||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Hi(e,t){var n;return(n=en.get(e))===null||n===void 0?void 0:n.get(t)}const ji=qn("__proto__,__v_isRef,__isVue"),mr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xn)),Ui=es(),Bi=es(!1,!0),Di=es(!0),xs=Ki();function Ki(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=z(this);for(let i=0,o=this.length;i{e[t]=function(...n){yt();const s=z(this)[t].apply(this,n);return wt(),s}}),e}function ki(e){const t=z(this);return pe(t,"has",e),t.hasOwnProperty(e)}function es(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?io:Cr:t?wr:yr).get(s))return s;const o=N(s);if(!e){if(o&&V(xs,r))return Reflect.get(xs,r,i);if(r==="hasOwnProperty")return ki}const l=Reflect.get(s,r,i);return(Xn(r)?mr.has(r):ji(r))||(e||pe(s,"get",r),t)?l:le(l)?o&&Zn(r)?l:l.value:ee(l)?e?xr(l):dn(l):l}}const Wi=_r(),qi=_r(!0);function _r(e=!1){return function(n,s,r,i){let o=n[s];if(gt(o)&&le(o)&&!le(r))return!1;if(!e&&(!tn(r)&&!gt(r)&&(o=z(o),r=z(r)),!N(n)&&le(o)&&!le(r)))return o.value=r,!0;const l=N(n)&&Zn(s)?Number(s)e,an=e=>Reflect.getPrototypeOf(e);function Bt(e,t,n=!1,s=!1){e=e.__v_raw;const r=z(e),i=z(t);n||(t!==i&&pe(r,"get",t),pe(r,"get",i));const{has:o}=an(r),l=s?ts:n?rs:Ft;if(o.call(r,t))return l(e.get(t));if(o.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Dt(e,t=!1){const n=this.__v_raw,s=z(n),r=z(e);return t||(e!==r&&pe(s,"has",e),pe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Kt(e,t=!1){return e=e.__v_raw,!t&&pe(z(e),"iterate",st),Reflect.get(e,"size",e)}function Es(e){e=z(e);const t=z(this);return an(t).has.call(t,e)||(t.add(e),$e(t,"add",e,e)),this}function vs(e,t){t=z(t);const n=z(this),{has:s,get:r}=an(n);let i=s.call(n,e);i||(e=z(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?Pt(t,o)&&$e(n,"set",e,t):$e(n,"add",e,t),this}function Ts(e){const t=z(this),{has:n,get:s}=an(t);let r=n.call(t,e);r||(e=z(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&$e(t,"delete",e,void 0),i}function As(){const e=z(this),t=e.size!==0,n=e.clear();return t&&$e(e,"clear",void 0,void 0),n}function kt(e,t){return function(s,r){const i=this,o=i.__v_raw,l=z(o),c=t?ts:e?rs:Ft;return!e&&pe(l,"iterate",st),o.forEach((a,d)=>s.call(r,c(a),c(d),i))}}function Wt(e,t,n){return function(...s){const r=this.__v_raw,i=z(r),o=ut(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,a=r[e](...s),d=n?ts:t?rs:Ft;return!t&&pe(i,"iterate",c?Ln:st),{next(){const{value:p,done:y}=a.next();return y?{value:p,done:y}:{value:l?[d(p[0]),d(p[1])]:d(p),done:y}},[Symbol.iterator](){return this}}}}function je(e){return function(...t){return e==="delete"?!1:this}}function Zi(){const e={get(i){return Bt(this,i)},get size(){return Kt(this)},has:Dt,add:Es,set:vs,delete:Ts,clear:As,forEach:kt(!1,!1)},t={get(i){return Bt(this,i,!1,!0)},get size(){return Kt(this)},has:Dt,add:Es,set:vs,delete:Ts,clear:As,forEach:kt(!1,!0)},n={get(i){return Bt(this,i,!0)},get size(){return Kt(this,!0)},has(i){return Dt.call(this,i,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:kt(!0,!1)},s={get(i){return Bt(this,i,!0,!0)},get size(){return Kt(this,!0)},has(i){return Dt.call(this,i,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:kt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Wt(i,!1,!1),n[i]=Wt(i,!0,!1),t[i]=Wt(i,!1,!0),s[i]=Wt(i,!0,!0)}),[e,n,t,s]}const[Qi,Gi,eo,to]=Zi();function ns(e,t){const n=t?e?to:eo:e?Gi:Qi;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(V(n,r)&&r in s?n:s,r,i)}const no={get:ns(!1,!1)},so={get:ns(!1,!0)},ro={get:ns(!0,!1)},yr=new WeakMap,wr=new WeakMap,Cr=new WeakMap,io=new WeakMap;function oo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function lo(e){return e.__v_skip||!Object.isExtensible(e)?0:oo(Ai(e))}function dn(e){return gt(e)?e:ss(e,!1,br,no,yr)}function co(e){return ss(e,!1,Xi,so,wr)}function xr(e){return ss(e,!0,Ji,ro,Cr)}function ss(e,t,n,s,r){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=lo(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function at(e){return gt(e)?at(e.__v_raw):!!(e&&e.__v_isReactive)}function gt(e){return!!(e&&e.__v_isReadonly)}function tn(e){return!!(e&&e.__v_isShallow)}function Er(e){return at(e)||gt(e)}function z(e){const t=e&&e.__v_raw;return t?z(t):e}function Tt(e){return Gt(e,"__v_skip",!0),e}const Ft=e=>ee(e)?dn(e):e,rs=e=>ee(e)?xr(e):e;function is(e){ke&&Ae&&(e=z(e),gr(e.dep||(e.dep=Qn())))}function os(e,t){e=z(e);const n=e.dep;n&&Nn(n)}function le(e){return!!(e&&e.__v_isRef===!0)}function At(e){return vr(e,!1)}function fo(e){return vr(e,!0)}function vr(e,t){return le(e)?e:new uo(e,t)}class uo{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:z(t),this._value=n?t:Ft(t)}get value(){return is(this),this._value}set value(t){const n=this.__v_isShallow||tn(t)||gt(t);t=n?t:z(t),Pt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ft(t),os(this))}}function ao(e){return le(e)?e.value:e}const ho={get:(e,t,n)=>ao(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return le(r)&&!le(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Tr(e){return at(e)?e:new Proxy(e,ho)}class po{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>is(this),()=>os(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function Tc(e){return new po(e)}class go{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Hi(z(this._object),this._key)}}function Ac(e,t,n){const s=e[t];return le(s)?s:new go(e,t,n)}var Ar;class mo{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Ar]=!1,this._dirty=!0,this.effect=new Gn(t,()=>{this._dirty||(this._dirty=!0,os(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=z(this);return is(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Ar="__v_isReadonly";function _o(e,t,n=!1){let s,r;const i=B(e);return i?(s=e,r=Ie):(s=e.get,r=e.set),new mo(s,r,i||!r,n)}function We(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){$t(i,t,n)}return r}function xe(e,t,n,s){if(B(e)){const i=We(e,t,n,s);return i&&fr(i)&&i.catch(o=>{$t(o,t,n)}),i}const r=[];for(let i=0;i>>1;St(fe[s])Me&&fe.splice(t,1)}function Co(e){N(e)?dt.push(...e):(!Ne||!Ne.includes(e,e.allowRecurse?Ge+1:Ge))&&dt.push(e),Or()}function Rs(e,t=Mt?Me+1:0){for(;tSt(n)-St(s)),Ge=0;Gee.id==null?1/0:e.id,xo=(e,t)=>{const n=St(e)-St(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Pr(e){$n=!1,Mt=!0,fe.sort(xo);const t=Ie;try{for(Me=0;Meie(v)?v.trim():v)),p&&(r=n.map(Oi))}let l,c=s[l=Jt(t)]||s[l=Jt(Se(t))];!c&&i&&(c=s[l=Jt(it(t))]),c&&xe(c,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,xe(a,e,6,r)}}function Fr(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!B(e)){const c=a=>{const d=Fr(a,t,!0);d&&(l=!0,ce(o,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(ee(e)&&s.set(e,null),null):(N(i)?i.forEach(c=>o[c]=null):ce(o,i),ee(e)&&s.set(e,o),o)}function pn(e,t){return!e||!Nt(t)?!1:(t=t.slice(2).replace(/Once$/,""),V(e,t[0].toLowerCase()+t.slice(1))||V(e,it(t))||V(e,t))}let ue=null,gn=null;function sn(e){const t=ue;return ue=e,gn=e&&e.type.__scopeId||null,t}function Rc(e){gn=e}function Ic(){gn=null}function vo(e,t=ue,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Hs(-1);const i=sn(t);let o;try{o=e(...r)}finally{sn(i),s._d&&Hs(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function vn(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:l,attrs:c,emit:a,render:d,renderCache:p,data:y,setupState:v,ctx:R,inheritAttrs:O}=e;let j,g;const w=sn(e);try{if(n.shapeFlag&4){const H=r||s;j=Te(d.call(H,H,p,i,v,y,R)),g=c}else{const H=t;j=Te(H.length>1?H(i,{attrs:c,slots:l,emit:a}):H(i,null)),g=t.props?c:To(c)}}catch(H){Ot.length=0,$t(H,e,1),j=re(be)}let I=j;if(g&&O!==!1){const H=Object.keys(g),{shapeFlag:K}=I;H.length&&K&7&&(o&&H.some(Yn)&&(g=Ao(g,o)),I=Ve(I,g))}return n.dirs&&(I=Ve(I),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&(I.transition=n.transition),j=I,sn(w),j}const To=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nt(n))&&((t||(t={}))[n]=e[n]);return t},Ao=(e,t)=>{const n={};for(const s in e)(!Yn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ro(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Is(s,o,a):!!o;if(c&8){const d=t.dynamicProps;for(let p=0;pe.__isSuspense;function Mr(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):Co(e)}function Po(e,t){if(se){let n=se.provides;const s=se.parent&&se.parent.provides;s===n&&(n=se.provides=Object.create(s)),n[e]=t}}function ht(e,t,n=!1){const s=se||ue;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&B(t)?t.call(s.proxy):t}}function Fo(e,t){return mn(e,null,t)}function Oc(e,t){return mn(e,null,{flush:"post"})}const qt={};function Xt(e,t,n){return mn(e,t,n)}function mn(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=te){const l=Li()===(se==null?void 0:se.scope)?se:null;let c,a=!1,d=!1;if(le(e)?(c=()=>e.value,a=tn(e)):at(e)?(c=()=>e,s=!0):N(e)?(d=!0,a=e.some(I=>at(I)||tn(I)),c=()=>e.map(I=>{if(le(I))return I.value;if(at(I))return ct(I);if(B(I))return We(I,l,2)})):B(e)?t?c=()=>We(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return p&&p(),xe(e,l,3,[y])}:c=Ie,t&&s){const I=c;c=()=>ct(I())}let p,y=I=>{p=g.onStop=()=>{We(I,l,4)}},v;if(bt)if(y=Ie,t?n&&xe(t,l,3,[c(),d?[]:void 0,y]):c(),r==="sync"){const I=El();v=I.__watcherHandles||(I.__watcherHandles=[])}else return Ie;let R=d?new Array(e.length).fill(qt):qt;const O=()=>{if(g.active)if(t){const I=g.run();(s||a||(d?I.some((H,K)=>Pt(H,R[K])):Pt(I,R)))&&(p&&p(),xe(t,l,3,[I,R===qt?void 0:d&&R[0]===qt?[]:R,y]),R=I)}else g.run()};O.allowRecurse=!!t;let j;r==="sync"?j=O:r==="post"?j=()=>de(O,l&&l.suspense):(O.pre=!0,l&&(O.id=l.uid),j=()=>hn(O));const g=new Gn(c,j);t?n?O():R=g.run():r==="post"?de(g.run.bind(g),l&&l.suspense):g.run();const w=()=>{g.stop(),l&&l.scope&&Jn(l.scope.effects,g)};return v&&v.push(w),w}function Mo(e,t,n){const s=this.proxy,r=ie(e)?e.includes(".")?Sr(s,e):()=>s[e]:e.bind(s,s);let i;B(t)?i=t:(i=t.handler,n=t);const o=se;_t(this);const l=mn(r,i.bind(s),n);return o?_t(o):rt(),l}function Sr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{ct(n,t)});else if(ar(e))for(const n in e)ct(e[n],t);return e}function So(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return bn(()=>{e.isMounted=!0}),jr(()=>{e.isUnmounting=!0}),e}const ye=[Function,Array],Lo={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ye,onEnter:ye,onAfterEnter:ye,onEnterCancelled:ye,onBeforeLeave:ye,onLeave:ye,onAfterLeave:ye,onLeaveCancelled:ye,onBeforeAppear:ye,onAppear:ye,onAfterAppear:ye,onAppearCancelled:ye},setup(e,{slots:t}){const n=ni(),s=So();let r;return()=>{const i=t.default&&$r(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const O of i)if(O.type!==be){o=O;break}}const l=z(e),{mode:c}=l;if(s.isLeaving)return Tn(o);const a=Os(o);if(!a)return Tn(o);const d=Hn(a,l,s,n);jn(a,d);const p=n.subTree,y=p&&Os(p);let v=!1;const{getTransitionKey:R}=a.type;if(R){const O=R();r===void 0?r=O:O!==r&&(r=O,v=!0)}if(y&&y.type!==be&&(!et(a,y)||v)){const O=Hn(y,l,s,n);if(jn(y,O),c==="out-in")return s.isLeaving=!0,O.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},Tn(o);c==="in-out"&&a.type!==be&&(O.delayLeave=(j,g,w)=>{const I=Nr(s,y);I[String(y.key)]=y,j._leaveCb=()=>{g(),j._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=w})}return o}}},Lr=Lo;function Nr(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Hn(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:p,onLeave:y,onAfterLeave:v,onLeaveCancelled:R,onBeforeAppear:O,onAppear:j,onAfterAppear:g,onAppearCancelled:w}=t,I=String(e.key),H=Nr(n,e),K=(A,D)=>{A&&xe(A,s,9,D)},Z=(A,D)=>{const U=D[1];K(A,D),N(A)?A.every(Y=>Y.length<=1)&&U():A.length<=1&&U()},q={mode:i,persisted:o,beforeEnter(A){let D=l;if(!n.isMounted)if(r)D=O||l;else return;A._leaveCb&&A._leaveCb(!0);const U=H[I];U&&et(e,U)&&U.el._leaveCb&&U.el._leaveCb(),K(D,[A])},enter(A){let D=c,U=a,Y=d;if(!n.isMounted)if(r)D=j||c,U=g||a,Y=w||d;else return;let P=!1;const k=A._enterCb=M=>{P||(P=!0,M?K(Y,[A]):K(U,[A]),q.delayedLeave&&q.delayedLeave(),A._enterCb=void 0)};D?Z(D,[A,k]):k()},leave(A,D){const U=String(e.key);if(A._enterCb&&A._enterCb(!0),n.isUnmounting)return D();K(p,[A]);let Y=!1;const P=A._leaveCb=k=>{Y||(Y=!0,D(),k?K(R,[A]):K(v,[A]),A._leaveCb=void 0,H[U]===e&&delete H[U])};H[U]=e,y?Z(y,[A,P]):P()},clone(A){return Hn(A,t,n,s)}};return q}function Tn(e){if(Ht(e))return e=Ve(e),e.children=null,e}function Os(e){return Ht(e)?e.children?e.children[0]:void 0:e}function jn(e,t){e.shapeFlag&6&&e.component?jn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function $r(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;function Pc(e){B(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:i,suspensible:o=!0,onError:l}=e;let c=null,a,d=0;const p=()=>(d++,c=null,y()),y=()=>{let v;return c||(v=c=t().catch(R=>{if(R=R instanceof Error?R:new Error(String(R)),l)return new Promise((O,j)=>{l(R,()=>O(p()),()=>j(R),d+1)});throw R}).then(R=>v!==c&&c?c:(R&&(R.__esModule||R[Symbol.toStringTag]==="Module")&&(R=R.default),a=R,R)))};return cs({name:"AsyncComponentWrapper",__asyncLoader:y,get __asyncResolved(){return a},setup(){const v=se;if(a)return()=>An(a,v);const R=w=>{c=null,$t(w,v,13,!s)};if(o&&v.suspense||bt)return y().then(w=>()=>An(w,v)).catch(w=>(R(w),()=>s?re(s,{error:w}):null));const O=At(!1),j=At(),g=At(!!r);return r&&setTimeout(()=>{g.value=!1},r),i!=null&&setTimeout(()=>{if(!O.value&&!j.value){const w=new Error(`Async component timed out after ${i}ms.`);R(w),j.value=w}},i),y().then(()=>{O.value=!0,v.parent&&Ht(v.parent.vnode)&&hn(v.parent.update)}).catch(w=>{R(w),j.value=w}),()=>{if(O.value&&a)return An(a,v);if(j.value&&s)return re(s,{error:j.value});if(n&&!g.value)return re(n)}}})}function An(e,t){const{ref:n,props:s,children:r,ce:i}=t.vnode,o=re(e,s,r);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const Ht=e=>e.type.__isKeepAlive;function No(e,t){Hr(e,"a",t)}function $o(e,t){Hr(e,"da",t)}function Hr(e,t,n=se){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(_n(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Ht(r.parent.vnode)&&Ho(s,t,n,r),r=r.parent}}function Ho(e,t,n,s){const r=_n(t,e,s,!0);yn(()=>{Jn(s[t],r)},n)}function _n(e,t,n=se,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;yt(),_t(n);const l=xe(t,n,e,o);return rt(),wt(),l});return s?r.unshift(i):r.push(i),i}}const He=e=>(t,n=se)=>(!bt||e==="sp")&&_n(e,(...s)=>t(...s),n),jo=He("bm"),bn=He("m"),Uo=He("bu"),Bo=He("u"),jr=He("bum"),yn=He("um"),Do=He("sp"),Ko=He("rtg"),ko=He("rtc");function Wo(e,t=se){_n("ec",e,t)}function Fe(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;ot(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,c=o.length;lln(t)?!(t.type===be||t.type===he&&!Dr(t.children)):!0)?e:null}function Nc(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Jt(s)]=e[s];return n}const Un=e=>e?si(e)?hs(e)||e.proxy:Un(e.parent):null,Rt=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Un(e.parent),$root:e=>Un(e.root),$emit:e=>e.emit,$options:e=>us(e),$forceUpdate:e=>e.f||(e.f=()=>hn(e.update)),$nextTick:e=>e.n||(e.n=Ir.bind(e.proxy)),$watch:e=>Mo.bind(e)}),Rn=(e,t)=>e!==te&&!e.__isScriptSetup&&V(e,t),qo={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Rn(s,t))return o[t]=1,s[t];if(r!==te&&V(r,t))return o[t]=2,r[t];if((a=e.propsOptions[0])&&V(a,t))return o[t]=3,i[t];if(n!==te&&V(n,t))return o[t]=4,n[t];Bn&&(o[t]=0)}}const d=Rt[t];let p,y;if(d)return t==="$attrs"&&pe(e,"get",t),d(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==te&&V(n,t))return o[t]=4,n[t];if(y=c.config.globalProperties,V(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Rn(r,t)?(r[t]=n,!0):s!==te&&V(s,t)?(s[t]=n,!0):V(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==te&&V(e,o)||Rn(t,o)||(l=i[0])&&V(l,o)||V(s,o)||V(Rt,o)||V(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:V(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Bn=!0;function Vo(e){const t=us(e),n=e.proxy,s=e.ctx;Bn=!1,t.beforeCreate&&Fs(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:a,created:d,beforeMount:p,mounted:y,beforeUpdate:v,updated:R,activated:O,deactivated:j,beforeDestroy:g,beforeUnmount:w,destroyed:I,unmounted:H,render:K,renderTracked:Z,renderTriggered:q,errorCaptured:A,serverPrefetch:D,expose:U,inheritAttrs:Y,components:P,directives:k,filters:M}=t;if(a&&zo(a,s,null,e.appContext.config.unwrapInjectedRef),o)for(const ne in o){const Q=o[ne];B(Q)&&(s[ne]=Q.bind(n))}if(r){const ne=r.call(n,n);ee(ne)&&(e.data=dn(ne))}if(Bn=!0,i)for(const ne in i){const Q=i[ne],ze=B(Q)?Q.bind(n,n):B(Q.get)?Q.get.bind(n,n):Ie,jt=!B(Q)&&B(Q.set)?Q.set.bind(n):Ie,Ye=ve({get:ze,set:jt});Object.defineProperty(s,ne,{enumerable:!0,configurable:!0,get:()=>Ye.value,set:Oe=>Ye.value=Oe})}if(l)for(const ne in l)Kr(l[ne],s,n,ne);if(c){const ne=B(c)?c.call(n):c;Reflect.ownKeys(ne).forEach(Q=>{Po(Q,ne[Q])})}d&&Fs(d,e,"c");function J(ne,Q){N(Q)?Q.forEach(ze=>ne(ze.bind(n))):Q&&ne(Q.bind(n))}if(J(jo,p),J(bn,y),J(Uo,v),J(Bo,R),J(No,O),J($o,j),J(Wo,A),J(ko,Z),J(Ko,q),J(jr,w),J(yn,H),J(Do,D),N(U))if(U.length){const ne=e.exposed||(e.exposed={});U.forEach(Q=>{Object.defineProperty(ne,Q,{get:()=>n[Q],set:ze=>n[Q]=ze})})}else e.exposed||(e.exposed={});K&&e.render===Ie&&(e.render=K),Y!=null&&(e.inheritAttrs=Y),P&&(e.components=P),k&&(e.directives=k)}function zo(e,t,n=Ie,s=!1){N(e)&&(e=Dn(e));for(const r in e){const i=e[r];let o;ee(i)?"default"in i?o=ht(i.from||r,i.default,!0):o=ht(i.from||r):o=ht(i),le(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function Fs(e,t,n){xe(N(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Kr(e,t,n,s){const r=s.includes(".")?Sr(n,s):()=>n[s];if(ie(e)){const i=t[e];B(i)&&Xt(r,i)}else if(B(e))Xt(r,e.bind(n));else if(ee(e))if(N(e))e.forEach(i=>Kr(i,t,n,s));else{const i=B(e.handler)?e.handler.bind(n):t[e.handler];B(i)&&Xt(r,i,e)}}function us(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>rn(c,a,o,!0)),rn(c,t,o)),ee(t)&&i.set(t,c),c}function rn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&rn(e,i,n,!0),r&&r.forEach(o=>rn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Yo[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Yo={data:Ms,props:Qe,emits:Qe,methods:Qe,computed:Qe,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:Qe,directives:Qe,watch:Xo,provide:Ms,inject:Jo};function Ms(e,t){return t?e?function(){return ce(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function Jo(e,t){return Qe(Dn(e),Dn(t))}function Dn(e){if(N(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[y,v]=Wr(p,t,!0);ce(o,y),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!c)return ee(e)&&s.set(e,ft),ft;if(N(i))for(let d=0;d-1,v[1]=O<0||R-1||V(v,"default"))&&l.push(p)}}}const a=[o,l];return ee(e)&&s.set(e,a),a}function Ss(e){return e[0]!=="$"}function Ls(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ns(e,t){return Ls(e)===Ls(t)}function $s(e,t){return N(t)?t.findIndex(n=>Ns(n,e)):B(t)&&Ns(t,e)?0:-1}const qr=e=>e[0]==="_"||e==="$stable",as=e=>N(e)?e.map(Te):[Te(e)],Go=(e,t,n)=>{if(t._n)return t;const s=vo((...r)=>as(t(...r)),n);return s._c=!1,s},Vr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(qr(r))continue;const i=e[r];if(B(i))t[r]=Go(r,i,s);else if(i!=null){const o=as(i);t[r]=()=>o}}},zr=(e,t)=>{const n=as(t);e.slots.default=()=>n},el=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=z(t),Gt(t,"_",n)):Vr(t,e.slots={})}else e.slots={},t&&zr(e,t);Gt(e.slots,wn,1)},tl=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=te;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ce(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Vr(t,r)),o=t}else t&&(zr(e,t),o={default:1});if(i)for(const l in r)!qr(l)&&!(l in o)&&delete r[l]};function Yr(){return{app:null,config:{isNativeTag:Ei,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let nl=0;function sl(e,t){return function(s,r=null){B(s)||(s=Object.assign({},s)),r!=null&&!ee(r)&&(r=null);const i=Yr(),o=new Set;let l=!1;const c=i.app={_uid:nl++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:vl,get config(){return i.config},set config(a){},use(a,...d){return o.has(a)||(a&&B(a.install)?(o.add(a),a.install(c,...d)):B(a)&&(o.add(a),a(c,...d))),c},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),c},component(a,d){return d?(i.components[a]=d,c):i.components[a]},directive(a,d){return d?(i.directives[a]=d,c):i.directives[a]},mount(a,d,p){if(!l){const y=re(s,r);return y.appContext=i,d&&t?t(y,a):e(y,a,p),l=!0,c._container=a,a.__vue_app__=c,hs(y.component)||y.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(a,d){return i.provides[a]=d,c}};return c}}function on(e,t,n,s,r=!1){if(N(e)){e.forEach((y,v)=>on(y,t&&(N(t)?t[v]:t),n,s,r));return}if(pt(s)&&!r)return;const i=s.shapeFlag&4?hs(s.component)||s.component.proxy:s.el,o=r?null:i,{i:l,r:c}=e,a=t&&t.r,d=l.refs===te?l.refs={}:l.refs,p=l.setupState;if(a!=null&&a!==c&&(ie(a)?(d[a]=null,V(p,a)&&(p[a]=null)):le(a)&&(a.value=null)),B(c))We(c,l,12,[o,d]);else{const y=ie(c),v=le(c);if(y||v){const R=()=>{if(e.f){const O=y?V(p,c)?p[c]:d[c]:c.value;r?N(O)&&Jn(O,i):N(O)?O.includes(i)||O.push(i):y?(d[c]=[i],V(p,c)&&(p[c]=d[c])):(c.value=[i],e.k&&(d[e.k]=c.value))}else y?(d[c]=o,V(p,c)&&(p[c]=o)):v&&(c.value=o,e.k&&(d[e.k]=o))};o?(R.id=-1,de(R,n)):R()}}}let Ue=!1;const Vt=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",zt=e=>e.nodeType===8;function rl(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:a}}=e,d=(g,w)=>{if(!w.hasChildNodes()){n(null,g,w),nn(),w._vnode=g;return}Ue=!1,p(w.firstChild,g,null,null,null),nn(),w._vnode=g,Ue&&console.error("Hydration completed but contains mismatches.")},p=(g,w,I,H,K,Z=!1)=>{const q=zt(g)&&g.data==="[",A=()=>O(g,w,I,H,K,q),{type:D,ref:U,shapeFlag:Y,patchFlag:P}=w;let k=g.nodeType;w.el=g,P===-2&&(Z=!1,w.dynamicChildren=null);let M=null;switch(D){case mt:k!==3?w.children===""?(c(w.el=r(""),o(g),g),M=g):M=A():(g.data!==w.children&&(Ue=!0,g.data=w.children),M=i(g));break;case be:k!==8||q?M=A():M=i(g);break;case It:if(q&&(g=i(g),k=g.nodeType),k===1||k===3){M=g;const ge=!w.children.length;for(let J=0;J{Z=Z||!!w.dynamicChildren;const{type:q,props:A,patchFlag:D,shapeFlag:U,dirs:Y}=w,P=q==="input"&&Y||q==="option";if(P||D!==-1){if(Y&&Fe(w,null,I,"created"),A)if(P||!Z||D&48)for(const M in A)(P&&M.endsWith("value")||Nt(M)&&!vt(M))&&s(g,M,null,A[M],!1,void 0,I);else A.onClick&&s(g,"onClick",null,A.onClick,!1,void 0,I);let k;if((k=A&&A.onVnodeBeforeMount)&&we(k,I,w),Y&&Fe(w,null,I,"beforeMount"),((k=A&&A.onVnodeMounted)||Y)&&Mr(()=>{k&&we(k,I,w),Y&&Fe(w,null,I,"mounted")},H),U&16&&!(A&&(A.innerHTML||A.textContent))){let M=v(g.firstChild,w,g,I,H,K,Z);for(;M;){Ue=!0;const ge=M;M=M.nextSibling,l(ge)}}else U&8&&g.textContent!==w.children&&(Ue=!0,g.textContent=w.children)}return g.nextSibling},v=(g,w,I,H,K,Z,q)=>{q=q||!!w.dynamicChildren;const A=w.children,D=A.length;for(let U=0;U{const{slotScopeIds:q}=w;q&&(K=K?K.concat(q):q);const A=o(g),D=v(i(g),w,A,I,H,K,Z);return D&&zt(D)&&D.data==="]"?i(w.anchor=D):(Ue=!0,c(w.anchor=a("]"),A,D),D)},O=(g,w,I,H,K,Z)=>{if(Ue=!0,w.el=null,Z){const D=j(g);for(;;){const U=i(g);if(U&&U!==D)l(U);else break}}const q=i(g),A=o(g);return l(g),n(null,w,A,q,I,H,Vt(A),K),q},j=g=>{let w=0;for(;g;)if(g=i(g),g&&zt(g)&&(g.data==="["&&w++,g.data==="]")){if(w===0)return i(g);w--}return g};return[d,p]}const de=Mr;function il(e){return ol(e,rl)}function ol(e,t){const n=Fi();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:a,setElementText:d,parentNode:p,nextSibling:y,setScopeId:v=Ie,insertStaticContent:R}=e,O=(f,u,h,_=null,m=null,x=null,T=!1,C=null,E=!!u.dynamicChildren)=>{if(f===u)return;f&&!et(f,u)&&(_=Ut(f),Oe(f,m,x,!0),f=null),u.patchFlag===-2&&(E=!1,u.dynamicChildren=null);const{type:b,ref:S,shapeFlag:F}=u;switch(b){case mt:j(f,u,h,_);break;case be:g(f,u,h,_);break;case It:f==null&&w(u,h,_,T);break;case he:P(f,u,h,_,m,x,T,C,E);break;default:F&1?K(f,u,h,_,m,x,T,C,E):F&6?k(f,u,h,_,m,x,T,C,E):(F&64||F&128)&&b.process(f,u,h,_,m,x,T,C,E,ot)}S!=null&&m&&on(S,f&&f.ref,x,u||f,!u)},j=(f,u,h,_)=>{if(f==null)s(u.el=l(u.children),h,_);else{const m=u.el=f.el;u.children!==f.children&&a(m,u.children)}},g=(f,u,h,_)=>{f==null?s(u.el=c(u.children||""),h,_):u.el=f.el},w=(f,u,h,_)=>{[f.el,f.anchor]=R(f.children,u,h,_,f.el,f.anchor)},I=({el:f,anchor:u},h,_)=>{let m;for(;f&&f!==u;)m=y(f),s(f,h,_),f=m;s(u,h,_)},H=({el:f,anchor:u})=>{let h;for(;f&&f!==u;)h=y(f),r(f),f=h;r(u)},K=(f,u,h,_,m,x,T,C,E)=>{T=T||u.type==="svg",f==null?Z(u,h,_,m,x,T,C,E):D(f,u,m,x,T,C,E)},Z=(f,u,h,_,m,x,T,C)=>{let E,b;const{type:S,props:F,shapeFlag:L,transition:$,dirs:W}=f;if(E=f.el=o(f.type,x,F&&F.is,F),L&8?d(E,f.children):L&16&&A(f.children,E,null,_,m,x&&S!=="foreignObject",T,C),W&&Fe(f,null,_,"created"),q(E,f,f.scopeId,T,_),F){for(const X in F)X!=="value"&&!vt(X)&&i(E,X,null,F[X],x,f.children,_,m,Le);"value"in F&&i(E,"value",null,F.value),(b=F.onVnodeBeforeMount)&&we(b,_,f)}W&&Fe(f,null,_,"beforeMount");const G=(!m||m&&!m.pendingBranch)&&$&&!$.persisted;G&&$.beforeEnter(E),s(E,u,h),((b=F&&F.onVnodeMounted)||G||W)&&de(()=>{b&&we(b,_,f),G&&$.enter(E),W&&Fe(f,null,_,"mounted")},m)},q=(f,u,h,_,m)=>{if(h&&v(f,h),_)for(let x=0;x<_.length;x++)v(f,_[x]);if(m){let x=m.subTree;if(u===x){const T=m.vnode;q(f,T,T.scopeId,T.slotScopeIds,m.parent)}}},A=(f,u,h,_,m,x,T,C,E=0)=>{for(let b=E;b{const C=u.el=f.el;let{patchFlag:E,dynamicChildren:b,dirs:S}=u;E|=f.patchFlag&16;const F=f.props||te,L=u.props||te;let $;h&&Je(h,!1),($=L.onVnodeBeforeUpdate)&&we($,h,u,f),S&&Fe(u,f,h,"beforeUpdate"),h&&Je(h,!0);const W=m&&u.type!=="foreignObject";if(b?U(f.dynamicChildren,b,C,h,_,W,x):T||Q(f,u,C,null,h,_,W,x,!1),E>0){if(E&16)Y(C,u,F,L,h,_,m);else if(E&2&&F.class!==L.class&&i(C,"class",null,L.class,m),E&4&&i(C,"style",F.style,L.style,m),E&8){const G=u.dynamicProps;for(let X=0;X{$&&we($,h,u,f),S&&Fe(u,f,h,"updated")},_)},U=(f,u,h,_,m,x,T)=>{for(let C=0;C{if(h!==_){if(h!==te)for(const C in h)!vt(C)&&!(C in _)&&i(f,C,h[C],null,T,u.children,m,x,Le);for(const C in _){if(vt(C))continue;const E=_[C],b=h[C];E!==b&&C!=="value"&&i(f,C,b,E,T,u.children,m,x,Le)}"value"in _&&i(f,"value",h.value,_.value)}},P=(f,u,h,_,m,x,T,C,E)=>{const b=u.el=f?f.el:l(""),S=u.anchor=f?f.anchor:l("");let{patchFlag:F,dynamicChildren:L,slotScopeIds:$}=u;$&&(C=C?C.concat($):$),f==null?(s(b,h,_),s(S,h,_),A(u.children,h,S,m,x,T,C,E)):F>0&&F&64&&L&&f.dynamicChildren?(U(f.dynamicChildren,L,h,m,x,T,C),(u.key!=null||m&&u===m.subTree)&&Jr(f,u,!0)):Q(f,u,h,S,m,x,T,C,E)},k=(f,u,h,_,m,x,T,C,E)=>{u.slotScopeIds=C,f==null?u.shapeFlag&512?m.ctx.activate(u,h,_,T,E):M(u,h,_,m,x,T,E):ge(f,u,E)},M=(f,u,h,_,m,x,T)=>{const C=f.component=gl(f,_,m);if(Ht(f)&&(C.ctx.renderer=ot),ml(C),C.asyncDep){if(m&&m.registerDep(C,J),!f.el){const E=C.subTree=re(be);g(null,E,u,h)}return}J(C,f,u,h,m,x,T)},ge=(f,u,h)=>{const _=u.component=f.component;if(Ro(f,u,h))if(_.asyncDep&&!_.asyncResolved){ne(_,u,h);return}else _.next=u,wo(_.update),_.update();else u.el=f.el,_.vnode=u},J=(f,u,h,_,m,x,T)=>{const C=()=>{if(f.isMounted){let{next:S,bu:F,u:L,parent:$,vnode:W}=f,G=S,X;Je(f,!1),S?(S.el=W.el,ne(f,S,T)):S=W,F&&En(F),(X=S.props&&S.props.onVnodeBeforeUpdate)&&we(X,$,S,W),Je(f,!0);const oe=vn(f),Ee=f.subTree;f.subTree=oe,O(Ee,oe,p(Ee.el),Ut(Ee),f,m,x),S.el=oe.el,G===null&&Io(f,oe.el),L&&de(L,m),(X=S.props&&S.props.onVnodeUpdated)&&de(()=>we(X,$,S,W),m)}else{let S;const{el:F,props:L}=u,{bm:$,m:W,parent:G}=f,X=pt(u);if(Je(f,!1),$&&En($),!X&&(S=L&&L.onVnodeBeforeMount)&&we(S,G,u),Je(f,!0),F&&xn){const oe=()=>{f.subTree=vn(f),xn(F,f.subTree,f,m,null)};X?u.type.__asyncLoader().then(()=>!f.isUnmounted&&oe()):oe()}else{const oe=f.subTree=vn(f);O(null,oe,h,_,f,m,x),u.el=oe.el}if(W&&de(W,m),!X&&(S=L&&L.onVnodeMounted)){const oe=u;de(()=>we(S,G,oe),m)}(u.shapeFlag&256||G&&pt(G.vnode)&&G.vnode.shapeFlag&256)&&f.a&&de(f.a,m),f.isMounted=!0,u=h=_=null}},E=f.effect=new Gn(C,()=>hn(b),f.scope),b=f.update=()=>E.run();b.id=f.uid,Je(f,!0),b()},ne=(f,u,h)=>{u.component=f;const _=f.vnode.props;f.vnode=u,f.next=null,Qo(f,u.props,_,h),tl(f,u.children,h),yt(),Rs(),wt()},Q=(f,u,h,_,m,x,T,C,E=!1)=>{const b=f&&f.children,S=f?f.shapeFlag:0,F=u.children,{patchFlag:L,shapeFlag:$}=u;if(L>0){if(L&128){jt(b,F,h,_,m,x,T,C,E);return}else if(L&256){ze(b,F,h,_,m,x,T,C,E);return}}$&8?(S&16&&Le(b,m,x),F!==b&&d(h,F)):S&16?$&16?jt(b,F,h,_,m,x,T,C,E):Le(b,m,x,!0):(S&8&&d(h,""),$&16&&A(F,h,_,m,x,T,C,E))},ze=(f,u,h,_,m,x,T,C,E)=>{f=f||ft,u=u||ft;const b=f.length,S=u.length,F=Math.min(b,S);let L;for(L=0;LS?Le(f,m,x,!0,!1,F):A(u,h,_,m,x,T,C,E,F)},jt=(f,u,h,_,m,x,T,C,E)=>{let b=0;const S=u.length;let F=f.length-1,L=S-1;for(;b<=F&&b<=L;){const $=f[b],W=u[b]=E?Ke(u[b]):Te(u[b]);if(et($,W))O($,W,h,null,m,x,T,C,E);else break;b++}for(;b<=F&&b<=L;){const $=f[F],W=u[L]=E?Ke(u[L]):Te(u[L]);if(et($,W))O($,W,h,null,m,x,T,C,E);else break;F--,L--}if(b>F){if(b<=L){const $=L+1,W=$L)for(;b<=F;)Oe(f[b],m,x,!0),b++;else{const $=b,W=b,G=new Map;for(b=W;b<=L;b++){const me=u[b]=E?Ke(u[b]):Te(u[b]);me.key!=null&&G.set(me.key,b)}let X,oe=0;const Ee=L-W+1;let lt=!1,ms=0;const Ct=new Array(Ee);for(b=0;b=Ee){Oe(me,m,x,!0);continue}let Pe;if(me.key!=null)Pe=G.get(me.key);else for(X=W;X<=L;X++)if(Ct[X-W]===0&&et(me,u[X])){Pe=X;break}Pe===void 0?Oe(me,m,x,!0):(Ct[Pe-W]=b+1,Pe>=ms?ms=Pe:lt=!0,O(me,u[Pe],h,null,m,x,T,C,E),oe++)}const _s=lt?ll(Ct):ft;for(X=_s.length-1,b=Ee-1;b>=0;b--){const me=W+b,Pe=u[me],bs=me+1{const{el:x,type:T,transition:C,children:E,shapeFlag:b}=f;if(b&6){Ye(f.component.subTree,u,h,_);return}if(b&128){f.suspense.move(u,h,_);return}if(b&64){T.move(f,u,h,ot);return}if(T===he){s(x,u,h);for(let F=0;FC.enter(x),m);else{const{leave:F,delayLeave:L,afterLeave:$}=C,W=()=>s(x,u,h),G=()=>{F(x,()=>{W(),$&&$()})};L?L(x,W,G):G()}else s(x,u,h)},Oe=(f,u,h,_=!1,m=!1)=>{const{type:x,props:T,ref:C,children:E,dynamicChildren:b,shapeFlag:S,patchFlag:F,dirs:L}=f;if(C!=null&&on(C,null,h,f,!0),S&256){u.ctx.deactivate(f);return}const $=S&1&&L,W=!pt(f);let G;if(W&&(G=T&&T.onVnodeBeforeUnmount)&&we(G,u,f),S&6)mi(f.component,h,_);else{if(S&128){f.suspense.unmount(h,_);return}$&&Fe(f,null,u,"beforeUnmount"),S&64?f.type.remove(f,u,h,m,ot,_):b&&(x!==he||F>0&&F&64)?Le(b,u,h,!1,!0):(x===he&&F&384||!m&&S&16)&&Le(E,u,h),_&&ps(f)}(W&&(G=T&&T.onVnodeUnmounted)||$)&&de(()=>{G&&we(G,u,f),$&&Fe(f,null,u,"unmounted")},h)},ps=f=>{const{type:u,el:h,anchor:_,transition:m}=f;if(u===he){gi(h,_);return}if(u===It){H(f);return}const x=()=>{r(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(f.shapeFlag&1&&m&&!m.persisted){const{leave:T,delayLeave:C}=m,E=()=>T(h,x);C?C(f.el,x,E):E()}else x()},gi=(f,u)=>{let h;for(;f!==u;)h=y(f),r(f),f=h;r(u)},mi=(f,u,h)=>{const{bum:_,scope:m,update:x,subTree:T,um:C}=f;_&&En(_),m.stop(),x&&(x.active=!1,Oe(T,f,u,h)),C&&de(C,u),de(()=>{f.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Le=(f,u,h,_=!1,m=!1,x=0)=>{for(let T=x;Tf.shapeFlag&6?Ut(f.component.subTree):f.shapeFlag&128?f.suspense.next():y(f.anchor||f.el),gs=(f,u,h)=>{f==null?u._vnode&&Oe(u._vnode,null,null,!0):O(u._vnode||null,f,u,null,null,null,h),Rs(),nn(),u._vnode=f},ot={p:O,um:Oe,m:Ye,r:ps,mt:M,mc:A,pc:Q,pbc:U,n:Ut,o:e};let Cn,xn;return t&&([Cn,xn]=t(ot)),{render:gs,hydrate:Cn,createApp:sl(gs,Cn)}}function Je({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Jr(e,t,n=!1){const s=e.children,r=t.children;if(N(s)&&N(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const cl=e=>e.__isTeleport,he=Symbol(void 0),mt=Symbol(void 0),be=Symbol(void 0),It=Symbol(void 0),Ot=[];let Re=null;function Xr(e=!1){Ot.push(Re=e?null:[])}function fl(){Ot.pop(),Re=Ot[Ot.length-1]||null}let Lt=1;function Hs(e){Lt+=e}function Zr(e){return e.dynamicChildren=Lt>0?Re||ft:null,fl(),Lt>0&&Re&&Re.push(e),e}function $c(e,t,n,s,r,i){return Zr(ei(e,t,n,s,r,i,!0))}function Qr(e,t,n,s,r){return Zr(re(e,t,n,s,r,!0))}function ln(e){return e?e.__v_isVNode===!0:!1}function et(e,t){return e.type===t.type&&e.key===t.key}const wn="__vInternal",Gr=({key:e})=>e??null,Zt=({ref:e,ref_key:t,ref_for:n})=>e!=null?ie(e)||le(e)||B(e)?{i:ue,r:e,k:t,f:!!n}:e:null;function ei(e,t=null,n=null,s=0,r=null,i=e===he?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gr(t),ref:t&&Zt(t),scopeId:gn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ue};return l?(ds(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ie(n)?8:16),Lt>0&&!o&&Re&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Re.push(c),c}const re=ul;function ul(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Ur)&&(e=be),ln(e)){const l=Ve(e,t,!0);return n&&ds(l,n),Lt>0&&!i&&Re&&(l.shapeFlag&6?Re[Re.indexOf(e)]=l:Re.push(l)),l.patchFlag|=-2,l}if(wl(e)&&(e=e.__vccOpts),t){t=al(t);let{class:l,style:c}=t;l&&!ie(l)&&(t.class=zn(l)),ee(c)&&(Er(c)&&!N(c)&&(c=ce({},c)),t.style=Vn(c))}const o=ie(e)?1:Oo(e)?128:cl(e)?64:ee(e)?4:B(e)?2:0;return ei(e,t,n,s,r,o,i,!0)}function al(e){return e?Er(e)||wn in e?ce({},e):e:null}function Ve(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,l=t?dl(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Gr(l),ref:t&&t.ref?n&&r?N(r)?r.concat(Zt(t)):[r,Zt(t)]:Zt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ve(e.ssContent),ssFallback:e.ssFallback&&Ve(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ti(e=" ",t=0){return re(mt,null,e,t)}function Hc(e,t){const n=re(It,null,e);return n.staticCount=t,n}function jc(e="",t=!1){return t?(Xr(),Qr(be,null,e)):re(be,null,e)}function Te(e){return e==null||typeof e=="boolean"?re(be):N(e)?re(he,null,e.slice()):typeof e=="object"?Ke(e):re(mt,null,String(e))}function Ke(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ve(e)}function ds(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),ds(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(wn in t)?t._ctx=ue:r===3&&ue&&(ue.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else B(t)?(t={default:t,_ctx:ue},n=32):(t=String(t),s&64?(n=16,t=[ti(t)]):n=8);e.children=t,e.shapeFlag|=n}function dl(...e){const t={};for(let n=0;nse||ue,_t=e=>{se=e,e.scope.on()},rt=()=>{se&&se.scope.off(),se=null};function si(e){return e.vnode.shapeFlag&4}let bt=!1;function ml(e,t=!1){bt=t;const{props:n,children:s}=e.vnode,r=si(e);Zo(e,n,r,t),el(e,s);const i=r?_l(e,t):void 0;return bt=!1,i}function _l(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Tt(new Proxy(e.ctx,qo));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?ii(e):null;_t(e),yt();const i=We(s,e,0,[e.props,r]);if(wt(),rt(),fr(i)){if(i.then(rt,rt),t)return i.then(o=>{js(e,o,t)}).catch(o=>{$t(o,e,0)});e.asyncDep=i}else js(e,i,t)}else ri(e,t)}function js(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=Tr(t)),ri(e,n)}let Us;function ri(e,t,n){const s=e.type;if(!e.render){if(!t&&Us&&!s.render){const r=s.template||us(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,a=ce(ce({isCustomElement:i,delimiters:l},o),c);s.render=Us(r,a)}}e.render=s.render||Ie}_t(e),yt(),Vo(e),wt(),rt()}function bl(e){return new Proxy(e.attrs,{get(t,n){return pe(e,"get","$attrs"),t[n]}})}function ii(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=bl(e))},slots:e.slots,emit:e.emit,expose:t}}function hs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Tr(Tt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Rt)return Rt[n](e)},has(t,n){return n in t||n in Rt}}))}function yl(e,t=!0){return B(e)?e.displayName||e.name:e.name||t&&e.__name}function wl(e){return B(e)&&"__vccOpts"in e}const ve=(e,t)=>_o(e,t,bt);function Uc(){return Cl().slots}function Cl(){const e=ni();return e.setupContext||(e.setupContext=ii(e))}function kn(e,t,n){const s=arguments.length;return s===2?ee(t)&&!N(t)?ln(t)?re(e,null,[t]):re(e,t):re(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ln(n)&&(n=[n]),re(e,t,n))}const xl=Symbol(""),El=()=>ht(xl),vl="3.2.47",Tl="http://www.w3.org/2000/svg",tt=typeof document<"u"?document:null,Bs=tt&&tt.createElement("template"),Al={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?tt.createElementNS(Tl,e):tt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>tt.createTextNode(e),createComment:e=>tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Bs.innerHTML=s?`${e}`:e;const l=Bs.content;if(s){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Rl(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Il(e,t,n){const s=e.style,r=ie(n);if(n&&!r){if(t&&!ie(t))for(const i in t)n[i]==null&&Wn(s,i,"");for(const i in n)Wn(s,i,n[i])}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const Ds=/\s*!important$/;function Wn(e,t,n){if(N(n))n.forEach(s=>Wn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Ol(e,t);Ds.test(n)?e.setProperty(it(s),n.replace(Ds,""),"important"):e[s]=n}}const Ks=["Webkit","Moz","ms"],In={};function Ol(e,t){const n=In[t];if(n)return n;let s=Se(t);if(s!=="filter"&&s in e)return In[t]=s;s=un(s);for(let r=0;rOn||($l.then(()=>On=0),On=Date.now());function jl(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;xe(Ul(s,n.value),t,5,[s])};return n.value=e,n.attached=Hl(),n}function Ul(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const qs=/^on[a-z]/,Bl=(e,t,n,s,r=!1,i,o,l,c)=>{t==="class"?Rl(e,s,r):t==="style"?Il(e,n,s):Nt(t)?Yn(t)||Ll(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Dl(e,t,s,r))?Fl(e,t,s,i,o,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Pl(e,t,s,r))};function Dl(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&qs.test(t)&&B(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||qs.test(t)&&ie(n)?!1:t in e}const Be="transition",xt="animation",oi=(e,{slots:t})=>kn(Lr,Kl(e),t);oi.displayName="Transition";const li={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};oi.props=ce({},Lr.props,li);const Xe=(e,t=[])=>{N(e)?e.forEach(n=>n(...t)):e&&e(...t)},Vs=e=>e?N(e)?e.some(t=>t.length>1):e.length>1:!1;function Kl(e){const t={};for(const P in e)P in li||(t[P]=e[P]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:a=o,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,R=kl(r),O=R&&R[0],j=R&&R[1],{onBeforeEnter:g,onEnter:w,onEnterCancelled:I,onLeave:H,onLeaveCancelled:K,onBeforeAppear:Z=g,onAppear:q=w,onAppearCancelled:A=I}=t,D=(P,k,M)=>{Ze(P,k?d:l),Ze(P,k?a:o),M&&M()},U=(P,k)=>{P._isLeaving=!1,Ze(P,p),Ze(P,v),Ze(P,y),k&&k()},Y=P=>(k,M)=>{const ge=P?q:w,J=()=>D(k,P,M);Xe(ge,[k,J]),zs(()=>{Ze(k,P?c:i),De(k,P?d:l),Vs(ge)||Ys(k,s,O,J)})};return ce(t,{onBeforeEnter(P){Xe(g,[P]),De(P,i),De(P,o)},onBeforeAppear(P){Xe(Z,[P]),De(P,c),De(P,a)},onEnter:Y(!1),onAppear:Y(!0),onLeave(P,k){P._isLeaving=!0;const M=()=>U(P,k);De(P,p),Vl(),De(P,y),zs(()=>{P._isLeaving&&(Ze(P,p),De(P,v),Vs(H)||Ys(P,s,j,M))}),Xe(H,[P,M])},onEnterCancelled(P){D(P,!1),Xe(I,[P])},onAppearCancelled(P){D(P,!0),Xe(A,[P])},onLeaveCancelled(P){U(P),Xe(K,[P])}})}function kl(e){if(e==null)return null;if(ee(e))return[Pn(e.enter),Pn(e.leave)];{const t=Pn(e);return[t,t]}}function Pn(e){return Pi(e)}function De(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ze(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function zs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Wl=0;function Ys(e,t,n,s){const r=e._endId=++Wl,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=ql(e,t);if(!o)return s();const a=o+"end";let d=0;const p=()=>{e.removeEventListener(a,y),i()},y=v=>{v.target===e&&++d>=c&&p()};setTimeout(()=>{d(n[R]||"").split(", "),r=s(`${Be}Delay`),i=s(`${Be}Duration`),o=Js(r,i),l=s(`${xt}Delay`),c=s(`${xt}Duration`),a=Js(l,c);let d=null,p=0,y=0;t===Be?o>0&&(d=Be,p=o,y=i.length):t===xt?a>0&&(d=xt,p=a,y=c.length):(p=Math.max(o,a),d=p>0?o>a?Be:xt:null,y=d?d===Be?i.length:c.length:0);const v=d===Be&&/\b(transform|all)(,|$)/.test(s(`${Be}Property`).toString());return{type:d,timeout:p,propCount:y,hasTransform:v}}function Js(e,t){for(;e.lengthXs(n)+Xs(e[s])))}function Xs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Vl(){return document.body.offsetHeight}const zl=["ctrl","shift","alt","meta"],Yl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>zl.some(n=>e[`${n}Key`]&&!t.includes(n))},Bc=(e,t)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=it(n.key);if(t.some(r=>r===s||Jl[r]===s))return e(n)},Xl=ce({patchProp:Bl},Al);let Fn,Zs=!1;function Zl(){return Fn=Zs?Fn:il(Xl),Zs=!0,Fn}const Kc=(...e)=>{const t=Zl().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ql(s);if(r)return n(r,!0,r instanceof SVGElement)},t};function Ql(e){return ie(e)?document.querySelector(e):e}const kc=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Gl="modulepreload",ec=function(e){return"/"+e},Qs={},Wc=function(t,n,s){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=ec(i),i in Qs)return;Qs[i]=!0;const o=i.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!s)for(let d=r.length-1;d>=0;d--){const p=r[d];if(p.href===i&&(!o||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const a=document.createElement("link");if(a.rel=o?"stylesheet":Gl,o||(a.as="script",a.crossOrigin=""),a.href=i,document.head.appendChild(a),o)return new Promise((d,p)=>{a.addEventListener("load",d),a.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},tc=window.__VP_SITE_DATA__,ci=/^[a-z]+:/i,qc=/^pathname:\/\//,Vc="vitepress-theme-appearance",fi=/#.*$/,nc=/(index)?\.(md|html)$/,Ce=typeof document<"u",ui={relativePath:"",filePath:"",title:"404",description:"Not Found",headers:[],frontmatter:{sidebar:!1,layout:"page"},lastUpdated:0,isNotFound:!0};function sc(e,t,n=!1){if(t===void 0)return!1;if(e=Gs(`/${e}`),n)return new RegExp(t).test(e);if(Gs(t)!==e)return!1;const s=t.match(fi);return s?(Ce?location.hash:"")===s[0]:!0}function Gs(e){return decodeURI(e).replace(fi,"").replace(nc,"")}function rc(e){return ci.test(e)}function ic(e,t){var s,r,i,o,l,c,a;const n=Object.keys(e.locales).find(d=>d!=="root"&&!rc(d)&&sc(t,`/${d}/`,!0))||"root";return Object.assign({},e,{localeIndex:n,lang:((s=e.locales[n])==null?void 0:s.lang)??e.lang,dir:((r=e.locales[n])==null?void 0:r.dir)??e.dir,title:((i=e.locales[n])==null?void 0:i.title)??e.title,titleTemplate:((o=e.locales[n])==null?void 0:o.titleTemplate)??e.titleTemplate,description:((l=e.locales[n])==null?void 0:l.description)??e.description,head:di(e.head,((c=e.locales[n])==null?void 0:c.head)??[]),themeConfig:{...e.themeConfig,...(a=e.locales[n])==null?void 0:a.themeConfig}})}function ai(e,t){const n=t.title||e.title,s=t.titleTemplate??e.titleTemplate;if(typeof s=="string"&&s.includes(":title"))return s.replace(/:title/g,n);const r=oc(e.title,s);return`${n}${r}`}function oc(e,t){return t===!1?"":t===!0||t===void 0?` | ${e}`:e===t?"":` | ${t}`}function lc(e,t){const[n,s]=t;if(n!=="meta")return!1;const r=Object.entries(s)[0];return r==null?!1:e.some(([i,o])=>i===n&&o[r[0]]===r[1])}function di(e,t){return[...e.filter(n=>!lc(t,n)),...t]}const cc=/[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g,fc=/^[a-z]:/i;function er(e){const t=fc.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(cc,"_").replace(/(^|\/)_+(?=[^/]*$)/,"$1")}const uc=Symbol(),nt=fo(tc);function zc(e){const t=ve(()=>ic(nt.value,e.data.relativePath));return{site:t,theme:ve(()=>t.value.themeConfig),page:ve(()=>e.data),frontmatter:ve(()=>e.data.frontmatter),params:ve(()=>e.data.params),lang:ve(()=>t.value.lang),dir:ve(()=>t.value.dir),localeIndex:ve(()=>t.value.localeIndex||"root"),title:ve(()=>ai(t.value,e.data)),description:ve(()=>e.data.description||t.value.description),isDark:At(!1)}}function Yc(){const e=ht(uc);if(!e)throw new Error("vitepress data not properly injected in app");return e}function ac(e,t){return`${e}${t}`.replace(/\/+/g,"/")}function tr(e){return ci.test(e)||e.startsWith(".")?e:ac(nt.value.base,e)}function dc(e){let t=e.replace(/\.html$/,"");if(t=decodeURIComponent(t),t=t.replace(/\/$/,"/index"),Ce){const n="/";t=er(t.slice(n.length).replace(/\//g,"_")||"index")+".md";let s=__VP_HASH_MAP__[t.toLowerCase()];s||(t=t.endsWith("_index.md")?t.slice(0,-9)+".md":t.slice(0,-3)+"_index.md",s=__VP_HASH_MAP__[t.toLowerCase()]),t=`${n}assets/${t}.${s}.js`}else t=`./${er(t.slice(1).replace(/\//g,"_"))}.md.js`;return t}let Qt=[];function Jc(e){Qt.push(e),yn(()=>{Qt=Qt.filter(t=>t!==e)})}const hc=Symbol(),nr="http://a.com",pc=()=>({path:"/",component:null,data:ui});function Xc(e,t){const n=dn(pc()),s={route:n,go:r};async function r(l=Ce?location.href:"/"){var a,d;await((a=s.onBeforeRouteChange)==null?void 0:a.call(s,l));const c=new URL(l,nr);nt.value.cleanUrls||!c.pathname.endsWith("/")&&!c.pathname.endsWith(".html")&&(c.pathname+=".html",l=c.pathname+c.search+c.hash),Ce&&l!==location.href&&(history.replaceState({scrollPosition:window.scrollY},document.title),history.pushState(null,"",l)),await o(l),await((d=s.onAfterRouteChanged)==null?void 0:d.call(s,l))}let i=null;async function o(l,c=0,a=!1){const d=new URL(l,nr),p=i=d.pathname;try{let y=await e(p);if(i===p){i=null;const{default:v,__pageData:R}=y;if(!v)throw new Error(`Invalid route component: ${v}`);n.path=Ce?p:tr(p),n.component=Tt(v),n.data=Tt(R),Ce&&Ir(()=>{let O=nt.value.base+R.relativePath.replace(/(?:(^|\/)index)?\.md$/,"$1");if(!nt.value.cleanUrls&&!O.endsWith("/")&&(O+=".html"),O!==d.pathname&&(d.pathname=O,l=O+d.search+d.hash,history.replaceState(null,"",l)),d.hash&&!c){let j=null;try{j=document.querySelector(decodeURIComponent(d.hash))}catch(g){console.warn(g)}if(j){sr(j,d.hash);return}}window.scrollTo(0,c)})}}catch(y){if(!/fetch/.test(y.message)&&!/^\/404(\.html|\/)?$/.test(l)&&console.error(y),!a)try{const v=await fetch(nt.value.base+"hashmap.json");window.__VP_HASH_MAP__=await v.json(),await o(l,c,!0);return}catch{}i===p&&(i=null,n.path=Ce?p:tr(p),n.component=t?Tt(t):null,n.data=ui)}}return Ce&&(window.addEventListener("click",l=>{if(l.target.closest("button"))return;const a=l.target.closest("a");if(a&&!a.closest(".vp-raw")&&(a instanceof SVGElement||!a.download)){const{target:d}=a,{href:p,origin:y,pathname:v,hash:R,search:O}=new URL(a.href instanceof SVGAnimatedString?a.href.animVal:a.href,a.baseURI),j=window.location,g=v.match(/\.\w+$/);!l.ctrlKey&&!l.shiftKey&&!l.altKey&&!l.metaKey&&d!=="_blank"&&y===j.origin&&!(g&&g[0]!==".html")&&(l.preventDefault(),v===j.pathname&&O===j.search?R&&(R!==j.hash&&(history.pushState(null,"",R),window.dispatchEvent(new Event("hashchange"))),sr(a,R,a.classList.contains("header-anchor"))):r(p))}},{capture:!0}),window.addEventListener("popstate",l=>{o(location.href,l.state&&l.state.scrollPosition||0)}),window.addEventListener("hashchange",l=>{l.preventDefault()})),s}function gc(){const e=ht(hc);if(!e)throw new Error("useRouter() is called without provider.");return e}function hi(){return gc().route}function sr(e,t,n=!1){let s=null;try{s=e.classList.contains("header-anchor")?e:document.querySelector(decodeURIComponent(t))}catch(r){console.warn(r)}if(s){const r=nt.value.scrollOffset;let i=0;if(typeof r=="number")i=r;else if(typeof r=="string")i=rr(r);else if(Array.isArray(r))for(const c of r){const a=rr(c);if(a){i=a;break}}const o=parseInt(window.getComputedStyle(s).paddingTop,10),l=window.scrollY+s.getBoundingClientRect().top-i+o;!n||Math.abs(l-window.scrollY)>window.innerHeight?window.scrollTo(0,l):window.scrollTo({left:0,top:l,behavior:"smooth"})}}function rr(e){const t=document.querySelector(e);if(!t)return 0;const n=t.getBoundingClientRect().bottom;return n<0?0:n+24}const ir=()=>Qt.forEach(e=>e()),Zc=cs({name:"VitePressContent",props:{as:{type:[Object,String],default:"div"}},setup(e){const t=hi();return()=>kn(e.as,{style:{position:"relative"}},[t.component?kn(t.component,{onVnodeMounted:ir,onVnodeUpdated:ir}):"404 Page Not Found"])}});function Qc(e,t){let n=[],s=!0;const r=i=>{if(s){s=!1;return}n.forEach(o=>document.head.removeChild(o)),n=[],i.forEach(o=>{const l=mc(o);document.head.appendChild(l),n.push(l)})};Fo(()=>{const i=e.data,o=t.value,l=i&&i.description,c=i&&i.frontmatter.head||[];document.title=ai(o,i),document.querySelector("meta[name=description]").setAttribute("content",l||o.description),r(di(o.head,bc(c)))})}function mc([e,t,n]){const s=document.createElement(e);for(const r in t)s.setAttribute(r,t[r]);return n&&(s.innerHTML=n),s}function _c(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function bc(e){return e.filter(t=>!_c(t))}const Mn=new Set,pi=()=>document.createElement("link"),yc=e=>{const t=pi();t.rel="prefetch",t.href=e,document.head.appendChild(t)},wc=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let Yt;const Cc=Ce&&(Yt=pi())&&Yt.relList&&Yt.relList.supports&&Yt.relList.supports("prefetch")?yc:wc;function Gc(){if(!Ce||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const s=()=>{n&&n.disconnect(),n=new IntersectionObserver(i=>{i.forEach(o=>{if(o.isIntersecting){const l=o.target;n.unobserve(l);const{pathname:c}=l;if(!Mn.has(c)){Mn.add(c);const a=dc(c);Cc(a)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(i=>{const{target:o}=i,{hostname:l,pathname:c}=new URL(i.href instanceof SVGAnimatedString?i.href.animVal:i.href,i.baseURI),a=c.match(/\.\w+$/);a&&a[0]!==".html"||o!=="_blank"&&l===location.hostname&&(c!==location.pathname?n.observe(i):Mn.add(c))})})};bn(s);const r=hi();Xt(()=>r.path,s),yn(()=>{n&&n.disconnect()})}const ef=cs({setup(e,{slots:t}){const n=At(!1);return bn(()=>{n.value=!0}),()=>n.value&&t.default?t.default():null}});function tf(){if(Ce){const e=new Map;window.addEventListener("click",t=>{var s;const n=t.target;if(n.matches('div[class*="language-"] > button.copy')){const r=n.parentElement,i=(s=n.nextElementSibling)==null?void 0:s.nextElementSibling;if(!r||!i)return;const o=/language-(shellscript|shell|bash|sh|zsh)/.test(r.className);let l="";i.querySelectorAll("span.line:not(.diff.remove)").forEach(c=>l+=(c.textContent||"")+` +`),l=l.slice(0,-1),o&&(l=l.replace(/^ *(\$|>) /gm,"").trim()),xc(l).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const c=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,c)})}})}}async function xc(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const s=document.getSelection(),r=s?s.rangeCount>0&&s.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),r&&(s.removeAllRanges(),s.addRange(r)),n&&n.focus()}}function nf(){Ce&&window.addEventListener("click",e=>{var n,s;const t=e.target;if(t.matches(".vp-code-group input")){const r=(n=t.parentElement)==null?void 0:n.parentElement,i=Array.from((r==null?void 0:r.querySelectorAll("input"))||[]).indexOf(t),o=r==null?void 0:r.querySelector('div[class*="language-"].active'),l=(s=r==null?void 0:r.querySelectorAll('div[class*="language-"]:not(.language-id)'))==null?void 0:s[i];o&&l&&o!==l&&(o.classList.remove("active"),l.classList.add("active"))}})}export{Dc as $,Qr as A,vo as B,jc as C,dl as D,re as E,he as F,Fc as G,Pc as H,Vn as I,Wc as J,Mc as K,ci as L,Ce as M,Sc as N,Rc as O,qc as P,Ic as Q,Hc as R,Vc as S,oi as T,ht as U,Po as V,Bo as W,Jc as X,fo as Y,Ir as Z,kc as _,ti as a,Nc as a0,Oc as a1,Bc as a2,Uc as a3,Qc as a4,Gc as a5,tf as a6,nf as a7,kn as a8,hc as a9,zc as aa,uc as ab,Zc as ac,ef as ad,nt as ae,Kc as af,Xc as ag,dc as ah,gc as ai,ao as b,$c as c,cs as d,Ac as e,xr as f,Tc as g,At as h,Li as i,vc as j,Fo as k,ve as l,ni as m,zn as n,Xr as o,bn as p,rc as q,Lc as r,tr as s,Ec as t,Yc as u,sc as v,Xt as w,hi as x,yn as y,ei as z}; diff --git a/docs/assets/chunks/theme.592b6d28.js b/docs/assets/chunks/theme.592b6d28.js new file mode 100644 index 0000000..1227c2e --- /dev/null +++ b/docs/assets/chunks/theme.592b6d28.js @@ -0,0 +1,7 @@ +import{d as g,o as a,c as i,r,n as M,a as A,t as P,_ as p,u as Je,b as c,e as Ze,f as He,g as et,h as w,i as tt,j as nt,w as j,k as Q,l as k,m as st,p as F,q as ot,P as at,s as fe,v as K,x as ee,y as ie,z as u,F as S,A as y,B as v,T as pe,C as m,D as se,E as h,G as R,H as ct,I as Ee,J as lt,K as U,L as ze,M as it,N,O as H,Q as E,R as rt,S as Be,U as me,V as oe,W as ut,X as J,Y as ge,Z as dt,$ as _t,a0 as vt,a1 as ht,a2 as ft,a3 as pt}from"./framework.bdd825cc.js";const mt=g({__name:"VPBadge",props:{text:null,type:null},setup(e){return(t,n)=>(a(),i("span",{class:M(["VPBadge",e.type??"tip"])},[r(t.$slots,"default",{},()=>[A(P(e.text),1)],!0)],2))}});const gt=p(mt,[["__scopeId","data-v-ce917cfb"]]),V=Je;function De(e){return tt()?(nt(e),!0):!1}function Fe(e){return typeof e=="function"?e():c(e)}const yt=typeof window<"u",Oe=()=>{};function bt(...e){if(e.length!==1)return Ze(...e);const t=e[0];return typeof t=="function"?He(et(()=>({get:t,set:Oe}))):w(t)}function kt(e){var t;const n=Fe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ye=yt?window:void 0;function $t(...e){let t,n,s,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,o]=e,t=ye):[t,n,s,o]=e,!t)return Oe;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const l=[],d=()=>{l.forEach(x=>x()),l.length=0},f=(x,I,B,b)=>(x.addEventListener(I,B,b),()=>x.removeEventListener(I,B,b)),_=j(()=>[kt(t),Fe(o)],([x,I])=>{d(),x&&l.push(...n.flatMap(B=>s.map(b=>f(x,B,b,I))))},{immediate:!0,flush:"post"}),$=()=>{_(),d()};return De($),$}function Pt(){const e=w(!1);return st()&&F(()=>{e.value=!0}),e}function Vt(e){const t=Pt();return k(()=>(t.value,!!e()))}function _e(e,t={}){const{window:n=ye}=t,s=Vt(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const l=w(!1),d=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",f):o.removeListener(f))},f=()=>{s.value&&(d(),o=n.matchMedia(bt(e).value),l.value=!!(o!=null&&o.matches),o&&("addEventListener"in o?o.addEventListener("change",f):o.addListener(f)))};return Q(f),De(()=>d()),l}function wt({window:e=ye}={}){if(!e)return{x:w(0),y:w(0)};const t=w(e.scrollX),n=w(e.scrollY);return $t(e,"scroll",()=>{t.value=e.scrollX,n.value=e.scrollY},{capture:!1,passive:!0}),{x:t,y:n}}function xt(e,t){let n,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(e,t):(e(),s=!0,setTimeout(()=>{s=!1},t))}}function ve(e){return/^\//.test(e)?e:`/${e}`}function Z(e){if(ot(e))return e.replace(at,"");const{site:t}=V(),{pathname:n,search:s,hash:o}=new URL(e,"http://example.com"),l=n.endsWith("/")||n.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${n.replace(/(\.md)?$/,t.value.cleanUrls?"":".html")}${s}${o}`);return fe(l)}function Ge(e,t){if(Array.isArray(e))return e;if(e==null)return[];t=ve(t);const n=Object.keys(e).sort((s,o)=>o.split("/").length-s.split("/").length).find(s=>t.startsWith(ve(s)));return n?e[n]:[]}function St(e){const t=[];let n=0;for(const s in e){const o=e[s];if(o.items){n=t.push(o);continue}t[n]||t.push({items:[]}),t[n].items.push(o)}return t}function Lt(e){const t=[];function n(s){for(const o of s)o.text&&o.link&&t.push({text:o.text,link:o.link}),o.items&&n(o.items)}return n(e),t}function he(e,t){return Array.isArray(t)?t.some(n=>he(e,n)):K(e,t.link)?!0:t.items?he(e,t.items):!1}function z(){const e=ee(),{theme:t,frontmatter:n}=V(),s=_e("(min-width: 960px)"),o=w(!1),l=k(()=>{const C=t.value.sidebar,L=e.data.relativePath;return C?Ge(C,L):[]}),d=k(()=>n.value.sidebar!==!1&&l.value.length>0&&n.value.layout!=="home"),f=k(()=>_?n.value.aside==null?t.value.aside==="left":n.value.aside==="left":!1),_=k(()=>n.value.layout==="home"?!1:n.value.aside!=null?!!n.value.aside:t.value.aside!==!1),$=k(()=>d.value&&s.value),x=k(()=>d.value?St(l.value):[]);function I(){o.value=!0}function B(){o.value=!1}function b(){o.value?B():I()}return{isOpen:o,sidebar:l,sidebarGroups:x,hasSidebar:d,hasAside:_,leftAside:f,isSidebarEnabled:$,open:I,close:B,toggle:b}}function Mt(e,t){let n;Q(()=>{n=e.value?document.activeElement:void 0}),F(()=>{window.addEventListener("keyup",s)}),ie(()=>{window.removeEventListener("keyup",s)});function s(o){o.key==="Escape"&&e.value&&(t(),n==null||n.focus())}}function Ct(e){const{page:t}=V(),n=w(!1),s=k(()=>e.value.collapsed!=null),o=k(()=>!!e.value.link),l=k(()=>K(t.value.relativePath,e.value.link)),d=k(()=>l.value?!0:e.value.items?he(t.value.relativePath,e.value.items):!1),f=k(()=>!!(e.value.items&&e.value.items.length));Q(()=>{n.value=!!(s.value&&e.value.collapsed)}),Q(()=>{(l.value||d.value)&&(n.value=!1)});function _(){s.value&&(n.value=!n.value)}return{collapsed:n,collapsible:s,isLink:o,isActiveLink:l,hasActiveLink:d,hasChildren:f,toggle:_}}const It=g({__name:"VPSkipLink",setup(e){const t=ee(),n=w();j(()=>t.path,()=>n.value.focus());function s({target:o}){const l=document.querySelector(decodeURIComponent(o.hash));if(l){const d=()=>{l.removeAttribute("tabindex"),l.removeEventListener("blur",d)};l.setAttribute("tabindex","-1"),l.addEventListener("blur",d),l.focus(),window.scrollTo(0,0)}}return(o,l)=>(a(),i(S,null,[u("span",{ref_key:"backToTop",ref:n,tabindex:"-1"},null,512),u("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}});const Bt=p(It,[["__scopeId","data-v-73e3a132"]]),Tt={key:0,class:"VPBackdrop"},At=g({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(t,n)=>(a(),y(pe,{name:"fade"},{default:v(()=>[e.show?(a(),i("div",Tt)):m("",!0)]),_:1}))}});const Nt=p(At,[["__scopeId","data-v-54a304ca"]]);function Ht(){const e=w(!1);function t(){e.value=!0,window.addEventListener("resize",o)}function n(){e.value=!1,window.removeEventListener("resize",o)}function s(){e.value?n():t()}function o(){window.outerWidth>=768&&n()}const l=ee();return j(()=>l.path,n),{isScreenOpen:e,openScreen:t,closeScreen:n,toggleScreen:s}}function te({removeCurrent:e=!0,correspondingLink:t=!1}={}){const{site:n,localeIndex:s,page:o,theme:l}=V(),d=k(()=>{var _,$;return{label:(_=n.value.locales[s.value])==null?void 0:_.label,link:(($=n.value.locales[s.value])==null?void 0:$.link)||(s.value==="root"?"/":`/${s.value}/`)}});return{localeLinks:k(()=>Object.entries(n.value.locales).flatMap(([_,$])=>e&&d.value.label===$.label?[]:{text:$.label,link:Et($.link||(_==="root"?"/":`/${_}/`),l.value.i18nRouting!==!1&&t,o.value.relativePath.slice(d.value.link.length-1),!n.value.cleanUrls)})),currentLang:d}}function Et(e,t,n,s){return t?e.replace(/\/$/,"")+ve(n.replace(/(^|\/)?index.md$/,"$1").replace(/\.md$/,s?".html":"")):e}const zt=["src","alt"],Dt={inheritAttrs:!1},Ft=g({...Dt,__name:"VPImage",props:{image:null,alt:null},setup(e){return(t,n)=>{const s=R("VPImage",!0);return e.image?(a(),i(S,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),i("img",se({key:0,class:"VPImage"},typeof e.image=="string"?t.$attrs:{...e.image,...t.$attrs},{src:c(fe)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,zt)):(a(),i(S,{key:1},[h(s,se({class:"dark",image:e.image.dark,alt:e.image.alt},t.$attrs),null,16,["image","alt"]),h(s,se({class:"light",image:e.image.light,alt:e.image.alt},t.$attrs),null,16,["image","alt"])],64))],64)):m("",!0)}}});const be=p(Ft,[["__scopeId","data-v-dc109a54"]]),Ot=["href"],Gt=g({__name:"VPNavBarTitle",setup(e){const{site:t,theme:n}=V(),{hasSidebar:s}=z(),{currentLang:o}=te();return(l,d)=>(a(),i("div",{class:M(["VPNavBarTitle",{"has-sidebar":c(s)}])},[u("a",{class:"title",href:c(Z)(c(o).link)},[r(l.$slots,"nav-bar-title-before",{},void 0,!0),c(n).logo?(a(),y(be,{key:0,class:"logo",image:c(n).logo},null,8,["image"])):m("",!0),c(n).siteTitle?(a(),i(S,{key:1},[A(P(c(n).siteTitle),1)],64)):c(n).siteTitle===void 0?(a(),i(S,{key:2},[A(P(c(t).title),1)],64)):m("",!0),r(l.$slots,"nav-bar-title-after",{},void 0,!0)],8,Ot)],2))}});const Rt=p(Gt,[["__scopeId","data-v-1ab7b21f"]]);const Ut={type:"button",class:"DocSearch DocSearch-Button","aria-label":"Search"},qt={class:"DocSearch-Button-Container"},jt=u("svg",{class:"DocSearch-Search-Icon",width:"20",height:"20",viewBox:"0 0 20 20","aria-label":"search icon"},[u("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"})],-1),Kt={class:"DocSearch-Button-Placeholder"},Wt=u("span",{class:"DocSearch-Button-Keys"},[u("kbd",{class:"DocSearch-Button-Key"}),u("kbd",{class:"DocSearch-Button-Key"},"K")],-1),Te=g({__name:"VPNavBarSearchButton",props:{placeholder:null},setup(e){return(t,n)=>(a(),i("button",Ut,[u("span",qt,[jt,u("span",Kt,P(e.placeholder),1)]),Wt]))}});const Yt={id:"local-search"},Xt={key:1,id:"docsearch"},Qt=g({__name:"VPNavBarSearch",setup(e){const t=()=>null,n=ct(()=>lt(()=>import("./VPAlgoliaSearchBox.16b18f6c.js"),["assets/chunks/VPAlgoliaSearchBox.16b18f6c.js","assets/chunks/framework.bdd825cc.js"])),{theme:s,localeIndex:o}=V(),l=w(!1),d=k(()=>{var C,L,T,D,ne,W,Ie;const b=((C=s.value.search)==null?void 0:C.options)??s.value.algolia;return((ne=(D=(T=(L=b==null?void 0:b.locales)==null?void 0:L[o.value])==null?void 0:T.translations)==null?void 0:D.button)==null?void 0:ne.buttonText)||((Ie=(W=b==null?void 0:b.translations)==null?void 0:W.button)==null?void 0:Ie.buttonText)||"Search"}),f=()=>{const b="VPAlgoliaPreconnect";(window.requestIdleCallback||setTimeout)(()=>{var T;const L=document.createElement("link");L.id=b,L.rel="preconnect",L.href=`https://${(((T=s.value.search)==null?void 0:T.options)??s.value.algolia).appId}-dsn.algolia.net`,L.crossOrigin="",document.head.appendChild(L)})};F(()=>{f();const b=L=>{L.key==="k"&&(L.ctrlKey||L.metaKey)&&(L.preventDefault(),_(),C())},C=()=>{window.removeEventListener("keydown",b)};window.addEventListener("keydown",b),ie(C)});function _(){l.value||(l.value=!0,setTimeout($,16))}function $(){const b=new Event("keydown");b.key="k",b.metaKey=!0,window.dispatchEvent(b),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||$()},16)}const x=w(!1),I=w("'Meta'");F(()=>{I.value=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?"'⌘'":"'Ctrl'"});const B="algolia";return(b,C)=>{var L;return a(),i("div",{class:"VPNavBarSearch",style:Ee({"--vp-meta-key":I.value})},[c(B)==="local"?(a(),i(S,{key:0},[x.value?(a(),y(c(t),{key:0,placeholder:c(d),onClose:C[0]||(C[0]=T=>x.value=!1)},null,8,["placeholder"])):m("",!0),u("div",Yt,[h(Te,{placeholder:c(d),onClick:C[1]||(C[1]=T=>x.value=!0)},null,8,["placeholder"])])],64)):c(B)==="algolia"?(a(),i(S,{key:1},[l.value?(a(),y(c(n),{key:0,algolia:((L=c(s).search)==null?void 0:L.options)??c(s).algolia},null,8,["algolia"])):(a(),i("div",Xt,[h(Te,{placeholder:c(d),onClick:_},null,8,["placeholder"])]))],64)):m("",!0)],4)}}});const Jt={},Zt={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",height:"24px",viewBox:"0 0 24 24",width:"24px"},en=u("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),tn=u("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"},null,-1),nn=[en,tn];function sn(e,t){return a(),i("svg",Zt,nn)}const on=p(Jt,[["render",sn]]),an=g({__name:"VPLink",props:{tag:null,href:null,noIcon:{type:Boolean},target:null,rel:null},setup(e){const t=e,n=k(()=>t.tag??t.href?"a":"span"),s=k(()=>t.href&&ze.test(t.href));return(o,l)=>(a(),y(U(c(n)),{class:M(["VPLink",{link:e.href}]),href:e.href?c(Z)(e.href):void 0,target:e.target||(c(s)?"_blank":void 0),rel:e.rel||(c(s)?"noreferrer":void 0)},{default:v(()=>[r(o.$slots,"default",{},void 0,!0),c(s)&&!e.noIcon?(a(),y(on,{key:0,class:"icon"})):m("",!0)]),_:3},8,["class","href","target","rel"]))}});const O=p(an,[["__scopeId","data-v-f3ed0000"]]),cn=g({__name:"VPNavBarMenuLink",props:{item:null},setup(e){const{page:t}=V();return(n,s)=>(a(),y(O,{class:M({VPNavBarMenuLink:!0,active:c(K)(c(t).relativePath,e.item.activeMatch||e.item.link,!!e.item.activeMatch)}),href:e.item.link,target:e.item.target,rel:e.item.rel,tabindex:"0"},{default:v(()=>[A(P(e.item.text),1)]),_:1},8,["class","href","target","rel"]))}});const ln=p(cn,[["__scopeId","data-v-b7aed9c7"]]),ke=w();let Re=!1,de=0;function rn(e){const t=w(!1);if(it){!Re&&un(),de++;const n=j(ke,s=>{var o,l,d;s===e.el.value||(o=e.el.value)!=null&&o.contains(s)?(t.value=!0,(l=e.onFocus)==null||l.call(e)):(t.value=!1,(d=e.onBlur)==null||d.call(e))});ie(()=>{n(),de--,de||dn()})}return He(t)}function un(){document.addEventListener("focusin",Ue),Re=!0,ke.value=document.activeElement}function dn(){document.removeEventListener("focusin",Ue)}function Ue(){ke.value=document.activeElement}const _n={},vn={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},hn=u("path",{d:"M12,16c-0.3,0-0.5-0.1-0.7-0.3l-6-6c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l5.3,5.3l5.3-5.3c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-6,6C12.5,15.9,12.3,16,12,16z"},null,-1),fn=[hn];function pn(e,t){return a(),i("svg",vn,fn)}const qe=p(_n,[["render",pn]]),mn={},gn={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},yn=u("circle",{cx:"12",cy:"12",r:"2"},null,-1),bn=u("circle",{cx:"19",cy:"12",r:"2"},null,-1),kn=u("circle",{cx:"5",cy:"12",r:"2"},null,-1),$n=[yn,bn,kn];function Pn(e,t){return a(),i("svg",gn,$n)}const Vn=p(mn,[["render",Pn]]),wn={class:"VPMenuLink"},xn=g({__name:"VPMenuLink",props:{item:null},setup(e){const{page:t}=V();return(n,s)=>(a(),i("div",wn,[h(O,{class:M({active:c(K)(c(t).relativePath,e.item.activeMatch||e.item.link,!!e.item.activeMatch)}),href:e.item.link,target:e.item.target,rel:e.item.rel},{default:v(()=>[A(P(e.item.text),1)]),_:1},8,["class","href","target","rel"])]))}});const re=p(xn,[["__scopeId","data-v-fd8d5e7a"]]),Sn={class:"VPMenuGroup"},Ln={key:0,class:"title"},Mn=g({__name:"VPMenuGroup",props:{text:null,items:null},setup(e){return(t,n)=>(a(),i("div",Sn,[e.text?(a(),i("p",Ln,P(e.text),1)):m("",!0),(a(!0),i(S,null,N(e.items,s=>(a(),i(S,null,["link"in s?(a(),y(re,{key:0,item:s},null,8,["item"])):m("",!0)],64))),256))]))}});const Cn=p(Mn,[["__scopeId","data-v-a6b0397c"]]),In={class:"VPMenu"},Bn={key:0,class:"items"},Tn=g({__name:"VPMenu",props:{items:null},setup(e){return(t,n)=>(a(),i("div",In,[e.items?(a(),i("div",Bn,[(a(!0),i(S,null,N(e.items,s=>(a(),i(S,{key:s.text},["link"in s?(a(),y(re,{key:0,item:s},null,8,["item"])):(a(),y(Cn,{key:1,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):m("",!0),r(t.$slots,"default",{},void 0,!0)]))}});const An=p(Tn,[["__scopeId","data-v-e42ed9b3"]]),Nn=["aria-expanded","aria-label"],Hn={key:0,class:"text"},En={class:"menu"},zn=g({__name:"VPFlyout",props:{icon:null,button:null,label:null,items:null},setup(e){const t=w(!1),n=w();rn({el:n,onBlur:s});function s(){t.value=!1}return(o,l)=>(a(),i("div",{class:"VPFlyout",ref_key:"el",ref:n,onMouseenter:l[1]||(l[1]=d=>t.value=!0),onMouseleave:l[2]||(l[2]=d=>t.value=!1)},[u("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":t.value,"aria-label":e.label,onClick:l[0]||(l[0]=d=>t.value=!t.value)},[e.button||e.icon?(a(),i("span",Hn,[e.icon?(a(),y(U(e.icon),{key:0,class:"option-icon"})):m("",!0),A(" "+P(e.button)+" ",1),h(qe,{class:"text-icon"})])):(a(),y(Vn,{key:1,class:"icon"}))],8,Nn),u("div",En,[h(An,{items:e.items},{default:v(()=>[r(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}});const $e=p(zn,[["__scopeId","data-v-6afe904b"]]),Dn=g({__name:"VPNavBarMenuGroup",props:{item:null},setup(e){const{page:t}=V();return(n,s)=>(a(),y($e,{class:M({VPNavBarMenuGroup:!0,active:c(K)(c(t).relativePath,e.item.activeMatch,!!e.item.activeMatch)}),button:e.item.text,items:e.item.items},null,8,["class","button","items"]))}}),Fn=e=>(H("data-v-f732b5d0"),e=e(),E(),e),On={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Gn=Fn(()=>u("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Rn=g({__name:"VPNavBarMenu",setup(e){const{theme:t}=V();return(n,s)=>c(t).nav?(a(),i("nav",On,[Gn,(a(!0),i(S,null,N(c(t).nav,o=>(a(),i(S,{key:o.text},["link"in o?(a(),y(ln,{key:0,item:o},null,8,["item"])):(a(),y(Dn,{key:1,item:o},null,8,["item"]))],64))),128))])):m("",!0)}});const Un=p(Rn,[["__scopeId","data-v-f732b5d0"]]),qn={},jn={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Kn=u("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),Wn=u("path",{d:" M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",class:"css-c4d79v"},null,-1),Yn=[Kn,Wn];function Xn(e,t){return a(),i("svg",jn,Yn)}const je=p(qn,[["render",Xn]]),Qn={class:"items"},Jn={class:"title"},Zn=g({__name:"VPNavBarTranslations",setup(e){const{theme:t}=V(),{localeLinks:n,currentLang:s}=te({correspondingLink:!0});return(o,l)=>c(n).length&&c(s).label?(a(),y($e,{key:0,class:"VPNavBarTranslations",icon:je,label:c(t).langMenuLabel||"Change language"},{default:v(()=>[u("div",Qn,[u("p",Jn,P(c(s).label),1),(a(!0),i(S,null,N(c(n),d=>(a(),y(re,{key:d.link,item:d},null,8,["item"]))),128))])]),_:1},8,["label"])):m("",!0)}});const es=p(Zn,[["__scopeId","data-v-ff4524ae"]]);const ts={},ns={class:"VPSwitch",type:"button",role:"switch"},ss={class:"check"},os={key:0,class:"icon"};function as(e,t){return a(),i("button",ns,[u("span",ss,[e.$slots.default?(a(),i("span",os,[r(e.$slots,"default",{},void 0,!0)])):m("",!0)])])}const cs=p(ts,[["render",as],["__scopeId","data-v-92d8f6fb"]]),ls={},is={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},rs=rt('',9),us=[rs];function ds(e,t){return a(),i("svg",is,us)}const _s=p(ls,[["render",ds]]),vs={},hs={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},fs=u("path",{d:"M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"},null,-1),ps=[fs];function ms(e,t){return a(),i("svg",hs,ps)}const gs=p(vs,[["render",ms]]),ys={title:"toggle dark mode"},bs=g({__name:"VPSwitchAppearance",setup(e){const{site:t,isDark:n}=V(),s=w(!1),o=typeof localStorage<"u"?l():()=>{};F(()=>{s.value=document.documentElement.classList.contains("dark")});function l(){const d=window.matchMedia("(prefers-color-scheme: dark)"),f=document.documentElement.classList;let _=localStorage.getItem(Be),$=t.value.appearance==="dark"&&_==null||(_==="auto"||_==null?d.matches:_==="dark");d.onchange=B=>{_==="auto"&&I($=B.matches)};function x(){I($=!$),_=$?d.matches?"auto":"dark":d.matches?"light":"auto",localStorage.setItem(Be,_)}function I(B){const b=document.createElement("style");b.type="text/css",b.appendChild(document.createTextNode(`:not(.VPSwitchAppearance):not(.VPSwitchAppearance *) { + -webkit-transition: none !important; + -moz-transition: none !important; + -o-transition: none !important; + -ms-transition: none !important; + transition: none !important; +}`)),document.head.appendChild(b),s.value=B,f[B?"add":"remove"]("dark"),window.getComputedStyle(b).opacity,document.head.removeChild(b)}return x}return j(s,d=>{n.value=d}),(d,f)=>(a(),i("label",ys,[h(cs,{class:"VPSwitchAppearance","aria-checked":s.value,onClick:c(o)},{default:v(()=>[h(_s,{class:"sun"}),h(gs,{class:"moon"})]),_:1},8,["aria-checked","onClick"])]))}});const Pe=p(bs,[["__scopeId","data-v-67878c63"]]),ks={key:0,class:"VPNavBarAppearance"},$s=g({__name:"VPNavBarAppearance",setup(e){const{site:t}=V();return(n,s)=>c(t).appearance?(a(),i("div",ks,[h(Pe)])):m("",!0)}});const Ps=p($s,[["__scopeId","data-v-5e9f0637"]]),Vs={discord:'Discord',facebook:'Facebook',github:'GitHub',instagram:'Instagram',linkedin:'LinkedIn',mastodon:'Mastodon',slack:'Slack',twitter:'Twitter',youtube:'YouTube'},ws=["href","aria-label","innerHTML"],xs=g({__name:"VPSocialLink",props:{icon:null,link:null},setup(e){const t=e,n=k(()=>typeof t.icon=="object"?t.icon.svg:Vs[t.icon]);return(s,o)=>(a(),i("a",{class:"VPSocialLink",href:e.link,"aria-label":typeof e.icon=="string"?e.icon:"",target:"_blank",rel:"noopener",innerHTML:c(n)},null,8,ws))}});const Ss=p(xs,[["__scopeId","data-v-dbecf575"]]),Ls={class:"VPSocialLinks"},Ms=g({__name:"VPSocialLinks",props:{links:null},setup(e){return(t,n)=>(a(),i("div",Ls,[(a(!0),i(S,null,N(e.links,({link:s,icon:o})=>(a(),y(Ss,{key:s,icon:o,link:s},null,8,["icon","link"]))),128))]))}});const Ve=p(Ms,[["__scopeId","data-v-b8f6762d"]]),Cs=g({__name:"VPNavBarSocialLinks",setup(e){const{theme:t}=V();return(n,s)=>c(t).socialLinks?(a(),y(Ve,{key:0,class:"VPNavBarSocialLinks",links:c(t).socialLinks},null,8,["links"])):m("",!0)}});const Is=p(Cs,[["__scopeId","data-v-ef6192dc"]]),Bs={key:0,class:"group translations"},Ts={class:"trans-title"},As={key:1,class:"group"},Ns={class:"item appearance"},Hs={class:"label"},Es={class:"appearance-action"},zs={key:2,class:"group"},Ds={class:"item social-links"},Fs=g({__name:"VPNavBarExtra",setup(e){const{site:t,theme:n}=V(),{localeLinks:s,currentLang:o}=te({correspondingLink:!0}),l=k(()=>s.value.length&&o.value.label||t.value.appearance||n.value.socialLinks);return(d,f)=>c(l)?(a(),y($e,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[c(s).length&&c(o).label?(a(),i("div",Bs,[u("p",Ts,P(c(o).label),1),(a(!0),i(S,null,N(c(s),_=>(a(),y(re,{key:_.link,item:_},null,8,["item"]))),128))])):m("",!0),c(t).appearance?(a(),i("div",As,[u("div",Ns,[u("p",Hs,P(c(n).darkModeSwitchLabel||"Appearance"),1),u("div",Es,[h(Pe)])])])):m("",!0),c(n).socialLinks?(a(),i("div",zs,[u("div",Ds,[h(Ve,{class:"social-links-list",links:c(n).socialLinks},null,8,["links"])])])):m("",!0)]),_:1})):m("",!0)}});const Os=p(Fs,[["__scopeId","data-v-c8c2ae4b"]]),Gs=e=>(H("data-v-6bee1efd"),e=e(),E(),e),Rs=["aria-expanded"],Us=Gs(()=>u("span",{class:"container"},[u("span",{class:"top"}),u("span",{class:"middle"}),u("span",{class:"bottom"})],-1)),qs=[Us],js=g({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(e){return(t,n)=>(a(),i("button",{type:"button",class:M(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:n[0]||(n[0]=s=>t.$emit("click"))},qs,10,Rs))}});const Ks=p(js,[["__scopeId","data-v-6bee1efd"]]),Ws=e=>(H("data-v-c388e33c"),e=e(),E(),e),Ys={class:"container"},Xs={class:"title"},Qs={class:"content"},Js=Ws(()=>u("div",{class:"curtain"},null,-1)),Zs={class:"content-body"},eo=g({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(e){const{y:t}=wt(),{hasSidebar:n}=z(),s=k(()=>({"has-sidebar":n.value,fill:t.value>0}));return(o,l)=>(a(),i("div",{class:M(["VPNavBar",c(s)])},[u("div",Ys,[u("div",Xs,[h(Rt,null,{"nav-bar-title-before":v(()=>[r(o.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[r(o.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),u("div",Qs,[Js,u("div",Zs,[r(o.$slots,"nav-bar-content-before",{},void 0,!0),h(Qt,{class:"search"}),h(Un,{class:"menu"}),h(es,{class:"translations"}),h(Ps,{class:"appearance"}),h(Is,{class:"social-links"}),h(Os,{class:"extra"}),r(o.$slots,"nav-bar-content-after",{},void 0,!0),h(Ks,{class:"hamburger",active:e.isScreenOpen,onClick:l[0]||(l[0]=d=>o.$emit("toggle-screen"))},null,8,["active"])])])])],2))}});const to=p(eo,[["__scopeId","data-v-c388e33c"]]);function no(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1),q=[],ce=!1,xe=-1,Y=void 0,G=void 0,X=void 0,Ke=function(t){return q.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(t))})},le=function(t){var n=t||window.event;return Ke(n.target)||n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)},so=function(t){if(X===void 0){var n=!!t&&t.reserveScrollBarGap===!0,s=window.innerWidth-document.documentElement.clientWidth;if(n&&s>0){var o=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);X=document.body.style.paddingRight,document.body.style.paddingRight=o+s+"px"}}Y===void 0&&(Y=document.body.style.overflow,document.body.style.overflow="hidden")},oo=function(){X!==void 0&&(document.body.style.paddingRight=X,X=void 0),Y!==void 0&&(document.body.style.overflow=Y,Y=void 0)},ao=function(){return window.requestAnimationFrame(function(){if(G===void 0){G={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var t=window,n=t.scrollY,s=t.scrollX,o=t.innerHeight;document.body.style.position="fixed",document.body.style.top=-n,document.body.style.left=-s,setTimeout(function(){return window.requestAnimationFrame(function(){var l=o-window.innerHeight;l&&n>=o&&(document.body.style.top=-(n+l))})},300)}})},co=function(){if(G!==void 0){var t=-parseInt(document.body.style.top,10),n=-parseInt(document.body.style.left,10);document.body.style.position=G.position,document.body.style.top=G.top,document.body.style.left=G.left,window.scrollTo(n,t),G=void 0}},lo=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},io=function(t,n){var s=t.targetTouches[0].clientY-xe;return Ke(t.target)?!1:n&&n.scrollTop===0&&s>0||lo(n)&&s<0?le(t):(t.stopPropagation(),!0)},We=function(t,n){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!q.some(function(o){return o.targetElement===t})){var s={targetElement:t,options:n||{}};q=[].concat(no(q),[s]),ae?ao():so(n),ae&&(t.ontouchstart=function(o){o.targetTouches.length===1&&(xe=o.targetTouches[0].clientY)},t.ontouchmove=function(o){o.targetTouches.length===1&&io(o,t)},ce||(document.addEventListener("touchmove",le,we?{passive:!1}:void 0),ce=!0))}},Ye=function(){ae&&(q.forEach(function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null}),ce&&(document.removeEventListener("touchmove",le,we?{passive:!1}:void 0),ce=!1),xe=-1),ae?co():oo(),q=[]};const ro=g({__name:"VPNavScreenMenuLink",props:{text:null,link:null},setup(e){const t=me("close-screen");return(n,s)=>(a(),y(O,{class:"VPNavScreenMenuLink",href:e.link,onClick:c(t)},{default:v(()=>[A(P(e.text),1)]),_:1},8,["href","onClick"]))}});const uo=p(ro,[["__scopeId","data-v-a3572c96"]]),_o={},vo={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},ho=u("path",{d:"M18.9,10.9h-6v-6c0-0.6-0.4-1-1-1s-1,0.4-1,1v6h-6c-0.6,0-1,0.4-1,1s0.4,1,1,1h6v6c0,0.6,0.4,1,1,1s1-0.4,1-1v-6h6c0.6,0,1-0.4,1-1S19.5,10.9,18.9,10.9z"},null,-1),fo=[ho];function po(e,t){return a(),i("svg",vo,fo)}const mo=p(_o,[["render",po]]),go=g({__name:"VPNavScreenMenuGroupLink",props:{text:null,link:null},setup(e){const t=me("close-screen");return(n,s)=>(a(),y(O,{class:"VPNavScreenMenuGroupLink",href:e.link,onClick:c(t)},{default:v(()=>[A(P(e.text),1)]),_:1},8,["href","onClick"]))}});const Xe=p(go,[["__scopeId","data-v-d67c9e09"]]),yo={class:"VPNavScreenMenuGroupSection"},bo={key:0,class:"title"},ko=g({__name:"VPNavScreenMenuGroupSection",props:{text:null,items:null},setup(e){return(t,n)=>(a(),i("div",yo,[e.text?(a(),i("p",bo,P(e.text),1)):m("",!0),(a(!0),i(S,null,N(e.items,s=>(a(),y(Xe,{key:s.text,text:s.text,link:s.link},null,8,["text","link"]))),128))]))}});const $o=p(ko,[["__scopeId","data-v-1f191989"]]),Po=["aria-controls","aria-expanded"],Vo={class:"button-text"},wo=["id"],xo={key:1,class:"group"},So=g({__name:"VPNavScreenMenuGroup",props:{text:null,items:null},setup(e){const t=e,n=w(!1),s=k(()=>`NavScreenGroup-${t.text.replace(" ","-").toLowerCase()}`);function o(){n.value=!n.value}return(l,d)=>(a(),i("div",{class:M(["VPNavScreenMenuGroup",{open:n.value}])},[u("button",{class:"button","aria-controls":c(s),"aria-expanded":n.value,onClick:o},[u("span",Vo,P(e.text),1),h(mo,{class:"button-icon"})],8,Po),u("div",{id:c(s),class:"items"},[(a(!0),i(S,null,N(e.items,f=>(a(),i(S,{key:f.text},["link"in f?(a(),i("div",{key:f.text,class:"item"},[h(Xe,{text:f.text,link:f.link},null,8,["text","link"])])):(a(),i("div",xo,[h($o,{text:f.text,items:f.items},null,8,["text","items"])]))],64))),128))],8,wo)],2))}});const Lo=p(So,[["__scopeId","data-v-76b97020"]]),Mo={key:0,class:"VPNavScreenMenu"},Co=g({__name:"VPNavScreenMenu",setup(e){const{theme:t}=V();return(n,s)=>c(t).nav?(a(),i("nav",Mo,[(a(!0),i(S,null,N(c(t).nav,o=>(a(),i(S,{key:o.text},["link"in o?(a(),y(uo,{key:0,text:o.text,link:o.link},null,8,["text","link"])):(a(),y(Lo,{key:1,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):m("",!0)}}),Io={key:0,class:"VPNavScreenAppearance"},Bo={class:"text"},To=g({__name:"VPNavScreenAppearance",setup(e){const{site:t,theme:n}=V();return(s,o)=>c(t).appearance?(a(),i("div",Io,[u("p",Bo,P(c(n).darkModeSwitchLabel||"Appearance"),1),h(Pe)])):m("",!0)}});const Ao=p(To,[["__scopeId","data-v-0dc5cf49"]]),No={class:"list"},Ho=g({__name:"VPNavScreenTranslations",setup(e){const{localeLinks:t,currentLang:n}=te({correspondingLink:!0}),s=w(!1);function o(){s.value=!s.value}return(l,d)=>c(t).length&&c(n).label?(a(),i("div",{key:0,class:M(["VPNavScreenTranslations",{open:s.value}])},[u("button",{class:"title",onClick:o},[h(je,{class:"icon lang"}),A(" "+P(c(n).label)+" ",1),h(qe,{class:"icon chevron"})]),u("ul",No,[(a(!0),i(S,null,N(c(t),f=>(a(),i("li",{key:f.link,class:"item"},[h(O,{class:"link",href:f.link},{default:v(()=>[A(P(f.text),1)]),_:2},1032,["href"])]))),128))])],2)):m("",!0)}});const Eo=p(Ho,[["__scopeId","data-v-41505286"]]),zo=g({__name:"VPNavScreenSocialLinks",setup(e){const{theme:t}=V();return(n,s)=>c(t).socialLinks?(a(),y(Ve,{key:0,class:"VPNavScreenSocialLinks",links:c(t).socialLinks},null,8,["links"])):m("",!0)}}),Do={class:"container"},Fo=g({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(e){const t=w(null);function n(){We(t.value,{reserveScrollBarGap:!0})}function s(){Ye()}return(o,l)=>(a(),y(pe,{name:"fade",onEnter:n,onAfterLeave:s},{default:v(()=>[e.open?(a(),i("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:t},[u("div",Do,[r(o.$slots,"nav-screen-content-before",{},void 0,!0),h(Co,{class:"menu"}),h(Eo,{class:"translations"}),h(Ao,{class:"appearance"}),h(zo,{class:"social-links"}),r(o.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):m("",!0)]),_:3}))}});const Oo=p(Fo,[["__scopeId","data-v-183ec3ec"]]),Go={class:"VPNav"},Ro=g({__name:"VPNav",setup(e){const{isScreenOpen:t,closeScreen:n,toggleScreen:s}=Ht();return oe("close-screen",n),(o,l)=>(a(),i("header",Go,[h(to,{"is-screen-open":c(t),onToggleScreen:c(s)},{"nav-bar-title-before":v(()=>[r(o.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[r(o.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[r(o.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[r(o.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),h(Oo,{open:c(t)},{"nav-screen-content-before":v(()=>[r(o.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[r(o.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])]))}});const Uo=p(Ro,[["__scopeId","data-v-5bdc5df3"]]),qo={},jo={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Ko=u("path",{d:"M17,11H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,11,17,11z"},null,-1),Wo=u("path",{d:"M21,7H3C2.4,7,2,6.6,2,6s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,7,21,7z"},null,-1),Yo=u("path",{d:"M21,15H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,15,21,15z"},null,-1),Xo=u("path",{d:"M17,19H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,19,17,19z"},null,-1),Qo=[Ko,Wo,Yo,Xo];function Jo(e,t){return a(),i("svg",jo,Qo)}const Zo=p(qo,[["render",Jo]]);function ea(){const{hasSidebar:e}=z(),t=_e("(min-width: 960px)"),n=_e("(min-width: 1280px)");return{isAsideEnabled:k(()=>!n.value&&!t.value?!1:e.value?n.value:t.value)}}const ta=71;function Se(e){return typeof e.outline=="object"&&!Array.isArray(e.outline)&&e.outline.label||e.outlineTitle||"On this page"}function Le(e){const t=[...document.querySelectorAll(".VPDoc h2,h3,h4,h5,h6")].filter(n=>n.id&&n.hasChildNodes()).map(n=>{const s=Number(n.tagName[1]);return{title:na(n),link:"#"+n.id,level:s}});return sa(t,e)}function na(e){let t="";for(const n of e.childNodes)if(n.nodeType===1){if(n.classList.contains("VPBadge")||n.classList.contains("header-anchor"))continue;t+=n.textContent}else n.nodeType===3&&(t+=n.textContent);return t.trim()}function sa(e,t){if(t===!1)return[];const n=(typeof t=="object"&&!Array.isArray(t)?t.level:t)||2,[s,o]=typeof n=="number"?[n,n]:n==="deep"?[2,6]:n;e=e.filter(d=>d.level>=s&&d.level<=o);const l=[];e:for(let d=0;d=0;_--){const $=e[_];if($.level{requestAnimationFrame(l),window.addEventListener("scroll",s)}),ut(()=>{d(location.hash)}),ie(()=>{window.removeEventListener("scroll",s)});function l(){if(!n.value)return;const f=[].slice.call(e.value.querySelectorAll(".outline-link")),_=[].slice.call(document.querySelectorAll(".content .header-anchor")).filter(b=>f.some(C=>C.hash===b.hash&&b.offsetParent!==null)),$=window.scrollY,x=window.innerHeight,I=document.body.offsetHeight,B=Math.abs($+x-I)<1;if(_.length&&B){d(_[_.length-1].hash);return}for(let b=0;b<_.length;b++){const C=_[b],L=_[b+1],[T,D]=aa(b,C,L);if(T){d(D);return}}}function d(f){o&&o.classList.remove("active"),f!==null&&(o=e.value.querySelector(`a[href="${decodeURIComponent(f)}"]`));const _=o;_?(_.classList.add("active"),t.value.style.top=_.offsetTop+33+"px",t.value.style.opacity="1"):(t.value.style.top="33px",t.value.style.opacity="0")}}function Ne(e){return e.parentElement.offsetTop-ta}function aa(e,t,n){const s=window.scrollY;return e===0&&s===0?[!0,null]:s{const o=R("VPDocOutlineItem",!0);return a(),i("ul",{class:M(e.root?"root":"nested")},[(a(!0),i(S,null,N(e.headers,({children:l,link:d,title:f})=>(a(),i("li",null,[u("a",{class:"outline-link",href:d,onClick:t,title:f},P(f),9,ca),l!=null&&l.length?(a(),y(o,{key:0,headers:l},null,8,["headers"])):m("",!0)]))),256))],2)}}});const Me=p(la,[["__scopeId","data-v-a379eb72"]]),ia={},ra={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},ua=u("path",{d:"M9,19c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l5.3-5.3L8.3,6.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l6,6c0.4,0.4,0.4,1,0,1.4l-6,6C9.5,18.9,9.3,19,9,19z"},null,-1),da=[ua];function _a(e,t){return a(),i("svg",ra,da)}const Ce=p(ia,[["render",_a]]),va=g({__name:"VPLocalNavOutlineDropdown",setup(e){const{frontmatter:t,theme:n}=V(),s=w(!1),o=w(0),l=w();J(()=>{s.value=!1});function d(){s.value=!s.value,o.value=window.innerHeight+Math.min(window.scrollY-64,0)}function f(x){x.target.classList.contains("outline-link")&&(l.value&&(l.value.style.transition="none"),dt(()=>{s.value=!1}))}function _(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}const $=ge([]);return J(()=>{$.value=Le(t.value.outline??n.value.outline)}),(x,I)=>(a(),i("div",{class:"VPLocalNavOutlineDropdown",style:Ee({"--vp-vh":o.value+"px"})},[c($).length>0?(a(),i("button",{key:0,onClick:d,class:M({open:s.value})},[A(P(c(Se)(c(n)))+" ",1),h(Ce,{class:"icon"})],2)):(a(),i("button",{key:1,onClick:_},P(c(n).returnToTopLabel||"Return to top"),1)),h(pe,{name:"flyout"},{default:v(()=>[s.value?(a(),i("div",{key:0,ref_key:"items",ref:l,class:"items",onClick:f},[u("a",{class:"top-link",href:"#",onClick:_},P(c(n).returnToTopLabel||"Return to top"),1),h(Me,{headers:c($)},null,8,["headers"])],512)):m("",!0)]),_:1})],4))}});const ha=p(va,[["__scopeId","data-v-fb63c957"]]),fa={key:0,class:"VPLocalNav"},pa=["aria-expanded"],ma={class:"menu-text"},ga=g({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(e){const{theme:t,frontmatter:n}=V(),{hasSidebar:s}=z();return(o,l)=>c(n).layout!=="home"?(a(),i("div",fa,[c(s)?(a(),i("button",{key:0,class:"menu","aria-expanded":e.open,"aria-controls":"VPSidebarNav",onClick:l[0]||(l[0]=d=>o.$emit("open-menu"))},[h(Zo,{class:"menu-icon"}),u("span",ma,P(c(t).sidebarMenuLabel||"Menu"),1)],8,pa)):m("",!0),h(ha)])):m("",!0)}});const ya=p(ga,[["__scopeId","data-v-d1e27b08"]]),ba=e=>(H("data-v-0bb349fd"),e=e(),E(),e),ka=["role","tabindex"],$a=ba(()=>u("div",{class:"indicator"},null,-1)),Pa=["onKeydown"],Va={key:1,class:"items"},wa=g({__name:"VPSidebarItem",props:{item:null,depth:null},setup(e){const t=e,{collapsed:n,collapsible:s,isLink:o,isActiveLink:l,hasActiveLink:d,hasChildren:f,toggle:_}=Ct(k(()=>t.item)),$=k(()=>f.value?"section":"div"),x=k(()=>o.value?"a":"div"),I=k(()=>f.value?t.depth+2===7?"p":`h${t.depth+2}`:"p"),B=k(()=>o.value?void 0:"button"),b=k(()=>[[`level-${t.depth}`],{collapsible:s.value},{collapsed:n.value},{"is-link":o.value},{"is-active":l.value},{"has-active":d.value}]);function C(T){"key"in T&&T.key!=="Enter"||!t.item.link&&_()}function L(){t.item.link&&_()}return(T,D)=>{const ne=R("VPSidebarItem",!0);return a(),y(U(c($)),{class:M(["VPSidebarItem",c(b)])},{default:v(()=>[e.item.text?(a(),i("div",se({key:0,class:"item",role:c(B)},vt(e.item.items?{click:C,keydown:C}:{},!0),{tabindex:e.item.items&&0}),[$a,e.item.link?(a(),y(O,{key:0,tag:c(x),class:"link",href:e.item.link},{default:v(()=>[(a(),y(U(c(I)),{class:"text",innerHTML:e.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href"])):(a(),y(U(c(I)),{key:1,class:"text",innerHTML:e.item.text},null,8,["innerHTML"])),e.item.collapsed!=null?(a(),i("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:L,onKeydown:_t(L,["enter"]),tabindex:"0"},[h(Ce,{class:"caret-icon"})],40,Pa)):m("",!0)],16,ka)):m("",!0),e.item.items&&e.item.items.length?(a(),i("div",Va,[e.depth<5?(a(!0),i(S,{key:0},N(e.item.items,W=>(a(),y(ne,{key:W.text,item:W,depth:e.depth+1},null,8,["item","depth"]))),128)):m("",!0)])):m("",!0)]),_:1},8,["class"])}}});const xa=p(wa,[["__scopeId","data-v-0bb349fd"]]),Qe=e=>(H("data-v-fe05da0a"),e=e(),E(),e),Sa=Qe(()=>u("div",{class:"curtain"},null,-1)),La={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},Ma=Qe(()=>u("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),Ca=g({__name:"VPSidebar",props:{open:{type:Boolean}},setup(e){const t=e,{sidebarGroups:n,hasSidebar:s}=z();let o=w(null);function l(){We(o.value,{reserveScrollBarGap:!0})}function d(){Ye()}return ht(async()=>{var f;t.open?(l(),(f=o.value)==null||f.focus()):d()}),(f,_)=>c(s)?(a(),i("aside",{key:0,class:M(["VPSidebar",{open:e.open}]),ref_key:"navEl",ref:o,onClick:_[0]||(_[0]=ft(()=>{},["stop"]))},[Sa,u("nav",La,[Ma,r(f.$slots,"sidebar-nav-before",{},void 0,!0),(a(!0),i(S,null,N(c(n),$=>(a(),i("div",{key:$.text,class:"group"},[h(xa,{item:$,depth:0},null,8,["item"])]))),128)),r(f.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):m("",!0)}});const Ia=p(Ca,[["__scopeId","data-v-fe05da0a"]]),Ba={},Ta={class:"VPPage"};function Aa(e,t){const n=R("Content");return a(),i("div",Ta,[r(e.$slots,"page-top"),h(n),r(e.$slots,"page-bottom")])}const Na=p(Ba,[["render",Aa]]),Ha=g({__name:"VPButton",props:{tag:null,size:null,theme:null,text:null,href:null},setup(e){const t=e,n=k(()=>[t.size??"medium",t.theme??"brand"]),s=k(()=>t.href&&ze.test(t.href)),o=k(()=>t.tag?t.tag:t.href?"a":"button");return(l,d)=>(a(),y(U(c(o)),{class:M(["VPButton",c(n)]),href:e.href?c(Z)(e.href):void 0,target:c(s)?"_blank":void 0,rel:c(s)?"noreferrer":void 0},{default:v(()=>[A(P(e.text),1)]),_:1},8,["class","href","target","rel"]))}});const Ea=p(Ha,[["__scopeId","data-v-fa1633a1"]]),za=e=>(H("data-v-73fffaef"),e=e(),E(),e),Da={class:"container"},Fa={class:"main"},Oa={key:0,class:"name"},Ga={class:"clip"},Ra={key:1,class:"text"},Ua={key:2,class:"tagline"},qa={key:0,class:"actions"},ja={key:0,class:"image"},Ka={class:"image-container"},Wa=za(()=>u("div",{class:"image-bg"},null,-1)),Ya=g({__name:"VPHero",props:{name:null,text:null,tagline:null,image:null,actions:null},setup(e){const t=me("hero-image-slot-exists");return(n,s)=>(a(),i("div",{class:M(["VPHero",{"has-image":e.image||c(t)}])},[u("div",Da,[u("div",Fa,[r(n.$slots,"home-hero-info",{},()=>[e.name?(a(),i("h1",Oa,[u("span",Ga,P(e.name),1)])):m("",!0),e.text?(a(),i("p",Ra,P(e.text),1)):m("",!0),e.tagline?(a(),i("p",Ua,P(e.tagline),1)):m("",!0)],!0),e.actions?(a(),i("div",qa,[(a(!0),i(S,null,N(e.actions,o=>(a(),i("div",{key:o.link,class:"action"},[h(Ea,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link},null,8,["theme","text","href"])]))),128))])):m("",!0)]),e.image||c(t)?(a(),i("div",ja,[u("div",Ka,[Wa,r(n.$slots,"home-hero-image",{},()=>[e.image?(a(),y(be,{key:0,class:"image-src",image:e.image},null,8,["image"])):m("",!0)],!0)])])):m("",!0)])],2))}});const Xa=p(Ya,[["__scopeId","data-v-73fffaef"]]),Qa=g({__name:"VPHomeHero",setup(e){const{frontmatter:t}=V();return(n,s)=>c(t).hero?(a(),y(Xa,{key:0,class:"VPHomeHero",name:c(t).hero.name,text:c(t).hero.text,tagline:c(t).hero.tagline,image:c(t).hero.image,actions:c(t).hero.actions},{"home-hero-info":v(()=>[r(n.$slots,"home-hero-info")]),"home-hero-image":v(()=>[r(n.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):m("",!0)}}),Ja={},Za={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ec=u("path",{d:"M19.9,12.4c0.1-0.2,0.1-0.5,0-0.8c-0.1-0.1-0.1-0.2-0.2-0.3l-7-7c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l5.3,5.3H5c-0.6,0-1,0.4-1,1s0.4,1,1,1h11.6l-5.3,5.3c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l7-7C19.8,12.6,19.9,12.5,19.9,12.4z"},null,-1),tc=[ec];function nc(e,t){return a(),i("svg",Za,tc)}const sc=p(Ja,[["render",nc]]),oc={class:"box"},ac=["innerHTML"],cc=["innerHTML"],lc=["innerHTML"],ic={key:3,class:"link-text"},rc={class:"link-text-value"},uc=g({__name:"VPFeature",props:{icon:null,title:null,details:null,link:null,linkText:null},setup(e){return(t,n)=>(a(),y(O,{class:"VPFeature",href:e.link,"no-icon":!0},{default:v(()=>[u("article",oc,[typeof e.icon=="object"?(a(),y(be,{key:0,image:e.icon,alt:e.icon.alt,height:e.icon.height,width:e.icon.width},null,8,["image","alt","height","width"])):e.icon?(a(),i("div",{key:1,class:"icon",innerHTML:e.icon},null,8,ac)):m("",!0),u("h2",{class:"title",innerHTML:e.title},null,8,cc),e.details?(a(),i("p",{key:2,class:"details",innerHTML:e.details},null,8,lc)):m("",!0),e.linkText?(a(),i("div",ic,[u("p",rc,[A(P(e.linkText)+" ",1),h(sc,{class:"link-text-icon"})])])):m("",!0)])]),_:1},8,["href"]))}});const dc=p(uc,[["__scopeId","data-v-5f01e926"]]),_c={key:0,class:"VPFeatures"},vc={class:"container"},hc={class:"items"},fc=g({__name:"VPFeatures",props:{features:null},setup(e){const t=e,n=k(()=>{const s=t.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s%2===0)return"grid-4"}else return});return(s,o)=>e.features?(a(),i("div",_c,[u("div",vc,[u("div",hc,[(a(!0),i(S,null,N(e.features,l=>(a(),i("div",{key:l.title,class:M(["item",[c(n)]])},[h(dc,{icon:l.icon,title:l.title,details:l.details,link:l.link,"link-text":l.linkText},null,8,["icon","title","details","link","link-text"])],2))),128))])])])):m("",!0)}});const pc=p(fc,[["__scopeId","data-v-5df66ecb"]]),mc=g({__name:"VPHomeFeatures",setup(e){const{frontmatter:t}=V();return(n,s)=>c(t).features?(a(),y(pc,{key:0,class:"VPHomeFeatures",features:c(t).features},null,8,["features"])):m("",!0)}}),gc={class:"VPHome"},yc=g({__name:"VPHome",setup(e){return(t,n)=>{const s=R("Content");return a(),i("div",gc,[r(t.$slots,"home-hero-before",{},void 0,!0),h(Qa,null,{"home-hero-info":v(()=>[r(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[r(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),r(t.$slots,"home-hero-after",{},void 0,!0),r(t.$slots,"home-features-before",{},void 0,!0),h(mc),r(t.$slots,"home-features-after",{},void 0,!0),h(s)])}}});const bc=p(yc,[["__scopeId","data-v-20eabd3a"]]),kc=e=>(H("data-v-c834746b"),e=e(),E(),e),$c={class:"content"},Pc={class:"outline-title"},Vc={"aria-labelledby":"doc-outline-aria-label"},wc=kc(()=>u("span",{class:"visually-hidden",id:"doc-outline-aria-label"}," Table of Contents for current page ",-1)),xc=g({__name:"VPDocAsideOutline",setup(e){const{frontmatter:t,theme:n}=V(),s=ge([]);J(()=>{s.value=Le(t.value.outline??n.value.outline)});const o=w(),l=w();return oa(o,l),(d,f)=>(a(),i("div",{class:M(["VPDocAsideOutline",{"has-outline":c(s).length>0}]),ref_key:"container",ref:o},[u("div",$c,[u("div",{class:"outline-marker",ref_key:"marker",ref:l},null,512),u("div",Pc,P(c(Se)(c(n))),1),u("nav",Vc,[wc,h(Me,{headers:c(s),root:!0},null,8,["headers"])])])],2))}});const Sc=p(xc,[["__scopeId","data-v-c834746b"]]),Lc={class:"VPDocAsideCarbonAds"},Mc=g({__name:"VPDocAsideCarbonAds",props:{carbonAds:null},setup(e){const t=()=>null;return(n,s)=>(a(),i("div",Lc,[h(c(t),{"carbon-ads":e.carbonAds},null,8,["carbon-ads"])]))}}),Cc=e=>(H("data-v-cb998dce"),e=e(),E(),e),Ic={class:"VPDocAside"},Bc=Cc(()=>u("div",{class:"spacer"},null,-1)),Tc=g({__name:"VPDocAside",setup(e){const{theme:t}=V();return(n,s)=>(a(),i("div",Ic,[r(n.$slots,"aside-top",{},void 0,!0),r(n.$slots,"aside-outline-before",{},void 0,!0),h(Sc),r(n.$slots,"aside-outline-after",{},void 0,!0),Bc,r(n.$slots,"aside-ads-before",{},void 0,!0),c(t).carbonAds?(a(),y(Mc,{key:0,"carbon-ads":c(t).carbonAds},null,8,["carbon-ads"])):m("",!0),r(n.$slots,"aside-ads-after",{},void 0,!0),r(n.$slots,"aside-bottom",{},void 0,!0)]))}});const Ac=p(Tc,[["__scopeId","data-v-cb998dce"]]);function Nc(){const{theme:e,page:t}=V();return k(()=>{const{text:n="Edit this page",pattern:s=""}=e.value.editLink||{};let o;return typeof s=="function"?o=s(t.value):o=s.replace(/:path/g,t.value.filePath),{url:o,text:n}})}function Hc(){const{page:e,theme:t,frontmatter:n}=V();return k(()=>{var d,f,_,$;const s=Ge(t.value.sidebar,e.value.relativePath),o=Lt(s),l=o.findIndex(x=>K(e.value.relativePath,x.link));return{prev:n.value.prev===!1?void 0:{text:(typeof n.value.prev=="string"?n.value.prev:typeof n.value.prev=="object"?n.value.prev.text:void 0)??((d=o[l-1])==null?void 0:d.text),link:(typeof n.value.prev=="object"?n.value.prev.link:void 0)??((f=o[l-1])==null?void 0:f.link)},next:n.value.next===!1?void 0:{text:(typeof n.value.next=="string"?n.value.next:typeof n.value.next=="object"?n.value.next.text:void 0)??((_=o[l+1])==null?void 0:_.text),link:(typeof n.value.next=="object"?n.value.next.link:void 0)??(($=o[l+1])==null?void 0:$.link)}}})}const Ec={},zc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Dc=u("path",{d:"M18,23H4c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h7c0.6,0,1,0.4,1,1s-0.4,1-1,1H4C3.4,5,3,5.4,3,6v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1v-7c0-0.6,0.4-1,1-1s1,0.4,1,1v7C21,21.7,19.7,23,18,23z"},null,-1),Fc=u("path",{d:"M8,17c-0.3,0-0.5-0.1-0.7-0.3C7,16.5,6.9,16.1,7,15.8l1-4c0-0.2,0.1-0.3,0.3-0.5l9.5-9.5c1.2-1.2,3.2-1.2,4.4,0c1.2,1.2,1.2,3.2,0,4.4l-9.5,9.5c-0.1,0.1-0.3,0.2-0.5,0.3l-4,1C8.2,17,8.1,17,8,17zM9.9,12.5l-0.5,2.1l2.1-0.5l9.3-9.3c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l0,0L9.9,12.5z M18.5,2.5L18.5,2.5L18.5,2.5z"},null,-1),Oc=[Dc,Fc];function Gc(e,t){return a(),i("svg",zc,Oc)}const Rc=p(Ec,[["render",Gc]]),Uc={class:"VPLastUpdated"},qc=["datetime"],jc=g({__name:"VPDocFooterLastUpdated",setup(e){const{theme:t,page:n,lang:s}=V(),o=k(()=>new Date(n.value.lastUpdated)),l=k(()=>o.value.toISOString()),d=w("");return F(()=>{Q(()=>{d.value=o.value.toLocaleString(s.value)})}),(f,_)=>(a(),i("p",Uc,[A(P(c(t).lastUpdatedText||"Last updated")+": ",1),u("time",{datetime:c(l)},P(d.value),9,qc)]))}});const Kc=p(jc,[["__scopeId","data-v-0de45606"]]),Wc={key:0,class:"VPDocFooter"},Yc={key:0,class:"edit-info"},Xc={key:0,class:"edit-link"},Qc={key:1,class:"last-updated"},Jc={key:1,class:"prev-next"},Zc={class:"pager"},el=["href"],tl=["innerHTML"],nl=["innerHTML"],sl=["href"],ol=["innerHTML"],al=["innerHTML"],cl=g({__name:"VPDocFooter",setup(e){const{theme:t,page:n,frontmatter:s}=V(),o=Nc(),l=Hc(),d=k(()=>t.value.editLink&&s.value.editLink!==!1),f=k(()=>n.value.lastUpdated&&s.value.lastUpdated!==!1),_=k(()=>d.value||f.value||l.value.prev||l.value.next);return($,x)=>{var I,B,b,C,L,T,D;return c(_)?(a(),i("footer",Wc,[r($.$slots,"doc-footer-before",{},void 0,!0),c(d)||c(f)?(a(),i("div",Yc,[c(d)?(a(),i("div",Xc,[h(O,{class:"edit-link-button",href:c(o).url,"no-icon":!0},{default:v(()=>[h(Rc,{class:"edit-link-icon","aria-label":"edit icon"}),A(" "+P(c(o).text),1)]),_:1},8,["href"])])):m("",!0),c(f)?(a(),i("div",Qc,[h(Kc)])):m("",!0)])):m("",!0),(I=c(l).prev)!=null&&I.link||(B=c(l).next)!=null&&B.link?(a(),i("div",Jc,[u("div",Zc,[(b=c(l).prev)!=null&&b.link?(a(),i("a",{key:0,class:"pager-link prev",href:c(Z)(c(l).prev.link)},[u("span",{class:"desc",innerHTML:((C=c(t).docFooter)==null?void 0:C.prev)||"Previous page"},null,8,tl),u("span",{class:"title",innerHTML:c(l).prev.text},null,8,nl)],8,el)):m("",!0)]),u("div",{class:M(["pager",{"has-prev":(L=c(l).prev)==null?void 0:L.link}])},[(T=c(l).next)!=null&&T.link?(a(),i("a",{key:0,class:"pager-link next",href:c(Z)(c(l).next.link)},[u("span",{class:"desc",innerHTML:((D=c(t).docFooter)==null?void 0:D.next)||"Next page"},null,8,ol),u("span",{class:"title",innerHTML:c(l).next.text},null,8,al)],8,sl)):m("",!0)],2)])):m("",!0)])):m("",!0)}}});const ll=p(cl,[["__scopeId","data-v-fc0d1b73"]]),il={key:0,class:"VPDocOutlineDropdown"},rl={key:0,class:"items"},ul=g({__name:"VPDocOutlineDropdown",setup(e){const{frontmatter:t,theme:n}=V(),s=w(!1);J(()=>{s.value=!1});const o=ge([]);return J(()=>{o.value=Le(t.value.outline??n.value.outline)}),(l,d)=>c(o).length>0?(a(),i("div",il,[u("button",{onClick:d[0]||(d[0]=f=>s.value=!s.value),class:M({open:s.value})},[A(P(c(Se)(c(n)))+" ",1),h(Ce,{class:"icon"})],2),s.value?(a(),i("div",rl,[h(Me,{headers:c(o)},null,8,["headers"])])):m("",!0)])):m("",!0)}});const dl=p(ul,[["__scopeId","data-v-2d98506c"]]),_l=e=>(H("data-v-c11df1f0"),e=e(),E(),e),vl={class:"container"},hl=_l(()=>u("div",{class:"aside-curtain"},null,-1)),fl={class:"aside-container"},pl={class:"aside-content"},ml={class:"content"},gl={class:"content-container"},yl={class:"main"},bl=g({__name:"VPDoc",setup(e){const t=ee(),{hasSidebar:n,hasAside:s,leftAside:o}=z(),l=k(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(d,f)=>{const _=R("Content");return a(),i("div",{class:M(["VPDoc",{"has-sidebar":c(n),"has-aside":c(s)}])},[r(d.$slots,"doc-top",{},void 0,!0),u("div",vl,[c(s)?(a(),i("div",{key:0,class:M(["aside",{"left-aside":c(o)}])},[hl,u("div",fl,[u("div",pl,[h(Ac,null,{"aside-top":v(()=>[r(d.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[r(d.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[r(d.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[r(d.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[r(d.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[r(d.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):m("",!0),u("div",ml,[u("div",gl,[r(d.$slots,"doc-before",{},void 0,!0),h(dl),u("main",yl,[h(_,{class:M(["vp-doc",c(l)])},null,8,["class"])]),h(ll,null,{"doc-footer-before":v(()=>[r(d.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),r(d.$slots,"doc-after",{},void 0,!0)])])]),r(d.$slots,"doc-bottom",{},void 0,!0)],2)}}});const kl=p(bl,[["__scopeId","data-v-c11df1f0"]]),ue=e=>(H("data-v-e5bd6573"),e=e(),E(),e),$l={class:"NotFound"},Pl=ue(()=>u("p",{class:"code"},"404",-1)),Vl=ue(()=>u("h1",{class:"title"},"PAGE NOT FOUND",-1)),wl=ue(()=>u("div",{class:"divider"},null,-1)),xl=ue(()=>u("blockquote",{class:"quote"}," But if you don't change your direction, and if you keep looking, you may end up where you are heading. ",-1)),Sl={class:"action"},Ll=["href"],Ml=g({__name:"NotFound",setup(e){const{site:t}=V(),{localeLinks:n}=te({removeCurrent:!1}),s=w("/");return F(()=>{var l;const o=window.location.pathname.replace(t.value.base,"").replace(/(^.*?\/).*$/,"/$1");n.value.length&&(s.value=((l=n.value.find(({link:d})=>d.startsWith(o)))==null?void 0:l.link)||n.value[0].link)}),(o,l)=>(a(),i("div",$l,[Pl,Vl,wl,xl,u("div",Sl,[u("a",{class:"link",href:c(fe)(s.value),"aria-label":"go to home"}," Take me home ",8,Ll)])]))}});const Cl=p(Ml,[["__scopeId","data-v-e5bd6573"]]),Il=g({__name:"VPContent",setup(e){const{page:t,frontmatter:n}=V(),{hasSidebar:s}=z();return(o,l)=>(a(),i("div",{class:M(["VPContent",{"has-sidebar":c(s),"is-home":c(n).layout==="home"}]),id:"VPContent"},[c(t).isNotFound?r(o.$slots,"not-found",{key:0},()=>[h(Cl)],!0):c(n).layout==="page"?(a(),y(Na,{key:1},{"page-top":v(()=>[r(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[r(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):c(n).layout==="home"?(a(),y(bc,{key:2},{"home-hero-before":v(()=>[r(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info":v(()=>[r(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[r(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[r(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[r(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[r(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):(a(),y(kl,{key:3},{"doc-top":v(()=>[r(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[r(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[r(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[r(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[r(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[r(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[r(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[r(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[r(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[r(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[r(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}});const Bl=p(Il,[["__scopeId","data-v-91952ce3"]]),Tl={class:"container"},Al=["innerHTML"],Nl=["innerHTML"],Hl=g({__name:"VPFooter",setup(e){const{theme:t}=V(),{hasSidebar:n}=z();return(s,o)=>c(t).footer?(a(),i("footer",{key:0,class:M(["VPFooter",{"has-sidebar":c(n)}])},[u("div",Tl,[c(t).footer.message?(a(),i("p",{key:0,class:"message",innerHTML:c(t).footer.message},null,8,Al)):m("",!0),c(t).footer.copyright?(a(),i("p",{key:1,class:"copyright",innerHTML:c(t).footer.copyright},null,8,Nl)):m("",!0)])],2)):m("",!0)}});const El=p(Hl,[["__scopeId","data-v-07acdfa3"]]),zl={key:0,class:"Layout"},Dl=g({__name:"Layout",setup(e){const{isOpen:t,open:n,close:s}=z(),o=ee();j(()=>o.path,s),Mt(t,s),oe("close-sidebar",s),oe("is-sidebar-open",t);const{frontmatter:l}=V(),d=pt(),f=k(()=>!!d["home-hero-image"]);return oe("hero-image-slot-exists",f),(_,$)=>{const x=R("Content");return c(l).layout!==!1?(a(),i("div",zl,[r(_.$slots,"layout-top",{},void 0,!0),h(Bt),h(Nt,{class:"backdrop",show:c(t),onClick:c(s)},null,8,["show","onClick"]),h(Uo,null,{"nav-bar-title-before":v(()=>[r(_.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[r(_.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[r(_.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[r(_.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[r(_.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[r(_.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),h(ya,{open:c(t),onOpenMenu:c(n)},null,8,["open","onOpenMenu"]),h(Ia,{open:c(t)},{"sidebar-nav-before":v(()=>[r(_.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[r(_.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),h(Bl,null,{"page-top":v(()=>[r(_.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[r(_.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[r(_.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[r(_.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info":v(()=>[r(_.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[r(_.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[r(_.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[r(_.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[r(_.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[r(_.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[r(_.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[r(_.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[r(_.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[r(_.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[r(_.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[r(_.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[r(_.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[r(_.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[r(_.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[r(_.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),h(El),r(_.$slots,"layout-bottom",{},void 0,!0)])):(a(),y(x,{key:1}))}}});const Fl=p(Dl,[["__scopeId","data-v-bffce215"]]);const Gl={Layout:Fl,enhanceApp:({app:e})=>{e.component("Badge",gt)}};export{Gl as t,V as u}; diff --git a/docs/assets/chunks/theme.fdc5fc3e.js b/docs/assets/chunks/theme.fdc5fc3e.js deleted file mode 100644 index 1318e27..0000000 --- a/docs/assets/chunks/theme.fdc5fc3e.js +++ /dev/null @@ -1,7 +0,0 @@ -import{d as g,o as a,c as i,r as u,n as M,a as C,t as w,_ as p,u as tt,b as c,e as b,f as x,g as nt,h as G,i as ze,j as st,k as ot,w as q,l as Y,m as at,P as ct,p as ve,q as K,s as Z,v as ce,x as r,F as I,y,z as v,T as fe,A as m,B as te,C as h,D as R,E as lt,G as it,H as rt,I as U,J as De,K as ut,L as dt,M as B,N as E,O as H,Q as _t,R as Ie,S as he,U as ne,V as vt,W as X,X as pe,Y as ft,Z as ht,$ as pt,a0 as mt,a1 as gt,a2 as yt}from"./framework.7addaa9c.js";const bt=g({__name:"VPBadge",props:{text:null,type:null},setup(e){return(t,n)=>(a(),i("span",{class:M(["VPBadge",e.type??"tip"])},[u(t.$slots,"default",{},()=>[C(w(e.text),1)],!0)],2))}});const kt=p(bt,[["__scopeId","data-v-ce917cfb"]]),V=tt;var Ce;const Fe=typeof window<"u",$t=e=>typeof e=="string",Pt=()=>{};Fe&&((Ce=window==null?void 0:window.navigator)!=null&&Ce.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ge(e){return typeof e=="function"?e():c(e)}function wt(e){return e}function Re(e){return st()?(ot(e),!0):!1}function Vt(e){return typeof e=="function"?b(e):x(e)}function xt(e,t=!0){nt()?G(e):t?e():ze(e)}function St(e){var t;const n=Ge(e);return(t=n==null?void 0:n.$el)!=null?t:n}const me=Fe?window:void 0;function Lt(...e){let t,n,s,o;if($t(e[0])||Array.isArray(e[0])?([n,s,o]=e,t=me):[t,n,s,o]=e,!t)return Pt;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const l=[],d=()=>{l.forEach($=>$()),l.length=0},f=($,L,P,S)=>($.addEventListener(L,P,S),()=>$.removeEventListener(L,P,S)),_=q(()=>[St(t),Ge(o)],([$,L])=>{d(),$&&l.push(...n.flatMap(P=>s.map(S=>f($,P,S,L))))},{immediate:!0,flush:"post"}),k=()=>{_(),d()};return Re(k),k}function Mt(e,t=!1){const n=x(),s=()=>n.value=!!e();return s(),xt(s,t),n}function ue(e,t={}){const{window:n=me}=t,s=Mt(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const l=x(!1),d=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",f):o.removeListener(f))},f=()=>{s.value&&(d(),o=n.matchMedia(Vt(e).value),l.value=o.matches,"addEventListener"in o?o.addEventListener("change",f):o.addListener(f))};return Y(f),Re(()=>d()),l}const Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Be="__vueuse_ssr_handlers__";Te[Be]=Te[Be]||{};var Ne;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ne||(Ne={}));var It=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,Ee=(e,t,n)=>t in e?It(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bt=(e,t)=>{for(var n in t||(t={}))Ct.call(t,n)&&Ee(e,n,t[n]);if(Ae)for(var n of Ae(t))Tt.call(t,n)&&Ee(e,n,t[n]);return e};const Nt={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Bt({linear:wt},Nt);function At({window:e=me}={}){if(!e)return{x:x(0),y:x(0)};const t=x(e.scrollX),n=x(e.scrollY);return Lt(e,"scroll",()=>{t.value=e.scrollX,n.value=e.scrollY},{capture:!1,passive:!0}),{x:t,y:n}}function Et(e,t){let n,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(e,t):(e(),s=!0,setTimeout(()=>{s=!1},t))}}function de(e){return/^\//.test(e)?e:`/${e}`}function J(e){if(at(e))return e.replace(ct,"");const{site:t}=V(),{pathname:n,search:s,hash:o}=new URL(e,"http://example.com"),l=n.endsWith("/")||n.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${n.replace(/(\.md)?$/,t.value.cleanUrls?"":".html")}${s}${o}`);return ve(l)}function Ue(e,t){if(Array.isArray(e))return e;if(e==null)return[];t=de(t);const n=Object.keys(e).sort((s,o)=>o.split("/").length-s.split("/").length).find(s=>t.startsWith(de(s)));return n?e[n]:[]}function Ht(e){const t=[];let n=0;for(const s in e){const o=e[s];if(o.items){n=t.push(o);continue}t[n]||t.push({items:[]}),t[n].items.push(o)}return t}function Ot(e){const t=[];function n(s){for(const o of s)o.text&&o.link&&t.push({text:o.text,link:o.link}),o.items&&n(o.items)}return n(e),t}function _e(e,t){return Array.isArray(t)?t.some(n=>_e(e,n)):K(e,t.link)?!0:t.items?_e(e,t.items):!1}function O(){const e=Z(),{theme:t,frontmatter:n}=V(),s=ue("(min-width: 960px)"),o=x(!1),l=b(()=>{const T=t.value.sidebar,N=e.data.relativePath;return T?Ue(T,N):[]}),d=b(()=>n.value.sidebar!==!1&&l.value.length>0&&n.value.layout!=="home"),f=b(()=>_?n.value.aside==null?t.value.aside==="left":n.value.aside==="left":!1),_=b(()=>n.value.layout==="home"?!1:n.value.aside!=null?!!n.value.aside:t.value.aside!==!1),k=b(()=>d.value&&s.value),$=b(()=>d.value?Ht(l.value):[]);function L(){o.value=!0}function P(){o.value=!1}function S(){o.value?P():L()}return{isOpen:o,sidebar:l,sidebarGroups:$,hasSidebar:d,hasAside:_,leftAside:f,isSidebarEnabled:k,open:L,close:P,toggle:S}}function zt(e,t){let n;Y(()=>{n=e.value?document.activeElement:void 0}),G(()=>{window.addEventListener("keyup",s)}),ce(()=>{window.removeEventListener("keyup",s)});function s(o){o.key==="Escape"&&e.value&&(t(),n==null||n.focus())}}function Dt(e){const{page:t}=V(),n=x(!1),s=b(()=>e.value.collapsed!=null),o=b(()=>!!e.value.link),l=b(()=>K(t.value.relativePath,e.value.link)),d=b(()=>l.value?!0:e.value.items?_e(t.value.relativePath,e.value.items):!1),f=b(()=>!!(e.value.items&&e.value.items.length));Y(()=>{n.value=!!(s.value&&e.value.collapsed)}),Y(()=>{(l.value||d.value)&&(n.value=!1)});function _(){s.value&&(n.value=!n.value)}return{collapsed:n,collapsible:s,isLink:o,isActiveLink:l,hasActiveLink:d,hasChildren:f,toggle:_}}const Ft=g({__name:"VPSkipLink",setup(e){const t=Z(),n=x();q(()=>t.path,()=>n.value.focus());function s({target:o}){const l=document.querySelector(decodeURIComponent(o.hash));if(l){const d=()=>{l.removeAttribute("tabindex"),l.removeEventListener("blur",d)};l.setAttribute("tabindex","-1"),l.addEventListener("blur",d),l.focus(),window.scrollTo(0,0)}}return(o,l)=>(a(),i(I,null,[r("span",{ref_key:"backToTop",ref:n,tabindex:"-1"},null,512),r("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}});const Gt=p(Ft,[["__scopeId","data-v-73e3a132"]]),Rt={key:0,class:"VPBackdrop"},Ut=g({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(t,n)=>(a(),y(fe,{name:"fade"},{default:v(()=>[e.show?(a(),i("div",Rt)):m("",!0)]),_:1}))}});const jt=p(Ut,[["__scopeId","data-v-54a304ca"]]);function qt(){const e=x(!1);function t(){e.value=!0,window.addEventListener("resize",o)}function n(){e.value=!1,window.removeEventListener("resize",o)}function s(){e.value?n():t()}function o(){window.outerWidth>=768&&n()}const l=Z();return q(()=>l.path,n),{isScreenOpen:e,openScreen:t,closeScreen:n,toggleScreen:s}}function ee({removeCurrent:e=!0,correspondingLink:t=!1}={}){const{site:n,localeIndex:s,page:o,theme:l}=V(),d=b(()=>{var _,k;return{label:(_=n.value.locales[s.value])==null?void 0:_.label,link:((k=n.value.locales[s.value])==null?void 0:k.link)||(s.value==="root"?"/":`/${s.value}/`)}});return{localeLinks:b(()=>Object.entries(n.value.locales).flatMap(([_,k])=>e&&d.value.label===k.label?[]:{text:k.label,link:Kt(k.link||(_==="root"?"/":`/${_}/`),l.value.i18nRouting!==!1&&t,o.value.relativePath.slice(d.value.link.length-1),!n.value.cleanUrls)})),currentLang:d}}function Kt(e,t,n,s){return t?e.replace(/\/$/,"")+de(n.replace(/(^|\/)?index.md$/,"$1").replace(/\.md$/,s?".html":"")):e}const Wt=["src","alt"],Qt={inheritAttrs:!1},Yt=g({...Qt,__name:"VPImage",props:{image:null,alt:null},setup(e){return(t,n)=>{const s=R("VPImage",!0);return e.image?(a(),i(I,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),i("img",te({key:0,class:"VPImage"},typeof e.image=="string"?t.$attrs:{...e.image,...t.$attrs},{src:c(ve)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Wt)):(a(),i(I,{key:1},[h(s,te({class:"dark",image:e.image.dark,alt:e.image.alt},t.$attrs),null,16,["image","alt"]),h(s,te({class:"light",image:e.image.light,alt:e.image.alt},t.$attrs),null,16,["image","alt"])],64))],64)):m("",!0)}}});const ge=p(Yt,[["__scopeId","data-v-dc109a54"]]),Xt=["href"],Jt=g({__name:"VPNavBarTitle",setup(e){const{site:t,theme:n}=V(),{hasSidebar:s}=O(),{currentLang:o}=ee();return(l,d)=>(a(),i("div",{class:M(["VPNavBarTitle",{"has-sidebar":c(s)}])},[r("a",{class:"title",href:c(J)(c(o).link)},[u(l.$slots,"nav-bar-title-before",{},void 0,!0),c(n).logo?(a(),y(ge,{key:0,class:"logo",image:c(n).logo},null,8,["image"])):m("",!0),c(n).siteTitle?(a(),i(I,{key:1},[C(w(c(n).siteTitle),1)],64)):c(n).siteTitle===void 0?(a(),i(I,{key:2},[C(w(c(t).title),1)],64)):m("",!0),u(l.$slots,"nav-bar-title-after",{},void 0,!0)],8,Xt)],2))}});const Zt=p(Jt,[["__scopeId","data-v-1ab7b21f"]]);const en={key:0,class:"VPNavBarSearch"},tn={key:1,id:"docsearch"},nn={class:"DocSearch-Button-Container"},sn=r("svg",{class:"DocSearch-Search-Icon",width:"20",height:"20",viewBox:"0 0 20 20","aria-label":"search icon"},[r("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"})],-1),on={class:"DocSearch-Button-Placeholder"},an=r("span",{class:"DocSearch-Button-Keys"},[r("kbd",{class:"DocSearch-Button-Key"}),r("kbd",{class:"DocSearch-Button-Key"},"K")],-1),cn=g({__name:"VPNavBarSearch",setup(e){it($=>({"24673d6c":l.value}));const t=lt(()=>rt(()=>import("./VPAlgoliaSearchBox.393da1ac.js"),["assets/chunks/VPAlgoliaSearchBox.393da1ac.js","assets/chunks/framework.7addaa9c.js"])),{theme:n,localeIndex:s}=V(),o=x(!1),l=x("'Meta'"),d=b(()=>{var $,L,P,S,T,N,A,z;return((T=(S=(P=(L=($=n.value.algolia)==null?void 0:$.locales)==null?void 0:L[s.value])==null?void 0:P.translations)==null?void 0:S.button)==null?void 0:T.buttonText)||((z=(A=(N=n.value.algolia)==null?void 0:N.translations)==null?void 0:A.button)==null?void 0:z.buttonText)||"Search"}),f=()=>{const $="VPAlgoliaPreconnect";(window.requestIdleCallback||setTimeout)(()=>{const P=document.createElement("link");P.id=$,P.rel="preconnect",P.href=`https://${n.value.algolia.appId}-dsn.algolia.net`,P.crossOrigin="",document.head.appendChild(P)})};G(()=>{if(!n.value.algolia)return;f(),l.value=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?"'⌘'":"'Ctrl'";const $=P=>{P.key==="k"&&(P.ctrlKey||P.metaKey)&&(P.preventDefault(),_(),L())},L=()=>{window.removeEventListener("keydown",$)};window.addEventListener("keydown",$),ce(L)});function _(){o.value||(o.value=!0,setTimeout(k,16))}function k(){const $=new Event("keydown");$.key="k",$.metaKey=!0,window.dispatchEvent($),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||k()},16)}return($,L)=>c(n).algolia?(a(),i("div",en,[o.value?(a(),y(c(t),{key:0,algolia:c(n).algolia},null,8,["algolia"])):(a(),i("div",tn,[r("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":"Search",onClick:_},[r("span",nn,[sn,r("span",on,w(c(d)),1)]),an])]))])):m("",!0)}});const ln={},rn={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",height:"24px",viewBox:"0 0 24 24",width:"24px"},un=r("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),dn=r("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"},null,-1),_n=[un,dn];function vn(e,t){return a(),i("svg",rn,_n)}const fn=p(ln,[["render",vn]]),hn=g({__name:"VPLink",props:{tag:null,href:null,noIcon:{type:Boolean},target:null,rel:null},setup(e){const t=e,n=b(()=>t.tag??t.href?"a":"span"),s=b(()=>t.href&&De.test(t.href));return(o,l)=>(a(),y(U(c(n)),{class:M(["VPLink",{link:e.href}]),href:e.href?c(J)(e.href):void 0,target:e.target||(c(s)?"_blank":void 0),rel:e.rel||(c(s)?"noreferrer":void 0)},{default:v(()=>[u(o.$slots,"default",{},void 0,!0),c(s)&&!e.noIcon?(a(),y(fn,{key:0,class:"icon"})):m("",!0)]),_:3},8,["class","href","target","rel"]))}});const D=p(hn,[["__scopeId","data-v-f3ed0000"]]),pn=g({__name:"VPNavBarMenuLink",props:{item:null},setup(e){const{page:t}=V();return(n,s)=>(a(),y(D,{class:M({VPNavBarMenuLink:!0,active:c(K)(c(t).relativePath,e.item.activeMatch||e.item.link,!!e.item.activeMatch)}),href:e.item.link,target:e.item.target,rel:e.item.rel,tabindex:"0"},{default:v(()=>[C(w(e.item.text),1)]),_:1},8,["class","href","target","rel"]))}});const mn=p(pn,[["__scopeId","data-v-b7aed9c7"]]),ye=x();let je=!1,re=0;function gn(e){const t=x(!1);if(ut){!je&&yn(),re++;const n=q(ye,s=>{var o,l,d;s===e.el.value||(o=e.el.value)!=null&&o.contains(s)?(t.value=!0,(l=e.onFocus)==null||l.call(e)):(t.value=!1,(d=e.onBlur)==null||d.call(e))});ce(()=>{n(),re--,re||bn()})}return dt(t)}function yn(){document.addEventListener("focusin",qe),je=!0,ye.value=document.activeElement}function bn(){document.removeEventListener("focusin",qe)}function qe(){ye.value=document.activeElement}const kn={},$n={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Pn=r("path",{d:"M12,16c-0.3,0-0.5-0.1-0.7-0.3l-6-6c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l5.3,5.3l5.3-5.3c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-6,6C12.5,15.9,12.3,16,12,16z"},null,-1),wn=[Pn];function Vn(e,t){return a(),i("svg",$n,wn)}const Ke=p(kn,[["render",Vn]]),xn={},Sn={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Ln=r("circle",{cx:"12",cy:"12",r:"2"},null,-1),Mn=r("circle",{cx:"19",cy:"12",r:"2"},null,-1),In=r("circle",{cx:"5",cy:"12",r:"2"},null,-1),Cn=[Ln,Mn,In];function Tn(e,t){return a(),i("svg",Sn,Cn)}const Bn=p(xn,[["render",Tn]]),Nn={class:"VPMenuLink"},An=g({__name:"VPMenuLink",props:{item:null},setup(e){const{page:t}=V();return(n,s)=>(a(),i("div",Nn,[h(D,{class:M({active:c(K)(c(t).relativePath,e.item.activeMatch||e.item.link,!!e.item.activeMatch)}),href:e.item.link,target:e.item.target,rel:e.item.rel},{default:v(()=>[C(w(e.item.text),1)]),_:1},8,["class","href","target","rel"])]))}});const le=p(An,[["__scopeId","data-v-fd8d5e7a"]]),En={class:"VPMenuGroup"},Hn={key:0,class:"title"},On=g({__name:"VPMenuGroup",props:{text:null,items:null},setup(e){return(t,n)=>(a(),i("div",En,[e.text?(a(),i("p",Hn,w(e.text),1)):m("",!0),(a(!0),i(I,null,B(e.items,s=>(a(),i(I,null,["link"in s?(a(),y(le,{key:0,item:s},null,8,["item"])):m("",!0)],64))),256))]))}});const zn=p(On,[["__scopeId","data-v-a6b0397c"]]),Dn={class:"VPMenu"},Fn={key:0,class:"items"},Gn=g({__name:"VPMenu",props:{items:null},setup(e){return(t,n)=>(a(),i("div",Dn,[e.items?(a(),i("div",Fn,[(a(!0),i(I,null,B(e.items,s=>(a(),i(I,{key:s.text},["link"in s?(a(),y(le,{key:0,item:s},null,8,["item"])):(a(),y(zn,{key:1,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):m("",!0),u(t.$slots,"default",{},void 0,!0)]))}});const Rn=p(Gn,[["__scopeId","data-v-e42ed9b3"]]),Un=["aria-expanded","aria-label"],jn={key:0,class:"text"},qn={class:"menu"},Kn=g({__name:"VPFlyout",props:{icon:null,button:null,label:null,items:null},setup(e){const t=x(!1),n=x();gn({el:n,onBlur:s});function s(){t.value=!1}return(o,l)=>(a(),i("div",{class:"VPFlyout",ref_key:"el",ref:n,onMouseenter:l[1]||(l[1]=d=>t.value=!0),onMouseleave:l[2]||(l[2]=d=>t.value=!1)},[r("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":t.value,"aria-label":e.label,onClick:l[0]||(l[0]=d=>t.value=!t.value)},[e.button||e.icon?(a(),i("span",jn,[e.icon?(a(),y(U(e.icon),{key:0,class:"option-icon"})):m("",!0),C(" "+w(e.button)+" ",1),h(Ke,{class:"text-icon"})])):(a(),y(Bn,{key:1,class:"icon"}))],8,Un),r("div",qn,[h(Rn,{items:e.items},{default:v(()=>[u(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}});const be=p(Kn,[["__scopeId","data-v-6afe904b"]]),Wn=g({__name:"VPNavBarMenuGroup",props:{item:null},setup(e){const{page:t}=V();return(n,s)=>(a(),y(be,{class:M({VPNavBarMenuGroup:!0,active:c(K)(c(t).relativePath,e.item.activeMatch,!!e.item.activeMatch)}),button:e.item.text,items:e.item.items},null,8,["class","button","items"]))}}),Qn=e=>(E("data-v-f732b5d0"),e=e(),H(),e),Yn={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Xn=Qn(()=>r("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Jn=g({__name:"VPNavBarMenu",setup(e){const{theme:t}=V();return(n,s)=>c(t).nav?(a(),i("nav",Yn,[Xn,(a(!0),i(I,null,B(c(t).nav,o=>(a(),i(I,{key:o.text},["link"in o?(a(),y(mn,{key:0,item:o},null,8,["item"])):(a(),y(Wn,{key:1,item:o},null,8,["item"]))],64))),128))])):m("",!0)}});const Zn=p(Jn,[["__scopeId","data-v-f732b5d0"]]),es={},ts={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},ns=r("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),ss=r("path",{d:" M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",class:"css-c4d79v"},null,-1),os=[ns,ss];function as(e,t){return a(),i("svg",ts,os)}const We=p(es,[["render",as]]),cs={class:"items"},ls={class:"title"},is=g({__name:"VPNavBarTranslations",setup(e){const{theme:t}=V(),{localeLinks:n,currentLang:s}=ee({correspondingLink:!0});return(o,l)=>c(n).length&&c(s).label?(a(),y(be,{key:0,class:"VPNavBarTranslations",icon:We,label:c(t).langMenuLabel||"Change language"},{default:v(()=>[r("div",cs,[r("p",ls,w(c(s).label),1),(a(!0),i(I,null,B(c(n),d=>(a(),y(le,{key:d.link,item:d},null,8,["item"]))),128))])]),_:1},8,["label"])):m("",!0)}});const rs=p(is,[["__scopeId","data-v-ff4524ae"]]);const us={},ds={class:"VPSwitch",type:"button",role:"switch"},_s={class:"check"},vs={key:0,class:"icon"};function fs(e,t){return a(),i("button",ds,[r("span",_s,[e.$slots.default?(a(),i("span",vs,[u(e.$slots,"default",{},void 0,!0)])):m("",!0)])])}const hs=p(us,[["render",fs],["__scopeId","data-v-92d8f6fb"]]),ps={},ms={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},gs=_t('',9),ys=[gs];function bs(e,t){return a(),i("svg",ms,ys)}const ks=p(ps,[["render",bs]]),$s={},Ps={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},ws=r("path",{d:"M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"},null,-1),Vs=[ws];function xs(e,t){return a(),i("svg",Ps,Vs)}const Ss=p($s,[["render",xs]]),Ls={title:"toggle dark mode"},Ms=g({__name:"VPSwitchAppearance",setup(e){const{site:t,isDark:n}=V(),s=x(!1),o=typeof localStorage<"u"?l():()=>{};G(()=>{s.value=document.documentElement.classList.contains("dark")});function l(){const d=window.matchMedia("(prefers-color-scheme: dark)"),f=document.documentElement.classList;let _=localStorage.getItem(Ie),k=t.value.appearance==="dark"&&_==null||(_==="auto"||_==null?d.matches:_==="dark");d.onchange=P=>{_==="auto"&&L(k=P.matches)};function $(){L(k=!k),_=k?d.matches?"auto":"dark":d.matches?"light":"auto",localStorage.setItem(Ie,_)}function L(P){const S=document.createElement("style");S.type="text/css",S.appendChild(document.createTextNode(`:not(.VPSwitchAppearance):not(.VPSwitchAppearance *) { - -webkit-transition: none !important; - -moz-transition: none !important; - -o-transition: none !important; - -ms-transition: none !important; - transition: none !important; -}`)),document.head.appendChild(S),s.value=P,f[P?"add":"remove"]("dark"),window.getComputedStyle(S).opacity,document.head.removeChild(S)}return $}return q(s,d=>{n.value=d}),(d,f)=>(a(),i("label",Ls,[h(hs,{class:"VPSwitchAppearance","aria-checked":s.value,onClick:c(o)},{default:v(()=>[h(ks,{class:"sun"}),h(Ss,{class:"moon"})]),_:1},8,["aria-checked","onClick"])]))}});const ke=p(Ms,[["__scopeId","data-v-67878c63"]]),Is={key:0,class:"VPNavBarAppearance"},Cs=g({__name:"VPNavBarAppearance",setup(e){const{site:t}=V();return(n,s)=>c(t).appearance?(a(),i("div",Is,[h(ke)])):m("",!0)}});const Ts=p(Cs,[["__scopeId","data-v-5e9f0637"]]),Bs={discord:'Discord',facebook:'Facebook',github:'GitHub',instagram:'Instagram',linkedin:'LinkedIn',mastodon:'Mastodon',slack:'Slack',twitter:'Twitter',youtube:'YouTube'},Ns=["href","aria-label","innerHTML"],As=g({__name:"VPSocialLink",props:{icon:null,link:null},setup(e){const t=e,n=b(()=>typeof t.icon=="object"?t.icon.svg:Bs[t.icon]);return(s,o)=>(a(),i("a",{class:"VPSocialLink",href:e.link,"aria-label":typeof e.icon=="string"?e.icon:"",target:"_blank",rel:"noopener",innerHTML:c(n)},null,8,Ns))}});const Es=p(As,[["__scopeId","data-v-dbecf575"]]),Hs={class:"VPSocialLinks"},Os=g({__name:"VPSocialLinks",props:{links:null},setup(e){return(t,n)=>(a(),i("div",Hs,[(a(!0),i(I,null,B(e.links,({link:s,icon:o})=>(a(),y(Es,{key:s,icon:o,link:s},null,8,["icon","link"]))),128))]))}});const $e=p(Os,[["__scopeId","data-v-b8f6762d"]]),zs=g({__name:"VPNavBarSocialLinks",setup(e){const{theme:t}=V();return(n,s)=>c(t).socialLinks?(a(),y($e,{key:0,class:"VPNavBarSocialLinks",links:c(t).socialLinks},null,8,["links"])):m("",!0)}});const Ds=p(zs,[["__scopeId","data-v-ef6192dc"]]),Fs={key:0,class:"group translations"},Gs={class:"trans-title"},Rs={key:1,class:"group"},Us={class:"item appearance"},js={class:"label"},qs={class:"appearance-action"},Ks={key:2,class:"group"},Ws={class:"item social-links"},Qs=g({__name:"VPNavBarExtra",setup(e){const{site:t,theme:n}=V(),{localeLinks:s,currentLang:o}=ee({correspondingLink:!0}),l=b(()=>s.value.length&&o.value.label||t.value.appearance||n.value.socialLinks);return(d,f)=>c(l)?(a(),y(be,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[c(s).length&&c(o).label?(a(),i("div",Fs,[r("p",Gs,w(c(o).label),1),(a(!0),i(I,null,B(c(s),_=>(a(),y(le,{key:_.link,item:_},null,8,["item"]))),128))])):m("",!0),c(t).appearance?(a(),i("div",Rs,[r("div",Us,[r("p",js,w(c(n).darkModeSwitchLabel||"Appearance"),1),r("div",qs,[h(ke)])])])):m("",!0),c(n).socialLinks?(a(),i("div",Ks,[r("div",Ws,[h($e,{class:"social-links-list",links:c(n).socialLinks},null,8,["links"])])])):m("",!0)]),_:1})):m("",!0)}});const Ys=p(Qs,[["__scopeId","data-v-c8c2ae4b"]]),Xs=e=>(E("data-v-6bee1efd"),e=e(),H(),e),Js=["aria-expanded"],Zs=Xs(()=>r("span",{class:"container"},[r("span",{class:"top"}),r("span",{class:"middle"}),r("span",{class:"bottom"})],-1)),eo=[Zs],to=g({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(e){return(t,n)=>(a(),i("button",{type:"button",class:M(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:n[0]||(n[0]=s=>t.$emit("click"))},eo,10,Js))}});const no=p(to,[["__scopeId","data-v-6bee1efd"]]),so=e=>(E("data-v-d747baf3"),e=e(),H(),e),oo={class:"container"},ao={class:"title"},co={class:"content"},lo=so(()=>r("div",{class:"curtain"},null,-1)),io={class:"content-body"},ro=g({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(e){const{y:t}=At(),{hasSidebar:n}=O(),s=b(()=>({"has-sidebar":n.value,fill:t.value>0}));return(o,l)=>(a(),i("div",{class:M(["VPNavBar",c(s)])},[r("div",oo,[r("div",ao,[h(Zt,null,{"nav-bar-title-before":v(()=>[u(o.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[u(o.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),r("div",co,[lo,r("div",io,[u(o.$slots,"nav-bar-content-before",{},void 0,!0),h(cn,{class:"search"}),h(Zn,{class:"menu"}),h(rs,{class:"translations"}),h(Ts,{class:"appearance"}),h(Ds,{class:"social-links"}),h(Ys,{class:"extra"}),u(o.$slots,"nav-bar-content-after",{},void 0,!0),h(no,{class:"hamburger",active:e.isScreenOpen,onClick:l[0]||(l[0]=d=>o.$emit("toggle-screen"))},null,8,["active"])])])])],2))}});const uo=p(ro,[["__scopeId","data-v-d747baf3"]]);function _o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1),j=[],oe=!1,we=-1,W=void 0,F=void 0,Q=void 0,Qe=function(t){return j.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(t))})},ae=function(t){var n=t||window.event;return Qe(n.target)||n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)},vo=function(t){if(Q===void 0){var n=!!t&&t.reserveScrollBarGap===!0,s=window.innerWidth-document.documentElement.clientWidth;if(n&&s>0){var o=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);Q=document.body.style.paddingRight,document.body.style.paddingRight=o+s+"px"}}W===void 0&&(W=document.body.style.overflow,document.body.style.overflow="hidden")},fo=function(){Q!==void 0&&(document.body.style.paddingRight=Q,Q=void 0),W!==void 0&&(document.body.style.overflow=W,W=void 0)},ho=function(){return window.requestAnimationFrame(function(){if(F===void 0){F={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var t=window,n=t.scrollY,s=t.scrollX,o=t.innerHeight;document.body.style.position="fixed",document.body.style.top=-n,document.body.style.left=-s,setTimeout(function(){return window.requestAnimationFrame(function(){var l=o-window.innerHeight;l&&n>=o&&(document.body.style.top=-(n+l))})},300)}})},po=function(){if(F!==void 0){var t=-parseInt(document.body.style.top,10),n=-parseInt(document.body.style.left,10);document.body.style.position=F.position,document.body.style.top=F.top,document.body.style.left=F.left,window.scrollTo(n,t),F=void 0}},mo=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},go=function(t,n){var s=t.targetTouches[0].clientY-we;return Qe(t.target)?!1:n&&n.scrollTop===0&&s>0||mo(n)&&s<0?ae(t):(t.stopPropagation(),!0)},Ye=function(t,n){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!j.some(function(o){return o.targetElement===t})){var s={targetElement:t,options:n||{}};j=[].concat(_o(j),[s]),se?ho():vo(n),se&&(t.ontouchstart=function(o){o.targetTouches.length===1&&(we=o.targetTouches[0].clientY)},t.ontouchmove=function(o){o.targetTouches.length===1&&go(o,t)},oe||(document.addEventListener("touchmove",ae,Pe?{passive:!1}:void 0),oe=!0))}},Xe=function(){se&&(j.forEach(function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null}),oe&&(document.removeEventListener("touchmove",ae,Pe?{passive:!1}:void 0),oe=!1),we=-1),se?po():fo(),j=[]};const yo=g({__name:"VPNavScreenMenuLink",props:{text:null,link:null},setup(e){const t=he("close-screen");return(n,s)=>(a(),y(D,{class:"VPNavScreenMenuLink",href:e.link,onClick:c(t)},{default:v(()=>[C(w(e.text),1)]),_:1},8,["href","onClick"]))}});const bo=p(yo,[["__scopeId","data-v-a3572c96"]]),ko={},$o={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Po=r("path",{d:"M18.9,10.9h-6v-6c0-0.6-0.4-1-1-1s-1,0.4-1,1v6h-6c-0.6,0-1,0.4-1,1s0.4,1,1,1h6v6c0,0.6,0.4,1,1,1s1-0.4,1-1v-6h6c0.6,0,1-0.4,1-1S19.5,10.9,18.9,10.9z"},null,-1),wo=[Po];function Vo(e,t){return a(),i("svg",$o,wo)}const xo=p(ko,[["render",Vo]]),So=g({__name:"VPNavScreenMenuGroupLink",props:{text:null,link:null},setup(e){const t=he("close-screen");return(n,s)=>(a(),y(D,{class:"VPNavScreenMenuGroupLink",href:e.link,onClick:c(t)},{default:v(()=>[C(w(e.text),1)]),_:1},8,["href","onClick"]))}});const Je=p(So,[["__scopeId","data-v-d67c9e09"]]),Lo={class:"VPNavScreenMenuGroupSection"},Mo={key:0,class:"title"},Io=g({__name:"VPNavScreenMenuGroupSection",props:{text:null,items:null},setup(e){return(t,n)=>(a(),i("div",Lo,[e.text?(a(),i("p",Mo,w(e.text),1)):m("",!0),(a(!0),i(I,null,B(e.items,s=>(a(),y(Je,{key:s.text,text:s.text,link:s.link},null,8,["text","link"]))),128))]))}});const Co=p(Io,[["__scopeId","data-v-1f191989"]]),To=["aria-controls","aria-expanded"],Bo={class:"button-text"},No=["id"],Ao={key:1,class:"group"},Eo=g({__name:"VPNavScreenMenuGroup",props:{text:null,items:null},setup(e){const t=e,n=x(!1),s=b(()=>`NavScreenGroup-${t.text.replace(" ","-").toLowerCase()}`);function o(){n.value=!n.value}return(l,d)=>(a(),i("div",{class:M(["VPNavScreenMenuGroup",{open:n.value}])},[r("button",{class:"button","aria-controls":c(s),"aria-expanded":n.value,onClick:o},[r("span",Bo,w(e.text),1),h(xo,{class:"button-icon"})],8,To),r("div",{id:c(s),class:"items"},[(a(!0),i(I,null,B(e.items,f=>(a(),i(I,{key:f.text},["link"in f?(a(),i("div",{key:f.text,class:"item"},[h(Je,{text:f.text,link:f.link},null,8,["text","link"])])):(a(),i("div",Ao,[h(Co,{text:f.text,items:f.items},null,8,["text","items"])]))],64))),128))],8,No)],2))}});const Ho=p(Eo,[["__scopeId","data-v-76b97020"]]),Oo={key:0,class:"VPNavScreenMenu"},zo=g({__name:"VPNavScreenMenu",setup(e){const{theme:t}=V();return(n,s)=>c(t).nav?(a(),i("nav",Oo,[(a(!0),i(I,null,B(c(t).nav,o=>(a(),i(I,{key:o.text},["link"in o?(a(),y(bo,{key:0,text:o.text,link:o.link},null,8,["text","link"])):(a(),y(Ho,{key:1,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):m("",!0)}}),Do={key:0,class:"VPNavScreenAppearance"},Fo={class:"text"},Go=g({__name:"VPNavScreenAppearance",setup(e){const{site:t,theme:n}=V();return(s,o)=>c(t).appearance?(a(),i("div",Do,[r("p",Fo,w(c(n).darkModeSwitchLabel||"Appearance"),1),h(ke)])):m("",!0)}});const Ro=p(Go,[["__scopeId","data-v-0dc5cf49"]]),Uo={class:"list"},jo=g({__name:"VPNavScreenTranslations",setup(e){const{localeLinks:t,currentLang:n}=ee({correspondingLink:!0}),s=x(!1);function o(){s.value=!s.value}return(l,d)=>c(t).length&&c(n).label?(a(),i("div",{key:0,class:M(["VPNavScreenTranslations",{open:s.value}])},[r("button",{class:"title",onClick:o},[h(We,{class:"icon lang"}),C(" "+w(c(n).label)+" ",1),h(Ke,{class:"icon chevron"})]),r("ul",Uo,[(a(!0),i(I,null,B(c(t),f=>(a(),i("li",{key:f.link,class:"item"},[h(D,{class:"link",href:f.link},{default:v(()=>[C(w(f.text),1)]),_:2},1032,["href"])]))),128))])],2)):m("",!0)}});const qo=p(jo,[["__scopeId","data-v-41505286"]]),Ko=g({__name:"VPNavScreenSocialLinks",setup(e){const{theme:t}=V();return(n,s)=>c(t).socialLinks?(a(),y($e,{key:0,class:"VPNavScreenSocialLinks",links:c(t).socialLinks},null,8,["links"])):m("",!0)}}),Wo={class:"container"},Qo=g({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(e){const t=x(null);function n(){Ye(t.value,{reserveScrollBarGap:!0})}function s(){Xe()}return(o,l)=>(a(),y(fe,{name:"fade",onEnter:n,onAfterLeave:s},{default:v(()=>[e.open?(a(),i("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:t},[r("div",Wo,[u(o.$slots,"nav-screen-content-before",{},void 0,!0),h(zo,{class:"menu"}),h(qo,{class:"translations"}),h(Ro,{class:"appearance"}),h(Ko,{class:"social-links"}),u(o.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):m("",!0)]),_:3}))}});const Yo=p(Qo,[["__scopeId","data-v-183ec3ec"]]),Xo={class:"VPNav"},Jo=g({__name:"VPNav",setup(e){const{isScreenOpen:t,closeScreen:n,toggleScreen:s}=qt();return ne("close-screen",n),(o,l)=>(a(),i("header",Xo,[h(uo,{"is-screen-open":c(t),onToggleScreen:c(s)},{"nav-bar-title-before":v(()=>[u(o.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[u(o.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[u(o.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[u(o.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),h(Yo,{open:c(t)},{"nav-screen-content-before":v(()=>[u(o.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[u(o.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])]))}});const Zo=p(Jo,[["__scopeId","data-v-5bdc5df3"]]),ea={},ta={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},na=r("path",{d:"M17,11H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,11,17,11z"},null,-1),sa=r("path",{d:"M21,7H3C2.4,7,2,6.6,2,6s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,7,21,7z"},null,-1),oa=r("path",{d:"M21,15H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,15,21,15z"},null,-1),aa=r("path",{d:"M17,19H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,19,17,19z"},null,-1),ca=[na,sa,oa,aa];function la(e,t){return a(),i("svg",ta,ca)}const ia=p(ea,[["render",la]]);function ra(){const{hasSidebar:e}=O(),t=ue("(min-width: 960px)"),n=ue("(min-width: 1280px)");return{isAsideEnabled:b(()=>!n.value&&!t.value?!1:e.value?n.value:t.value)}}const ua=71;function Ve(e){return typeof e.outline=="object"&&!Array.isArray(e.outline)&&e.outline.label||e.outlineTitle||"On this page"}function xe(e){const t=[...document.querySelectorAll(".VPDoc h2,h3,h4,h5,h6")].filter(n=>n.id&&n.hasChildNodes()).map(n=>{const s=Number(n.tagName[1]);return{title:da(n),link:"#"+n.id,level:s}});return _a(t,e)}function da(e){let t="";for(const n of e.childNodes)if(n.nodeType===1){if(n.classList.contains("VPBadge")||n.classList.contains("header-anchor"))continue;t+=n.textContent}else n.nodeType===3&&(t+=n.textContent);return t.trim()}function _a(e,t){if(t===!1)return[];const n=(typeof t=="object"&&!Array.isArray(t)?t.level:t)||2,[s,o]=typeof n=="number"?[n,n]:n==="deep"?[2,6]:n;e=e.filter(d=>d.level>=s&&d.level<=o);const l=[];e:for(let d=0;d=0;_--){const k=e[_];if(k.level{requestAnimationFrame(l),window.addEventListener("scroll",s)}),vt(()=>{d(location.hash)}),ce(()=>{window.removeEventListener("scroll",s)});function l(){if(!n.value)return;const f=[].slice.call(e.value.querySelectorAll(".outline-link")),_=[].slice.call(document.querySelectorAll(".content .header-anchor")).filter(S=>f.some(T=>T.hash===S.hash&&S.offsetParent!==null)),k=window.scrollY,$=window.innerHeight,L=document.body.offsetHeight,P=Math.abs(k+$-L)<1;if(_.length&&P){d(_[_.length-1].hash);return}for(let S=0;S<_.length;S++){const T=_[S],N=_[S+1],[A,z]=fa(S,T,N);if(A){d(z);return}}}function d(f){o&&o.classList.remove("active"),f!==null&&(o=e.value.querySelector(`a[href="${decodeURIComponent(f)}"]`));const _=o;_?(_.classList.add("active"),t.value.style.top=_.offsetTop+33+"px",t.value.style.opacity="1"):(t.value.style.top="33px",t.value.style.opacity="0")}}function Oe(e){return e.parentElement.offsetTop-ua}function fa(e,t,n){const s=window.scrollY;return e===0&&s===0?[!0,null]:s{const o=R("VPDocOutlineItem",!0);return a(),i("ul",{class:M(e.root?"root":"nested")},[(a(!0),i(I,null,B(e.headers,({children:l,link:d,title:f})=>(a(),i("li",null,[r("a",{class:"outline-link",href:d,onClick:t},w(f),9,ha),l!=null&&l.length?(a(),y(o,{key:0,headers:l},null,8,["headers"])):m("",!0)]))),256))],2)}}});const Se=p(pa,[["__scopeId","data-v-e3c7877a"]]),ma={},ga={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},ya=r("path",{d:"M9,19c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l5.3-5.3L8.3,6.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l6,6c0.4,0.4,0.4,1,0,1.4l-6,6C9.5,18.9,9.3,19,9,19z"},null,-1),ba=[ya];function ka(e,t){return a(),i("svg",ga,ba)}const Le=p(ma,[["render",ka]]),$a=g({__name:"VPLocalNavOutlineDropdown",setup(e){const{frontmatter:t,theme:n}=V(),s=x(!1),o=x(0),l=x();X(()=>{s.value=!1});function d(){s.value=!s.value,o.value=window.innerHeight+Math.min(window.scrollY-64,0)}function f($){$.target.classList.contains("outline-link")&&(l.value&&(l.value.style.transition="none"),ze(()=>{s.value=!1}))}function _(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}const k=pe([]);return X(()=>{k.value=xe(t.value.outline??n.value.outline)}),($,L)=>(a(),i("div",{class:"VPLocalNavOutlineDropdown",style:ft({"--vp-vh":o.value+"px"})},[c(k).length>0?(a(),i("button",{key:0,onClick:d,class:M({open:s.value})},[C(w(c(Ve)(c(n)))+" ",1),h(Le,{class:"icon"})],2)):(a(),i("button",{key:1,onClick:_},w(c(n).returnToTopLabel||"Return to top"),1)),h(fe,{name:"flyout"},{default:v(()=>[s.value?(a(),i("div",{key:0,ref_key:"items",ref:l,class:"items",onClick:f},[r("a",{class:"top-link",href:"#",onClick:_},w(c(n).returnToTopLabel||"Return to top"),1),h(Se,{headers:c(k)},null,8,["headers"])],512)):m("",!0)]),_:1})],4))}});const Pa=p($a,[["__scopeId","data-v-fb63c957"]]),wa={key:0,class:"VPLocalNav"},Va=["aria-expanded"],xa={class:"menu-text"},Sa=g({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(e){const{theme:t}=V(),{hasSidebar:n}=O();return(s,o)=>c(n)?(a(),i("div",wa,[r("button",{class:"menu","aria-expanded":e.open,"aria-controls":"VPSidebarNav",onClick:o[0]||(o[0]=l=>s.$emit("open-menu"))},[h(ia,{class:"menu-icon"}),r("span",xa,w(c(t).sidebarMenuLabel||"Menu"),1)],8,Va),h(Pa)])):m("",!0)}});const La=p(Sa,[["__scopeId","data-v-4092cf71"]]),Ma=e=>(E("data-v-0bb349fd"),e=e(),H(),e),Ia=["role","tabindex"],Ca=Ma(()=>r("div",{class:"indicator"},null,-1)),Ta=["onKeydown"],Ba={key:1,class:"items"},Na=g({__name:"VPSidebarItem",props:{item:null,depth:null},setup(e){const t=e,{collapsed:n,collapsible:s,isLink:o,isActiveLink:l,hasActiveLink:d,hasChildren:f,toggle:_}=Dt(b(()=>t.item)),k=b(()=>f.value?"section":"div"),$=b(()=>o.value?"a":"div"),L=b(()=>f.value?t.depth+2===7?"p":`h${t.depth+2}`:"p"),P=b(()=>o.value?void 0:"button"),S=b(()=>[[`level-${t.depth}`],{collapsible:s.value},{collapsed:n.value},{"is-link":o.value},{"is-active":l.value},{"has-active":d.value}]);function T(A){"key"in A&&A.key!=="Enter"||!t.item.link&&_()}function N(){t.item.link&&_()}return(A,z)=>{const et=R("VPSidebarItem",!0);return a(),y(U(c(k)),{class:M(["VPSidebarItem",c(S)])},{default:v(()=>[e.item.text?(a(),i("div",te({key:0,class:"item",role:c(P)},pt(e.item.items?{click:T,keydown:T}:{},!0),{tabindex:e.item.items&&0}),[Ca,e.item.link?(a(),y(D,{key:0,tag:c($),class:"link",href:e.item.link},{default:v(()=>[(a(),y(U(c(L)),{class:"text",innerHTML:e.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href"])):(a(),y(U(c(L)),{key:1,class:"text",innerHTML:e.item.text},null,8,["innerHTML"])),e.item.collapsed!=null?(a(),i("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:N,onKeydown:ht(N,["enter"]),tabindex:"0"},[h(Le,{class:"caret-icon"})],40,Ta)):m("",!0)],16,Ia)):m("",!0),e.item.items&&e.item.items.length?(a(),i("div",Ba,[e.depth<5?(a(!0),i(I,{key:0},B(e.item.items,Me=>(a(),y(et,{key:Me.text,item:Me,depth:e.depth+1},null,8,["item","depth"]))),128)):m("",!0)])):m("",!0)]),_:1},8,["class"])}}});const Aa=p(Na,[["__scopeId","data-v-0bb349fd"]]),Ze=e=>(E("data-v-d2bf8cfc"),e=e(),H(),e),Ea=Ze(()=>r("div",{class:"curtain"},null,-1)),Ha={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},Oa=Ze(()=>r("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),za=g({__name:"VPSidebar",props:{open:{type:Boolean}},setup(e){const t=e,{sidebarGroups:n,hasSidebar:s}=O();let o=x(null);function l(){Ye(o.value,{reserveScrollBarGap:!0})}function d(){Xe()}return mt(async()=>{var f;t.open?(l(),(f=o.value)==null||f.focus()):d()}),(f,_)=>c(s)?(a(),i("aside",{key:0,class:M(["VPSidebar",{open:e.open}]),ref_key:"navEl",ref:o,onClick:_[0]||(_[0]=gt(()=>{},["stop"]))},[Ea,r("nav",Ha,[Oa,u(f.$slots,"sidebar-nav-before",{},void 0,!0),(a(!0),i(I,null,B(c(n),k=>(a(),i("div",{key:k.text,class:"group"},[h(Aa,{item:k,depth:0},null,8,["item"])]))),128)),u(f.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):m("",!0)}});const Da=p(za,[["__scopeId","data-v-d2bf8cfc"]]),Fa={},Ga={class:"VPPage"};function Ra(e,t){const n=R("Content");return a(),i("div",Ga,[u(e.$slots,"page-top"),h(n),u(e.$slots,"page-bottom")])}const Ua=p(Fa,[["render",Ra]]),ja=g({__name:"VPButton",props:{tag:null,size:null,theme:null,text:null,href:null},setup(e){const t=e,n=b(()=>[t.size??"medium",t.theme??"brand"]),s=b(()=>t.href&&De.test(t.href)),o=b(()=>t.tag?t.tag:t.href?"a":"button");return(l,d)=>(a(),y(U(c(o)),{class:M(["VPButton",c(n)]),href:e.href?c(J)(e.href):void 0,target:c(s)?"_blank":void 0,rel:c(s)?"noreferrer":void 0},{default:v(()=>[C(w(e.text),1)]),_:1},8,["class","href","target","rel"]))}});const qa=p(ja,[["__scopeId","data-v-fa1633a1"]]),Ka=e=>(E("data-v-73fffaef"),e=e(),H(),e),Wa={class:"container"},Qa={class:"main"},Ya={key:0,class:"name"},Xa={class:"clip"},Ja={key:1,class:"text"},Za={key:2,class:"tagline"},ec={key:0,class:"actions"},tc={key:0,class:"image"},nc={class:"image-container"},sc=Ka(()=>r("div",{class:"image-bg"},null,-1)),oc=g({__name:"VPHero",props:{name:null,text:null,tagline:null,image:null,actions:null},setup(e){const t=he("hero-image-slot-exists");return(n,s)=>(a(),i("div",{class:M(["VPHero",{"has-image":e.image||c(t)}])},[r("div",Wa,[r("div",Qa,[u(n.$slots,"home-hero-info",{},()=>[e.name?(a(),i("h1",Ya,[r("span",Xa,w(e.name),1)])):m("",!0),e.text?(a(),i("p",Ja,w(e.text),1)):m("",!0),e.tagline?(a(),i("p",Za,w(e.tagline),1)):m("",!0)],!0),e.actions?(a(),i("div",ec,[(a(!0),i(I,null,B(e.actions,o=>(a(),i("div",{key:o.link,class:"action"},[h(qa,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link},null,8,["theme","text","href"])]))),128))])):m("",!0)]),e.image||c(t)?(a(),i("div",tc,[r("div",nc,[sc,u(n.$slots,"home-hero-image",{},()=>[e.image?(a(),y(ge,{key:0,class:"image-src",image:e.image},null,8,["image"])):m("",!0)],!0)])])):m("",!0)])],2))}});const ac=p(oc,[["__scopeId","data-v-73fffaef"]]),cc=g({__name:"VPHomeHero",setup(e){const{frontmatter:t}=V();return(n,s)=>c(t).hero?(a(),y(ac,{key:0,class:"VPHomeHero",name:c(t).hero.name,text:c(t).hero.text,tagline:c(t).hero.tagline,image:c(t).hero.image,actions:c(t).hero.actions},{"home-hero-info":v(()=>[u(n.$slots,"home-hero-info")]),"home-hero-image":v(()=>[u(n.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):m("",!0)}}),lc={},ic={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},rc=r("path",{d:"M19.9,12.4c0.1-0.2,0.1-0.5,0-0.8c-0.1-0.1-0.1-0.2-0.2-0.3l-7-7c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l5.3,5.3H5c-0.6,0-1,0.4-1,1s0.4,1,1,1h11.6l-5.3,5.3c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l7-7C19.8,12.6,19.9,12.5,19.9,12.4z"},null,-1),uc=[rc];function dc(e,t){return a(),i("svg",ic,uc)}const _c=p(lc,[["render",dc]]),vc={class:"box"},fc=["innerHTML"],hc=["innerHTML"],pc=["innerHTML"],mc={key:3,class:"link-text"},gc={class:"link-text-value"},yc=g({__name:"VPFeature",props:{icon:null,title:null,details:null,link:null,linkText:null},setup(e){return(t,n)=>(a(),y(D,{class:"VPFeature",href:e.link,"no-icon":!0},{default:v(()=>[r("article",vc,[typeof e.icon=="object"?(a(),y(ge,{key:0,image:e.icon,alt:e.icon.alt,height:e.icon.height,width:e.icon.width},null,8,["image","alt","height","width"])):e.icon?(a(),i("div",{key:1,class:"icon",innerHTML:e.icon},null,8,fc)):m("",!0),r("h2",{class:"title",innerHTML:e.title},null,8,hc),e.details?(a(),i("p",{key:2,class:"details",innerHTML:e.details},null,8,pc)):m("",!0),e.linkText?(a(),i("div",mc,[r("p",gc,[C(w(e.linkText)+" ",1),h(_c,{class:"link-text-icon"})])])):m("",!0)])]),_:1},8,["href"]))}});const bc=p(yc,[["__scopeId","data-v-5f01e926"]]),kc={key:0,class:"VPFeatures"},$c={class:"container"},Pc={class:"items"},wc=g({__name:"VPFeatures",props:{features:null},setup(e){const t=e,n=b(()=>{const s=t.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s%2===0)return"grid-4"}else return});return(s,o)=>e.features?(a(),i("div",kc,[r("div",$c,[r("div",Pc,[(a(!0),i(I,null,B(e.features,l=>(a(),i("div",{key:l.title,class:M(["item",[c(n)]])},[h(bc,{icon:l.icon,title:l.title,details:l.details,link:l.link,"link-text":l.linkText},null,8,["icon","title","details","link","link-text"])],2))),128))])])])):m("",!0)}});const Vc=p(wc,[["__scopeId","data-v-5df66ecb"]]),xc=g({__name:"VPHomeFeatures",setup(e){const{frontmatter:t}=V();return(n,s)=>c(t).features?(a(),y(Vc,{key:0,class:"VPHomeFeatures",features:c(t).features},null,8,["features"])):m("",!0)}}),Sc={class:"VPHome"},Lc=g({__name:"VPHome",setup(e){return(t,n)=>{const s=R("Content");return a(),i("div",Sc,[u(t.$slots,"home-hero-before",{},void 0,!0),h(cc,null,{"home-hero-info":v(()=>[u(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[u(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),u(t.$slots,"home-hero-after",{},void 0,!0),u(t.$slots,"home-features-before",{},void 0,!0),h(xc),u(t.$slots,"home-features-after",{},void 0,!0),h(s)])}}});const Mc=p(Lc,[["__scopeId","data-v-20eabd3a"]]),Ic=e=>(E("data-v-c834746b"),e=e(),H(),e),Cc={class:"content"},Tc={class:"outline-title"},Bc={"aria-labelledby":"doc-outline-aria-label"},Nc=Ic(()=>r("span",{class:"visually-hidden",id:"doc-outline-aria-label"}," Table of Contents for current page ",-1)),Ac=g({__name:"VPDocAsideOutline",setup(e){const{frontmatter:t,theme:n}=V(),s=pe([]);X(()=>{s.value=xe(t.value.outline??n.value.outline)});const o=x(),l=x();return va(o,l),(d,f)=>(a(),i("div",{class:M(["VPDocAsideOutline",{"has-outline":c(s).length>0}]),ref_key:"container",ref:o},[r("div",Cc,[r("div",{class:"outline-marker",ref_key:"marker",ref:l},null,512),r("div",Tc,w(c(Ve)(c(n))),1),r("nav",Bc,[Nc,h(Se,{headers:c(s),root:!0},null,8,["headers"])])])],2))}});const Ec=p(Ac,[["__scopeId","data-v-c834746b"]]),Hc={class:"VPDocAsideCarbonAds"},Oc=g({__name:"VPDocAsideCarbonAds",props:{carbonAds:null},setup(e){const t=()=>null;return(n,s)=>(a(),i("div",Hc,[h(c(t),{"carbon-ads":e.carbonAds},null,8,["carbon-ads"])]))}}),zc=e=>(E("data-v-cb998dce"),e=e(),H(),e),Dc={class:"VPDocAside"},Fc=zc(()=>r("div",{class:"spacer"},null,-1)),Gc=g({__name:"VPDocAside",setup(e){const{theme:t}=V();return(n,s)=>(a(),i("div",Dc,[u(n.$slots,"aside-top",{},void 0,!0),u(n.$slots,"aside-outline-before",{},void 0,!0),h(Ec),u(n.$slots,"aside-outline-after",{},void 0,!0),Fc,u(n.$slots,"aside-ads-before",{},void 0,!0),c(t).carbonAds?(a(),y(Oc,{key:0,"carbon-ads":c(t).carbonAds},null,8,["carbon-ads"])):m("",!0),u(n.$slots,"aside-ads-after",{},void 0,!0),u(n.$slots,"aside-bottom",{},void 0,!0)]))}});const Rc=p(Gc,[["__scopeId","data-v-cb998dce"]]);function Uc(){const{theme:e,page:t}=V();return b(()=>{const{text:n="Edit this page",pattern:s=""}=e.value.editLink||{},{relativePath:o}=t.value;let l;return typeof s=="function"?l=s({relativePath:o}):l=s.replace(/:path/g,o),{url:l,text:n}})}function jc(){const{page:e,theme:t,frontmatter:n}=V();return b(()=>{var d,f,_,k;const s=Ue(t.value.sidebar,e.value.relativePath),o=Ot(s),l=o.findIndex($=>K(e.value.relativePath,$.link));return{prev:n.value.prev===!1?void 0:{text:(typeof n.value.prev=="string"?n.value.prev:typeof n.value.prev=="object"?n.value.prev.text:void 0)??((d=o[l-1])==null?void 0:d.text),link:(typeof n.value.prev=="object"?n.value.prev.link:void 0)??((f=o[l-1])==null?void 0:f.link)},next:n.value.next===!1?void 0:{text:(typeof n.value.next=="string"?n.value.next:typeof n.value.next=="object"?n.value.next.text:void 0)??((_=o[l+1])==null?void 0:_.text),link:(typeof n.value.next=="object"?n.value.next.link:void 0)??((k=o[l+1])==null?void 0:k.link)}}})}const qc={},Kc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Wc=r("path",{d:"M18,23H4c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h7c0.6,0,1,0.4,1,1s-0.4,1-1,1H4C3.4,5,3,5.4,3,6v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1v-7c0-0.6,0.4-1,1-1s1,0.4,1,1v7C21,21.7,19.7,23,18,23z"},null,-1),Qc=r("path",{d:"M8,17c-0.3,0-0.5-0.1-0.7-0.3C7,16.5,6.9,16.1,7,15.8l1-4c0-0.2,0.1-0.3,0.3-0.5l9.5-9.5c1.2-1.2,3.2-1.2,4.4,0c1.2,1.2,1.2,3.2,0,4.4l-9.5,9.5c-0.1,0.1-0.3,0.2-0.5,0.3l-4,1C8.2,17,8.1,17,8,17zM9.9,12.5l-0.5,2.1l2.1-0.5l9.3-9.3c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l0,0L9.9,12.5z M18.5,2.5L18.5,2.5L18.5,2.5z"},null,-1),Yc=[Wc,Qc];function Xc(e,t){return a(),i("svg",Kc,Yc)}const Jc=p(qc,[["render",Xc]]),Zc={class:"VPLastUpdated"},el=["datetime"],tl=g({__name:"VPDocFooterLastUpdated",setup(e){const{theme:t,page:n,lang:s}=V(),o=b(()=>new Date(n.value.lastUpdated)),l=b(()=>o.value.toISOString()),d=x("");return G(()=>{Y(()=>{d.value=o.value.toLocaleString(s.value)})}),(f,_)=>(a(),i("p",Zc,[C(w(c(t).lastUpdatedText||"Last updated")+": ",1),r("time",{datetime:c(l)},w(d.value),9,el)]))}});const nl=p(tl,[["__scopeId","data-v-0de45606"]]),sl={key:0,class:"VPDocFooter"},ol={key:0,class:"edit-info"},al={key:0,class:"edit-link"},cl={key:1,class:"last-updated"},ll={key:1,class:"prev-next"},il={class:"pager"},rl=["href"],ul=["innerHTML"],dl=["innerHTML"],_l=["href"],vl=["innerHTML"],fl=["innerHTML"],hl=g({__name:"VPDocFooter",setup(e){const{theme:t,page:n,frontmatter:s}=V(),o=Uc(),l=jc(),d=b(()=>t.value.editLink&&s.value.editLink!==!1),f=b(()=>n.value.lastUpdated&&s.value.lastUpdated!==!1),_=b(()=>d.value||f.value||l.value.prev||l.value.next);return(k,$)=>{var L,P,S,T,N,A,z;return c(_)?(a(),i("footer",sl,[u(k.$slots,"doc-footer-before",{},void 0,!0),c(d)||c(f)?(a(),i("div",ol,[c(d)?(a(),i("div",al,[h(D,{class:"edit-link-button",href:c(o).url,"no-icon":!0},{default:v(()=>[h(Jc,{class:"edit-link-icon","aria-label":"edit icon"}),C(" "+w(c(o).text),1)]),_:1},8,["href"])])):m("",!0),c(f)?(a(),i("div",cl,[h(nl)])):m("",!0)])):m("",!0),(L=c(l).prev)!=null&&L.link||(P=c(l).next)!=null&&P.link?(a(),i("div",ll,[r("div",il,[(S=c(l).prev)!=null&&S.link?(a(),i("a",{key:0,class:"pager-link prev",href:c(J)(c(l).prev.link)},[r("span",{class:"desc",innerHTML:((T=c(t).docFooter)==null?void 0:T.prev)||"Previous page"},null,8,ul),r("span",{class:"title",innerHTML:c(l).prev.text},null,8,dl)],8,rl)):m("",!0)]),r("div",{class:M(["pager",{"has-prev":(N=c(l).prev)==null?void 0:N.link}])},[(A=c(l).next)!=null&&A.link?(a(),i("a",{key:0,class:"pager-link next",href:c(J)(c(l).next.link)},[r("span",{class:"desc",innerHTML:((z=c(t).docFooter)==null?void 0:z.next)||"Next page"},null,8,vl),r("span",{class:"title",innerHTML:c(l).next.text},null,8,fl)],8,_l)):m("",!0)],2)])):m("",!0)])):m("",!0)}}});const pl=p(hl,[["__scopeId","data-v-fc0d1b73"]]),ml={key:0,class:"VPDocOutlineDropdown"},gl={key:0,class:"items"},yl=g({__name:"VPDocOutlineDropdown",setup(e){const{frontmatter:t,theme:n}=V(),s=x(!1);X(()=>{s.value=!1});const o=pe([]);return X(()=>{o.value=xe(t.value.outline??n.value.outline)}),(l,d)=>c(o).length>0?(a(),i("div",ml,[r("button",{onClick:d[0]||(d[0]=f=>s.value=!s.value),class:M({open:s.value})},[C(w(c(Ve)(c(n)))+" ",1),h(Le,{class:"icon"})],2),s.value?(a(),i("div",gl,[h(Se,{headers:c(o)},null,8,["headers"])])):m("",!0)])):m("",!0)}});const bl=p(yl,[["__scopeId","data-v-2d98506c"]]),kl=e=>(E("data-v-c11df1f0"),e=e(),H(),e),$l={class:"container"},Pl=kl(()=>r("div",{class:"aside-curtain"},null,-1)),wl={class:"aside-container"},Vl={class:"aside-content"},xl={class:"content"},Sl={class:"content-container"},Ll={class:"main"},Ml=g({__name:"VPDoc",setup(e){const t=Z(),{hasSidebar:n,hasAside:s,leftAside:o}=O(),l=b(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(d,f)=>{const _=R("Content");return a(),i("div",{class:M(["VPDoc",{"has-sidebar":c(n),"has-aside":c(s)}])},[u(d.$slots,"doc-top",{},void 0,!0),r("div",$l,[c(s)?(a(),i("div",{key:0,class:M(["aside",{"left-aside":c(o)}])},[Pl,r("div",wl,[r("div",Vl,[h(Rc,null,{"aside-top":v(()=>[u(d.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[u(d.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[u(d.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[u(d.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[u(d.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[u(d.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):m("",!0),r("div",xl,[r("div",Sl,[u(d.$slots,"doc-before",{},void 0,!0),h(bl),r("main",Ll,[h(_,{class:M(["vp-doc",c(l)])},null,8,["class"])]),h(pl,null,{"doc-footer-before":v(()=>[u(d.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),u(d.$slots,"doc-after",{},void 0,!0)])])]),u(d.$slots,"doc-bottom",{},void 0,!0)],2)}}});const Il=p(Ml,[["__scopeId","data-v-c11df1f0"]]),ie=e=>(E("data-v-e5bd6573"),e=e(),H(),e),Cl={class:"NotFound"},Tl=ie(()=>r("p",{class:"code"},"404",-1)),Bl=ie(()=>r("h1",{class:"title"},"PAGE NOT FOUND",-1)),Nl=ie(()=>r("div",{class:"divider"},null,-1)),Al=ie(()=>r("blockquote",{class:"quote"}," But if you don't change your direction, and if you keep looking, you may end up where you are heading. ",-1)),El={class:"action"},Hl=["href"],Ol=g({__name:"NotFound",setup(e){const{site:t}=V(),{localeLinks:n}=ee({removeCurrent:!1}),s=x("/");return G(()=>{var l;const o=window.location.pathname.replace(t.value.base,"").replace(/(^.*?\/).*$/,"/$1");n.value.length&&(s.value=((l=n.value.find(({link:d})=>d.startsWith(o)))==null?void 0:l.link)||n.value[0].link)}),(o,l)=>(a(),i("div",Cl,[Tl,Bl,Nl,Al,r("div",El,[r("a",{class:"link",href:c(ve)(s.value),"aria-label":"go to home"}," Take me home ",8,Hl)])]))}});const zl=p(Ol,[["__scopeId","data-v-e5bd6573"]]),Dl=g({__name:"VPContent",setup(e){const{page:t,frontmatter:n}=V(),{hasSidebar:s}=O();return(o,l)=>(a(),i("div",{class:M(["VPContent",{"has-sidebar":c(s),"is-home":c(n).layout==="home"}]),id:"VPContent"},[c(t).isNotFound?u(o.$slots,"not-found",{key:0},()=>[h(zl)],!0):c(n).layout==="page"?(a(),y(Ua,{key:1},{"page-top":v(()=>[u(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[u(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):c(n).layout==="home"?(a(),y(Mc,{key:2},{"home-hero-before":v(()=>[u(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info":v(()=>[u(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[u(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[u(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[u(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[u(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):(a(),y(Il,{key:3},{"doc-top":v(()=>[u(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[u(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[u(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[u(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[u(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[u(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[u(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[u(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[u(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[u(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[u(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}});const Fl=p(Dl,[["__scopeId","data-v-91952ce3"]]),Gl={class:"container"},Rl=["innerHTML"],Ul=["innerHTML"],jl=g({__name:"VPFooter",setup(e){const{theme:t}=V(),{hasSidebar:n}=O();return(s,o)=>c(t).footer?(a(),i("footer",{key:0,class:M(["VPFooter",{"has-sidebar":c(n)}])},[r("div",Gl,[c(t).footer.message?(a(),i("p",{key:0,class:"message",innerHTML:c(t).footer.message},null,8,Rl)):m("",!0),c(t).footer.copyright?(a(),i("p",{key:1,class:"copyright",innerHTML:c(t).footer.copyright},null,8,Ul)):m("",!0)])],2)):m("",!0)}});const ql=p(jl,[["__scopeId","data-v-07acdfa3"]]),Kl={key:0,class:"Layout"},Wl=g({__name:"Layout",setup(e){const{isOpen:t,open:n,close:s}=O(),o=Z();q(()=>o.path,s),zt(t,s),ne("close-sidebar",s),ne("is-sidebar-open",t);const{frontmatter:l}=V(),d=yt(),f=b(()=>!!d["home-hero-image"]);return ne("hero-image-slot-exists",f),(_,k)=>{const $=R("Content");return c(l).layout!==!1?(a(),i("div",Kl,[u(_.$slots,"layout-top",{},void 0,!0),h(Gt),h(jt,{class:"backdrop",show:c(t),onClick:c(s)},null,8,["show","onClick"]),h(Zo,null,{"nav-bar-title-before":v(()=>[u(_.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[u(_.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[u(_.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[u(_.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[u(_.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[u(_.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),h(La,{open:c(t),onOpenMenu:c(n)},null,8,["open","onOpenMenu"]),h(Da,{open:c(t)},{"sidebar-nav-before":v(()=>[u(_.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[u(_.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),h(Fl,null,{"page-top":v(()=>[u(_.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[u(_.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[u(_.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[u(_.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info":v(()=>[u(_.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[u(_.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[u(_.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[u(_.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[u(_.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[u(_.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[u(_.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[u(_.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[u(_.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[u(_.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[u(_.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[u(_.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[u(_.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[u(_.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[u(_.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[u(_.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),h(ql),u(_.$slots,"layout-bottom",{},void 0,!0)])):(a(),y($,{key:1}))}}});const Ql=p(Wl,[["__scopeId","data-v-bffce215"]]);const Xl={Layout:Ql,enhanceApp:({app:e})=>{e.component("Badge",kt)}};export{Xl as t,V as u}; diff --git a/docs/assets/core.md.04b61d38.js b/docs/assets/core.md.04b61d38.js deleted file mode 100644 index 8b26d52..0000000 --- a/docs/assets/core.md.04b61d38.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as a,Q as r}from"./chunks/framework.7addaa9c.js";const _=JSON.parse('{"title":"Core","description":"","frontmatter":{},"headers":[],"relativePath":"core.md","lastUpdated":1666705294000}'),o={name:"core.md"},s=r('

Core

This page is about the PeyrSharp.Core module.

Compatibility

The PeyrSharp.Core module is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Namespaces

The Core namespace contains other namespaces:

Classes

',10),l=[s];function i(d,h,c,n,m,p){return a(),e("div",null,l)}const f=t(o,[["render",i]]);export{_ as __pageData,f as default}; diff --git a/docs/assets/core.md.04b61d38.lean.js b/docs/assets/core.md.04b61d38.lean.js deleted file mode 100644 index 7580787..0000000 --- a/docs/assets/core.md.04b61d38.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as a,Q as r}from"./chunks/framework.7addaa9c.js";const _=JSON.parse('{"title":"Core","description":"","frontmatter":{},"headers":[],"relativePath":"core.md","lastUpdated":1666705294000}'),o={name:"core.md"},s=r("",10),l=[s];function i(d,h,c,n,m,p){return a(),e("div",null,l)}const f=t(o,[["render",i]]);export{_ as __pageData,f as default}; diff --git a/docs/assets/core.md.915e00ad.js b/docs/assets/core.md.915e00ad.js new file mode 100644 index 0000000..96e32fc --- /dev/null +++ b/docs/assets/core.md.915e00ad.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as a,R as r}from"./chunks/framework.bdd825cc.js";const _=JSON.parse('{"title":"Core","description":"","frontmatter":{},"headers":[],"relativePath":"core.md","filePath":"core.md","lastUpdated":1666705294000}'),o={name:"core.md"},s=r('

Core

This page is about the PeyrSharp.Core module.

Compatibility

The PeyrSharp.Core module is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Namespaces

The Core namespace contains other namespaces:

Classes

',10),l=[s];function i(d,h,c,n,m,p){return a(),e("div",null,l)}const f=t(o,[["render",i]]);export{_ as __pageData,f as default}; diff --git a/docs/assets/core.md.915e00ad.lean.js b/docs/assets/core.md.915e00ad.lean.js new file mode 100644 index 0000000..46ab031 --- /dev/null +++ b/docs/assets/core.md.915e00ad.lean.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as a,R as r}from"./chunks/framework.bdd825cc.js";const _=JSON.parse('{"title":"Core","description":"","frontmatter":{},"headers":[],"relativePath":"core.md","filePath":"core.md","lastUpdated":1666705294000}'),o={name:"core.md"},s=r("",10),l=[s];function i(d,h,c,n,m,p){return a(),e("div",null,l)}const f=t(o,[["render",i]]);export{_ as __pageData,f as default}; diff --git a/docs/assets/core_converters.md.545d75a5.js b/docs/assets/core_converters.md.545d75a5.js new file mode 100644 index 0000000..a7f8281 --- /dev/null +++ b/docs/assets/core_converters.md.545d75a5.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as r,R as a}from"./chunks/framework.bdd825cc.js";const _=JSON.parse('{"title":"Converters","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters.md","filePath":"core/converters.md","lastUpdated":1666629081000}'),o={name:"core/converters.md"},s=a('

Converters

This page is about the Converters namespace available in PeyrSharp.Core. You can find here all of its classes.

Compatibility

The Converters namespace is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Classes

',7),l=[s];function c(i,n,h,d,m,p){return r(),t("div",null,l)}const v=e(o,[["render",c]]);export{_ as __pageData,v as default}; diff --git a/docs/assets/core_converters.md.545d75a5.lean.js b/docs/assets/core_converters.md.545d75a5.lean.js new file mode 100644 index 0000000..28864cb --- /dev/null +++ b/docs/assets/core_converters.md.545d75a5.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as r,R as a}from"./chunks/framework.bdd825cc.js";const _=JSON.parse('{"title":"Converters","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters.md","filePath":"core/converters.md","lastUpdated":1666629081000}'),o={name:"core/converters.md"},s=a("",7),l=[s];function c(i,n,h,d,m,p){return r(),t("div",null,l)}const v=e(o,[["render",c]]);export{_ as __pageData,v as default}; diff --git a/docs/assets/core_converters.md.e3a58f3d.js b/docs/assets/core_converters.md.e3a58f3d.js deleted file mode 100644 index 0453188..0000000 --- a/docs/assets/core_converters.md.e3a58f3d.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as r,Q as a}from"./chunks/framework.7addaa9c.js";const _=JSON.parse('{"title":"Converters","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters.md","lastUpdated":1666629081000}'),o={name:"core/converters.md"},s=a('

Converters

This page is about the Converters namespace available in PeyrSharp.Core. You can find here all of its classes.

Compatibility

The Converters namespace is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Classes

',7),l=[s];function c(i,n,h,d,m,p){return r(),t("div",null,l)}const v=e(o,[["render",c]]);export{_ as __pageData,v as default}; diff --git a/docs/assets/core_converters.md.e3a58f3d.lean.js b/docs/assets/core_converters.md.e3a58f3d.lean.js deleted file mode 100644 index 9f340ae..0000000 --- a/docs/assets/core_converters.md.e3a58f3d.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as r,Q as a}from"./chunks/framework.7addaa9c.js";const _=JSON.parse('{"title":"Converters","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters.md","lastUpdated":1666629081000}'),o={name:"core/converters.md"},s=a("",7),l=[s];function c(i,n,h,d,m,p){return r(),t("div",null,l)}const v=e(o,[["render",c]]);export{_ as __pageData,v as default}; diff --git a/docs/assets/core_converters_angle.md.545270b4.js b/docs/assets/core_converters_angle.md.545270b4.js new file mode 100644 index 0000000..a92cbbc --- /dev/null +++ b/docs/assets/core_converters_angle.md.545270b4.js @@ -0,0 +1,7 @@ +import{_ as e,c as a,o as t,R as s}from"./chunks/framework.bdd825cc.js";const b=JSON.parse('{"title":"Angle","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/angle.md","filePath":"core/converters/angle.md","lastUpdated":1666626451000}'),o={name:"core/converters/angle.md"},n=s(`

Angle

This page is about the Angle class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Angle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

DegreesToRadians(degrees)

Definition

Converts degrees to radians. Returns a double value.

Arguments

TypeNameMeaning
doubledegreesNumber of degrees to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double radians = Angle.DegreesToRadians(90);
+// radians = 1.5707963271535559

RadiansToDegrees(radians)

Definition

Converts radians to degrees. Returns a double value.

Arguments

TypeNameMeaning
doubleradiansNumber of radians to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double deg = Angle.RadiansToDegrees(1.2);
+// deg = 68.7549354
`,21),r=[n];function l(d,i,c,p,h,g){return t(),a("div",null,r)}const m=e(o,[["render",l]]);export{b as __pageData,m as default}; diff --git a/docs/assets/core_converters_angle.md.545270b4.lean.js b/docs/assets/core_converters_angle.md.545270b4.lean.js new file mode 100644 index 0000000..e3328a2 --- /dev/null +++ b/docs/assets/core_converters_angle.md.545270b4.lean.js @@ -0,0 +1 @@ +import{_ as e,c as a,o as t,R as s}from"./chunks/framework.bdd825cc.js";const b=JSON.parse('{"title":"Angle","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/angle.md","filePath":"core/converters/angle.md","lastUpdated":1666626451000}'),o={name:"core/converters/angle.md"},n=s("",21),r=[n];function l(d,i,c,p,h,g){return t(),a("div",null,r)}const m=e(o,[["render",l]]);export{b as __pageData,m as default}; diff --git a/docs/assets/core_converters_angle.md.628bef10.js b/docs/assets/core_converters_angle.md.628bef10.js deleted file mode 100644 index 81b0b14..0000000 --- a/docs/assets/core_converters_angle.md.628bef10.js +++ /dev/null @@ -1,9 +0,0 @@ -import{_ as a,c as e,o as s,Q as t}from"./chunks/framework.7addaa9c.js";const b=JSON.parse('{"title":"Angle","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/angle.md","lastUpdated":1666626451000}'),n={name:"core/converters/angle.md"},o=t(`

Angle

This page is about the Angle class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Angle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

DegreesToRadians(degrees)

Definition

Converts degrees to radians. Returns a double value.

Arguments

TypeNameMeaning
doubledegreesNumber of degrees to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double radians = Angle.DegreesToRadians(90);
-// radians = 1.5707963271535559
-

RadiansToDegrees(radians)

Definition

Converts radians to degrees. Returns a double value.

Arguments

TypeNameMeaning
doubleradiansNumber of radians to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double deg = Angle.RadiansToDegrees(1.2);
-// deg = 68.7549354
-
`,21),r=[o];function l(d,i,c,p,h,g){return s(),e("div",null,r)}const m=a(n,[["render",l]]);export{b as __pageData,m as default}; diff --git a/docs/assets/core_converters_angle.md.628bef10.lean.js b/docs/assets/core_converters_angle.md.628bef10.lean.js deleted file mode 100644 index 52cb76c..0000000 --- a/docs/assets/core_converters_angle.md.628bef10.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as e,o as s,Q as t}from"./chunks/framework.7addaa9c.js";const b=JSON.parse('{"title":"Angle","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/angle.md","lastUpdated":1666626451000}'),n={name:"core/converters/angle.md"},o=t("",21),r=[o];function l(d,i,c,p,h,g){return s(),e("div",null,r)}const m=a(n,[["render",l]]);export{b as __pageData,m as default}; diff --git a/docs/assets/core_converters_colors_hex.md.8310aa19.js b/docs/assets/core_converters_colors_hex.md.8310aa19.js deleted file mode 100644 index 18324b2..0000000 --- a/docs/assets/core_converters_colors_hex.md.8310aa19.js +++ /dev/null @@ -1,11 +0,0 @@ -import{_ as a,c as e,o as s,Q as o}from"./chunks/framework.7addaa9c.js";const C=JSON.parse('{"title":"HEX","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/colors/hex.md","lastUpdated":1666628903000}'),t={name:"core/converters/colors/hex.md"},n=o(`

HEX

This page is about the HEX class available in PeyrSharp.Core.Converters. You can find here all of its methods and properties.

Compatibility

The HEX class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

HEX(hex)

Initializes a hexadecimal class from a hexadecimal value.

Arguments

TypeNameMeaning
stringhexThe hexadecimal value (with or without #).

WARNING

If you specify a non-hexadecimal value, a HEXInvalidValueException will be thrown.

Usage

c#
using PeyrSharp.Core.Converters;
-
-HEX hex = new("#FF0A17");
-

Methods

ToRgb()

Definition

Converts the HEX color to RGB. Returns a RGB class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
-
-RGB rgb = new HEX("#FFFFFF").ToRgb();
-

ToHsv()

Definition

Converts the HEX color to HSV. Returns a HSV class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
-
-HSV hsv = new HEX("#E1077B").ToHsv();
-

Properties

Value

Definition

c#
public string Value { get; init; }
-

The Value property contains the hexadecimal value of the HEX color. You can only get this property.

`,33),l=[n];function r(c,p,i,h,d,u){return s(),e("div",null,l)}const F=a(t,[["render",r]]);export{C as __pageData,F as default}; diff --git a/docs/assets/core_converters_colors_hex.md.8310aa19.lean.js b/docs/assets/core_converters_colors_hex.md.8310aa19.lean.js deleted file mode 100644 index b7dfa61..0000000 --- a/docs/assets/core_converters_colors_hex.md.8310aa19.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as e,o as s,Q as o}from"./chunks/framework.7addaa9c.js";const C=JSON.parse('{"title":"HEX","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/colors/hex.md","lastUpdated":1666628903000}'),t={name:"core/converters/colors/hex.md"},n=o("",33),l=[n];function r(c,p,i,h,d,u){return s(),e("div",null,l)}const F=a(t,[["render",r]]);export{C as __pageData,F as default}; diff --git a/docs/assets/core_converters_colors_hex.md.b44f5622.js b/docs/assets/core_converters_colors_hex.md.b44f5622.js new file mode 100644 index 0000000..80dc99c --- /dev/null +++ b/docs/assets/core_converters_colors_hex.md.b44f5622.js @@ -0,0 +1,7 @@ +import{_ as a,c as e,o as s,R as o}from"./chunks/framework.bdd825cc.js";const C=JSON.parse('{"title":"HEX","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/colors/hex.md","filePath":"core/converters/colors/hex.md","lastUpdated":1666628903000}'),t={name:"core/converters/colors/hex.md"},n=o(`

HEX

This page is about the HEX class available in PeyrSharp.Core.Converters. You can find here all of its methods and properties.

Compatibility

The HEX class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

HEX(hex)

Initializes a hexadecimal class from a hexadecimal value.

Arguments

TypeNameMeaning
stringhexThe hexadecimal value (with or without #).

WARNING

If you specify a non-hexadecimal value, a HEXInvalidValueException will be thrown.

Usage

c#
using PeyrSharp.Core.Converters;
+
+HEX hex = new("#FF0A17");

Methods

ToRgb()

Definition

Converts the HEX color to RGB. Returns a RGB class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
+
+RGB rgb = new HEX("#FFFFFF").ToRgb();

ToHsv()

Definition

Converts the HEX color to HSV. Returns a HSV class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
+
+HSV hsv = new HEX("#E1077B").ToHsv();

Properties

Value

Definition

c#
public string Value { get; init; }

The Value property contains the hexadecimal value of the HEX color. You can only get this property.

`,33),l=[n];function r(c,p,i,h,d,u){return s(),e("div",null,l)}const F=a(t,[["render",r]]);export{C as __pageData,F as default}; diff --git a/docs/assets/core_converters_colors_hex.md.b44f5622.lean.js b/docs/assets/core_converters_colors_hex.md.b44f5622.lean.js new file mode 100644 index 0000000..1fd0d12 --- /dev/null +++ b/docs/assets/core_converters_colors_hex.md.b44f5622.lean.js @@ -0,0 +1 @@ +import{_ as a,c as e,o as s,R as o}from"./chunks/framework.bdd825cc.js";const C=JSON.parse('{"title":"HEX","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/colors/hex.md","filePath":"core/converters/colors/hex.md","lastUpdated":1666628903000}'),t={name:"core/converters/colors/hex.md"},n=o("",33),l=[n];function r(c,p,i,h,d,u){return s(),e("div",null,l)}const F=a(t,[["render",r]]);export{C as __pageData,F as default}; diff --git a/docs/assets/core_converters_colors_hsv.md.49f77895.js b/docs/assets/core_converters_colors_hsv.md.49f77895.js new file mode 100644 index 0000000..bf286c3 --- /dev/null +++ b/docs/assets/core_converters_colors_hsv.md.49f77895.js @@ -0,0 +1,3 @@ +import{_ as a,c as e,o as t,R as o}from"./chunks/framework.bdd825cc.js";const C=JSON.parse('{"title":"HSV","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/colors/hsv.md","filePath":"core/converters/colors/hsv.md","lastUpdated":1666628914000}'),s={name:"core/converters/colors/hsv.md"},n=o(`

HSV

This page is about the HSV class available in PeyrSharp.Core.Converters. You can find here all of its methods and properties.

Compatibility

The HSV class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

HSV(hue, saturation, value)

Definition

Initializes a HSV color from its hue, saturation, and value.

Arguments

TypeNameMeaning
inthueThe Hue of the color.
intsaturationThe saturation percentage.
intvalueThe value/brightness percentage.

Usage

c#
using PeyrSharp.Core.Converters;
+
+HSV hsv = new(50, 75, 100);

Properties

Hue

Definition

c#
public int Hue { get; init; }

The Hue property contains the hue of the HSV color. You can only get this property.

Saturation

Definition

c#
public int Saturation { get; init; }

The Value property contains the saturation percentage of the HSV color. You can only get this property.

Value

Definition

c#
public int Value { get; init; }

The Value property contains the value/brightness percentage of the HSV color. You can only get this property.

`,26),r=[n];function l(i,c,p,d,h,u){return t(),e("div",null,r)}const D=a(s,[["render",l]]);export{C as __pageData,D as default}; diff --git a/docs/assets/core_converters_colors_hsv.md.49f77895.lean.js b/docs/assets/core_converters_colors_hsv.md.49f77895.lean.js new file mode 100644 index 0000000..ac51da7 --- /dev/null +++ b/docs/assets/core_converters_colors_hsv.md.49f77895.lean.js @@ -0,0 +1 @@ +import{_ as a,c as e,o as t,R as o}from"./chunks/framework.bdd825cc.js";const C=JSON.parse('{"title":"HSV","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/colors/hsv.md","filePath":"core/converters/colors/hsv.md","lastUpdated":1666628914000}'),s={name:"core/converters/colors/hsv.md"},n=o("",26),r=[n];function l(i,c,p,d,h,u){return t(),e("div",null,r)}const D=a(s,[["render",l]]);export{C as __pageData,D as default}; diff --git a/docs/assets/core_converters_colors_hsv.md.70b2079b.js b/docs/assets/core_converters_colors_hsv.md.70b2079b.js deleted file mode 100644 index 697ac1c..0000000 --- a/docs/assets/core_converters_colors_hsv.md.70b2079b.js +++ /dev/null @@ -1,7 +0,0 @@ -import{_ as a,c as e,o as t,Q as s}from"./chunks/framework.7addaa9c.js";const C=JSON.parse('{"title":"HSV","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/colors/hsv.md","lastUpdated":1666628914000}'),o={name:"core/converters/colors/hsv.md"},n=s(`

HSV

This page is about the HSV class available in PeyrSharp.Core.Converters. You can find here all of its methods and properties.

Compatibility

The HSV class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

HSV(hue, saturation, value)

Definition

Initializes a HSV color from its hue, saturation, and value.

Arguments

TypeNameMeaning
inthueThe Hue of the color.
intsaturationThe saturation percentage.
intvalueThe value/brightness percentage.

Usage

c#
using PeyrSharp.Core.Converters;
-
-HSV hsv = new(50, 75, 100);
-

Properties

Hue

Definition

c#
public int Hue { get; init; }
-

The Hue property contains the hue of the HSV color. You can only get this property.

Saturation

Definition

c#
public int Saturation { get; init; }
-

The Value property contains the saturation percentage of the HSV color. You can only get this property.

Value

Definition

c#
public int Value { get; init; }
-

The Value property contains the value/brightness percentage of the HSV color. You can only get this property.

`,26),r=[n];function l(i,c,p,d,h,u){return t(),e("div",null,r)}const D=a(o,[["render",l]]);export{C as __pageData,D as default}; diff --git a/docs/assets/core_converters_colors_hsv.md.70b2079b.lean.js b/docs/assets/core_converters_colors_hsv.md.70b2079b.lean.js deleted file mode 100644 index 4bc3cba..0000000 --- a/docs/assets/core_converters_colors_hsv.md.70b2079b.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as e,o as t,Q as s}from"./chunks/framework.7addaa9c.js";const C=JSON.parse('{"title":"HSV","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/colors/hsv.md","lastUpdated":1666628914000}'),o={name:"core/converters/colors/hsv.md"},n=s("",26),r=[n];function l(i,c,p,d,h,u){return t(),e("div",null,r)}const D=a(o,[["render",l]]);export{C as __pageData,D as default}; diff --git a/docs/assets/core_converters_colors_rgb.md.93a1229c.js b/docs/assets/core_converters_colors_rgb.md.93a1229c.js new file mode 100644 index 0000000..f0177f0 --- /dev/null +++ b/docs/assets/core_converters_colors_rgb.md.93a1229c.js @@ -0,0 +1,10 @@ +import{_ as a,c as s,o as e,R as o}from"./chunks/framework.bdd825cc.js";const u=JSON.parse('{"title":"RGB","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/colors/rgb.md","filePath":"core/converters/colors/rgb.md","lastUpdated":1666628921000}'),t={name:"core/converters/colors/rgb.md"},n=o(`

RGB

This page is about the RGB class available in PeyrSharp.Core.Converters. You can find here all of its methods and properties.

Compatibility

The RGB class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

RGB(color)

Definition

Initializes a RGB class from a System.Drawing.Color. Returns a RGB class.

Arguments

TypeNameMeaning
ColorcolorThe RGB color.

Usage

c#
using PeyrSharp.Core.Converters;
+using System.Drawing;
+
+RGB rgb = new(Color.FromArgb(255, 150, 120));

RGB(r, g, b)

Definition

Initializes a RGB class from its r, g and b values. Returns a RGB class.

Arguments

TypeNameMeaning
intrRed.
intgGreen.
intbBlue.

WARNING

If you specify a value that is not between 0 and 255, a RGBInvalidValueException will be thrown.

Usage

c#
using PeyrSharp.Core.Converters;
+
+RGB rgb = new(255, 150, 120);

Methods

ToHex()

Definition

Converts the RGB color to hexadecimal (HEX). Returns a HEX class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
+
+HEX hex = new RGB(255, 0, 0).ToHex();

ToHsv()

Definition

Converts the RGB color to HSV. Returns a HSV class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
+
+HSV hsv = new RGB(255, 0, 0).ToHsv();

Properties

Color

Definition

c#
public Color Color { get; init; }

The Color property contains the RGB color as a System.Drawing.Color. You can only get this property.

`,41),r=[n];function l(c,p,i,d,h,C){return e(),s("div",null,r)}const F=a(t,[["render",l]]);export{u as __pageData,F as default}; diff --git a/docs/assets/core_converters_colors_rgb.md.93a1229c.lean.js b/docs/assets/core_converters_colors_rgb.md.93a1229c.lean.js new file mode 100644 index 0000000..9d19da5 --- /dev/null +++ b/docs/assets/core_converters_colors_rgb.md.93a1229c.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as o}from"./chunks/framework.bdd825cc.js";const u=JSON.parse('{"title":"RGB","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/colors/rgb.md","filePath":"core/converters/colors/rgb.md","lastUpdated":1666628921000}'),t={name:"core/converters/colors/rgb.md"},n=o("",41),r=[n];function l(c,p,i,d,h,C){return e(),s("div",null,r)}const F=a(t,[["render",l]]);export{u as __pageData,F as default}; diff --git a/docs/assets/core_converters_colors_rgb.md.ae0ad331.js b/docs/assets/core_converters_colors_rgb.md.ae0ad331.js deleted file mode 100644 index 791a360..0000000 --- a/docs/assets/core_converters_colors_rgb.md.ae0ad331.js +++ /dev/null @@ -1,15 +0,0 @@ -import{_ as a,c as s,o as e,Q as o}from"./chunks/framework.7addaa9c.js";const u=JSON.parse('{"title":"RGB","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/colors/rgb.md","lastUpdated":1666628921000}'),n={name:"core/converters/colors/rgb.md"},t=o(`

RGB

This page is about the RGB class available in PeyrSharp.Core.Converters. You can find here all of its methods and properties.

Compatibility

The RGB class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

RGB(color)

Definition

Initializes a RGB class from a System.Drawing.Color. Returns a RGB class.

Arguments

TypeNameMeaning
ColorcolorThe RGB color.

Usage

c#
using PeyrSharp.Core.Converters;
-using System.Drawing;
-
-RGB rgb = new(Color.FromArgb(255, 150, 120));
-

RGB(r, g, b)

Definition

Initializes a RGB class from its r, g and b values. Returns a RGB class.

Arguments

TypeNameMeaning
intrRed.
intgGreen.
intbBlue.

WARNING

If you specify a value that is not between 0 and 255, a RGBInvalidValueException will be thrown.

Usage

c#
using PeyrSharp.Core.Converters;
-
-RGB rgb = new(255, 150, 120);
-

Methods

ToHex()

Definition

Converts the RGB color to hexadecimal (HEX). Returns a HEX class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
-
-HEX hex = new RGB(255, 0, 0).ToHex();
-

ToHsv()

Definition

Converts the RGB color to HSV. Returns a HSV class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
-
-HSV hsv = new RGB(255, 0, 0).ToHsv();
-

Properties

Color

Definition

c#
public Color Color { get; init; }
-

The Color property contains the RGB color as a System.Drawing.Color. You can only get this property.

`,41),l=[t];function r(c,p,i,d,h,C){return e(),s("div",null,l)}const F=a(n,[["render",r]]);export{u as __pageData,F as default}; diff --git a/docs/assets/core_converters_colors_rgb.md.ae0ad331.lean.js b/docs/assets/core_converters_colors_rgb.md.ae0ad331.lean.js deleted file mode 100644 index cec760e..0000000 --- a/docs/assets/core_converters_colors_rgb.md.ae0ad331.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as e,Q as o}from"./chunks/framework.7addaa9c.js";const u=JSON.parse('{"title":"RGB","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/colors/rgb.md","lastUpdated":1666628921000}'),n={name:"core/converters/colors/rgb.md"},t=o("",41),l=[t];function r(c,p,i,d,h,C){return e(),s("div",null,l)}const F=a(n,[["render",r]]);export{u as __pageData,F as default}; diff --git a/docs/assets/core_converters_distances.md.6c80ef2a.js b/docs/assets/core_converters_distances.md.6c80ef2a.js new file mode 100644 index 0000000..85d640f --- /dev/null +++ b/docs/assets/core_converters_distances.md.6c80ef2a.js @@ -0,0 +1,13 @@ +import{_ as e,c as a,o as t,R as s}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"Distances","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/distances.md","filePath":"core/converters/distances.md","lastUpdated":1666511609000}'),o={name:"core/converters/distances.md"},n=s(`

Distances

This page is about the Distances class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Distances class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

MilesToKm(miles)

Definition

Converts miles to kilometers. Returns a double value.

Arguments

TypeNameMeaning
doublemilesNumber of mile(s) to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double km = Distances.MilesToKm(10);
+// km = 16.09344

KmToMiles(km)

Definition

Converts kilometers to miles. Returns a double value.

Arguments

TypeNameMeaning
doublekilometersNumber of kilometers(s) to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double miles = Distances.KmToMiles(5);
+// miles = 3.1068559611866697

FeetToMeters(feet)

Definition

Converts feet to meters. Returns a double value.

Arguments

TypeNameMeaning
doublefeetNumber of feet to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double meters = Distances.FeetToMeters(12);
+// meters = 3.657599994440448

MetersToFeet(meters)

Definition

Converts meters to feet. Returns a double value.

Arguments

TypeNameMeaning
doublemetersNumber of meters to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double feet = Distances.MetersToFeet(3.657599994440448);
+// feet = 12
`,35),l=[n];function r(i,c,d,p,h,m){return t(),a("div",null,l)}const b=e(o,[["render",r]]);export{y as __pageData,b as default}; diff --git a/docs/assets/core_converters_distances.md.6c80ef2a.lean.js b/docs/assets/core_converters_distances.md.6c80ef2a.lean.js new file mode 100644 index 0000000..da085e9 --- /dev/null +++ b/docs/assets/core_converters_distances.md.6c80ef2a.lean.js @@ -0,0 +1 @@ +import{_ as e,c as a,o as t,R as s}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"Distances","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/distances.md","filePath":"core/converters/distances.md","lastUpdated":1666511609000}'),o={name:"core/converters/distances.md"},n=s("",35),l=[n];function r(i,c,d,p,h,m){return t(),a("div",null,l)}const b=e(o,[["render",r]]);export{y as __pageData,b as default}; diff --git a/docs/assets/core_converters_distances.md.f8ae93d3.js b/docs/assets/core_converters_distances.md.f8ae93d3.js deleted file mode 100644 index 75d16ee..0000000 --- a/docs/assets/core_converters_distances.md.f8ae93d3.js +++ /dev/null @@ -1,17 +0,0 @@ -import{_ as e,c as a,o as s,Q as t}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"Distances","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/distances.md","lastUpdated":1666511609000}'),o={name:"core/converters/distances.md"},n=t(`

Distances

This page is about the Distances class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Distances class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

MilesToKm(miles)

Definition

Converts miles to kilometers. Returns a double value.

Arguments

TypeNameMeaning
doublemilesNumber of mile(s) to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double km = Distances.MilesToKm(10);
-// km = 16.09344
-

KmToMiles(km)

Definition

Converts kilometers to miles. Returns a double value.

Arguments

TypeNameMeaning
doublekilometersNumber of kilometers(s) to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double miles = Distances.KmToMiles(5);
-// miles = 3.1068559611866697
-

FeetToMeters(feet)

Definition

Converts feet to meters. Returns a double value.

Arguments

TypeNameMeaning
doublefeetNumber of feet to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double meters = Distances.FeetToMeters(12);
-// meters = 3.657599994440448
-

MetersToFeet(meters)

Definition

Converts meters to feet. Returns a double value.

Arguments

TypeNameMeaning
doublemetersNumber of meters to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double feet = Distances.MetersToFeet(3.657599994440448);
-// feet = 12
-
`,35),l=[n];function r(i,c,p,d,h,m){return s(),a("div",null,l)}const b=e(o,[["render",r]]);export{y as __pageData,b as default}; diff --git a/docs/assets/core_converters_distances.md.f8ae93d3.lean.js b/docs/assets/core_converters_distances.md.f8ae93d3.lean.js deleted file mode 100644 index 371817c..0000000 --- a/docs/assets/core_converters_distances.md.f8ae93d3.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as a,o as s,Q as t}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"Distances","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/distances.md","lastUpdated":1666511609000}'),o={name:"core/converters/distances.md"},n=t("",35),l=[n];function r(i,c,p,d,h,m){return s(),a("div",null,l)}const b=e(o,[["render",r]]);export{y as __pageData,b as default}; diff --git a/docs/assets/core_converters_energies.md.30b4c932.lean.js b/docs/assets/core_converters_energies.md.30b4c932.lean.js deleted file mode 100644 index 82be6e0..0000000 --- a/docs/assets/core_converters_energies.md.30b4c932.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as a,o as s,Q as o}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"Energies","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/energies.md","lastUpdated":1678016186000}'),t={name:"core/converters/energies.md"},n=o("",25),l=[n];function r(i,c,p,d,h,u){return s(),a("div",null,l)}const b=e(t,[["render",r]]);export{y as __pageData,b as default}; diff --git a/docs/assets/core_converters_energies.md.30b4c932.js b/docs/assets/core_converters_energies.md.904aa9f1.js similarity index 50% rename from docs/assets/core_converters_energies.md.30b4c932.js rename to docs/assets/core_converters_energies.md.904aa9f1.js index 0a741e1..85694dd 100644 --- a/docs/assets/core_converters_energies.md.30b4c932.js +++ b/docs/assets/core_converters_energies.md.904aa9f1.js @@ -1,9 +1,7 @@ -import{_ as e,c as a,o as s,Q as o}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"Energies","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/energies.md","lastUpdated":1678016186000}'),t={name:"core/converters/energies.md"},n=o(`

Energies

This page is about the Energies class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Energies class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

CaloriesToJoules(calories)

Definition

Converts calories to joules.

Arguments

TypeNameMeaning
doublecaloriesThe amount of energy in calories to be converted.

Returns

The equivalent amount of energy in joules.

Usage

c#
using PeyrSharp.Core.Converters;
+import{_ as e,c as a,o as s,R as o}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"Energies","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/energies.md","filePath":"core/converters/energies.md","lastUpdated":1678016186000}'),t={name:"core/converters/energies.md"},n=o(`

Energies

This page is about the Energies class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Energies class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

CaloriesToJoules(calories)

Definition

Converts calories to joules.

Arguments

TypeNameMeaning
doublecaloriesThe amount of energy in calories to be converted.

Returns

The equivalent amount of energy in joules.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double calories = 100.0;
-double joules = Energies.CaloriesToJoules(calories);
-

JoulesToCalories(joules)

Definition

Converts joules to calories.

Arguments

TypeNameMeaning
doublejoulesThe amount of energy in joules.

Returns

The equivalent amount of energy in calories.

Usage

c#
using PeyrSharp.Core.Converters;
+double joules = Energies.CaloriesToJoules(calories);

JoulesToCalories(joules)

Definition

Converts joules to calories.

Arguments

TypeNameMeaning
doublejoulesThe amount of energy in joules.

Returns

The equivalent amount of energy in calories.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double joules = 1000.0;
-double calories = Energies.JoulesToCalories(joules);
-
`,25),l=[n];function r(i,c,p,d,h,u){return s(),a("div",null,l)}const b=e(t,[["render",r]]);export{y as __pageData,b as default}; +double calories = Energies.JoulesToCalories(joules);
`,25),l=[n];function r(i,c,p,d,h,u){return s(),a("div",null,l)}const b=e(t,[["render",r]]);export{y as __pageData,b as default}; diff --git a/docs/assets/core_converters_energies.md.904aa9f1.lean.js b/docs/assets/core_converters_energies.md.904aa9f1.lean.js new file mode 100644 index 0000000..30cc998 --- /dev/null +++ b/docs/assets/core_converters_energies.md.904aa9f1.lean.js @@ -0,0 +1 @@ +import{_ as e,c as a,o as s,R as o}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"Energies","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/energies.md","filePath":"core/converters/energies.md","lastUpdated":1678016186000}'),t={name:"core/converters/energies.md"},n=o("",25),l=[n];function r(i,c,p,d,h,u){return s(),a("div",null,l)}const b=e(t,[["render",r]]);export{y as __pageData,b as default}; diff --git a/docs/assets/core_converters_masses.md.520fd18e.js b/docs/assets/core_converters_masses.md.520fd18e.js new file mode 100644 index 0000000..b918710 --- /dev/null +++ b/docs/assets/core_converters_masses.md.520fd18e.js @@ -0,0 +1,7 @@ +import{_ as a,c as s,o as e,R as t}from"./chunks/framework.bdd825cc.js";const g=JSON.parse('{"title":"Masses","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/masses.md","filePath":"core/converters/masses.md","lastUpdated":1666511609000}'),o={name:"core/converters/masses.md"},n=t(`

Masses

This page is about the Masses class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Masses class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

PoundsToKilograms(pounds)

Definition

Converts pounds to kilograms. Returns a double value.

Arguments

TypeNameMeaning
doublepoundsNumber of pounds to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double kg = Masses.PoundsToKilograms(10);
+// kg = 4.535923703803784

KilogramsToPounds(kilograms)

Definition

Converts kilograms to pounds. Returns a double value.

Arguments

TypeNameMeaning
doublekilogramsNumber of kilograms to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double pounds = Masses.KilogramsToPounds(25);
+// pounds = 55.115565499999995
`,21),r=[n];function l(d,i,c,p,h,u){return e(),s("div",null,r)}const b=a(o,[["render",l]]);export{g as __pageData,b as default}; diff --git a/docs/assets/core_converters_masses.md.520fd18e.lean.js b/docs/assets/core_converters_masses.md.520fd18e.lean.js new file mode 100644 index 0000000..e78476d --- /dev/null +++ b/docs/assets/core_converters_masses.md.520fd18e.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as t}from"./chunks/framework.bdd825cc.js";const g=JSON.parse('{"title":"Masses","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/masses.md","filePath":"core/converters/masses.md","lastUpdated":1666511609000}'),o={name:"core/converters/masses.md"},n=t("",21),r=[n];function l(d,i,c,p,h,u){return e(),s("div",null,r)}const b=a(o,[["render",l]]);export{g as __pageData,b as default}; diff --git a/docs/assets/core_converters_masses.md.e2f9874b.js b/docs/assets/core_converters_masses.md.e2f9874b.js deleted file mode 100644 index 74722f3..0000000 --- a/docs/assets/core_converters_masses.md.e2f9874b.js +++ /dev/null @@ -1,9 +0,0 @@ -import{_ as a,c as s,o as e,Q as t}from"./chunks/framework.7addaa9c.js";const g=JSON.parse('{"title":"Masses","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/masses.md","lastUpdated":1666511609000}'),o={name:"core/converters/masses.md"},n=t(`

Masses

This page is about the Masses class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Masses class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

PoundsToKilograms(pounds)

Definition

Converts pounds to kilograms. Returns a double value.

Arguments

TypeNameMeaning
doublepoundsNumber of pounds to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double kg = Masses.PoundsToKilograms(10);
-// kg = 4.535923703803784
-

KilogramsToPounds(kilograms)

Definition

Converts kilograms to pounds. Returns a double value.

Arguments

TypeNameMeaning
doublekilogramsNumber of kilograms to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double pounds = Masses.KilogramsToPounds(25);
-// pounds = 55.115565499999995
-
`,21),l=[n];function r(d,i,c,p,h,u){return e(),s("div",null,l)}const b=a(o,[["render",r]]);export{g as __pageData,b as default}; diff --git a/docs/assets/core_converters_masses.md.e2f9874b.lean.js b/docs/assets/core_converters_masses.md.e2f9874b.lean.js deleted file mode 100644 index 8b9aa89..0000000 --- a/docs/assets/core_converters_masses.md.e2f9874b.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as e,Q as t}from"./chunks/framework.7addaa9c.js";const g=JSON.parse('{"title":"Masses","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/masses.md","lastUpdated":1666511609000}'),o={name:"core/converters/masses.md"},n=t("",21),l=[n];function r(d,i,c,p,h,u){return e(),s("div",null,l)}const b=a(o,[["render",r]]);export{g as __pageData,b as default}; diff --git a/docs/assets/core_converters_speeds.md.1bd65dbb.js b/docs/assets/core_converters_speeds.md.1bd65dbb.js new file mode 100644 index 0000000..bb56b24 --- /dev/null +++ b/docs/assets/core_converters_speeds.md.1bd65dbb.js @@ -0,0 +1,39 @@ +import{_ as e,c as s,o as a,R as o}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"Speeds","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/speeds.md","filePath":"core/converters/speeds.md","lastUpdated":1683446294000}'),n={name:"core/converters/speeds.md"},t=o(`

Speeds

This page is about the Speeds class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Speeds class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

KnotsToKilometersPerHour(knots)

Definition

Converts knots to kilometers per hour.

Arguments

TypeNameMeaning
doubleknotsThe speed in knots.

Returns

The equivalent speed in kilometers per hour.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double speedInKnots = 20.0;
+double speedInKilometersPerHour = Speeds.KnotsToKilometersPerHour(speedInKnots);
+Console.WriteLine($"{speedInKnots} knots is equivalent to {speedInKilometersPerHour} km/h");

KilometersPerHourToKnots(kilometersPerHour)

Definition

Converts kilometers per hour to knots.

Arguments

TypeNameDescription
doublekilometersPerHourThe speed in kilometers per hour.

Returns

The equivalent speed in knots.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double speedInKilometersPerHour = 40.0;
+double speedInKnots = Speeds.KilometersPerHourToKnots(speedInKilometersPerHour);
+Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInKnots} knots");

KnotsToMilesPerHour(knots)

Definition

Converts knots to miles per hour.

Arguments

TypeNameDescription
doubleknotsThe speed in knots.

Returns

The equivalent speed in miles per hour.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double speedInKnots = 20.0;
+double speedInMilesPerHour = Speeds.KnotsToMilesPerHour(speedInKnots);
+Console.WriteLine($"{speedInKnots} knots is equivalent to {speedInMilesPerHour} mph");

MilesPerHourToKnots(milesPerHour)

Definition

Converts miles per hour to knots.

Arguments

TypeNameDescription
doublemilesPerHourThe speed in miles per hour.

Returns

The equivalent speed in knots.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double speedInMilesPerHour = 60.0;
+double speedInKnots = Speeds.MilesPerHourToKnots(speedInMilesPerHour);
+Console.WriteLine($"{speedInMilesPerHour} miles/hour is equivalent to {speedInKnots} knots");

KilometersPerHourToMetersPerSecond(kilometersPerHour)

Definition

Converts kilometers per hour to meters per second.

Arguments

TypeNameDescription
doublekilometersPerHourThe speed in kilometers per hour.

Returns

The equivalent speed in meters per second.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double speedInKilometersPerHour = 100.0;
+double speedInMetersPerSecond = Speeds.KilometersPerHourToMetersPerSecond(speedInKilometersPerHour);
+Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInMetersPerSecond} m/s");

MetersPerSecondToKilometersPerHour(metersPerSecond)

Definition

Converts meters per second to kilometers per hour.

Arguments

TypeNameMeaning
doublemetersPerSecondThe speed in meters per second.

Returns

The equivalent speed in kilometers per hour.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double speedInMetersPerSecond = 10.0;
+double speedInKilometersPerHour = Speeds.MetersPerSecondToKilometersPerHour(speedInMetersPerSecond);
+Console.WriteLine($"{speedInMetersPerSecond} m/s is equivalent to {speedInKilometersPerHour} km/h");

MilesPerHourToKilometersPerHour(milesPerHour)

Definition

Converts miles per hour to kilometers per hour.

Arguments

TypeNameDescription
doublemilesPerHourThe speed in miles per hour.

Returns

The equivalent speed in kilometers per hour.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double speedInMilesPerHour = 60.0;
+double speedInKilometersPerHour = Speeds.MilesPerHourToKilometersPerHour(speedInMilesPerHour);
+Console.WriteLine($"{speedInMilesPerHour} mph is equivalent to {speedInKilometersPerHour} km/h");

KilometersPerHourToMilesPerHour(kilometersPerHour)

Definition

Converts kilometers per hour to miles per hour.

Arguments

TypeNameDescription
doublekilometersPerHourThe speed in kilometers per hour.

Returns

The equivalent speed in miles per hour.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double speedInKilometersPerHour = 50.0;
+double speedInMilesPerHour = Speeds.KilometersPerHourToMilesPerHour(speedInKilometersPerHour);
+Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInMilesPerHour} mph");

MachToKilometersPerHour(n)

Definition

Converts a speed in mach to a speed in kilometers per hour. Returns a double value.

Arguments

TypeNameMeaning
doublenThe speed in mach to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double kmPerHour = Speeds.MachToKilometersPerHour(1);
+// kmPerHour = 1234.8

MachToMilesPerHour(mach)

Definition

Converts a speed in mach to miles per hour. Returns a double value.

Arguments

TypeNameMeaning
doublemachThe speed in mach.

Returns

A double representing the speed in miles per hour.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double mph = Speeds.MachToMilesPerHour(0.8);
+// mph = 613.8153184
`,95),r=[t];function l(p,i,c,d,h,u){return a(),s("div",null,r)}const y=e(n,[["render",l]]);export{F as __pageData,y as default}; diff --git a/docs/assets/core_converters_speeds.md.1bd65dbb.lean.js b/docs/assets/core_converters_speeds.md.1bd65dbb.lean.js new file mode 100644 index 0000000..05d74f5 --- /dev/null +++ b/docs/assets/core_converters_speeds.md.1bd65dbb.lean.js @@ -0,0 +1 @@ +import{_ as e,c as s,o as a,R as o}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"Speeds","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/speeds.md","filePath":"core/converters/speeds.md","lastUpdated":1683446294000}'),n={name:"core/converters/speeds.md"},t=o("",95),r=[t];function l(p,i,c,d,h,u){return a(),s("div",null,r)}const y=e(n,[["render",l]]);export{F as __pageData,y as default}; diff --git a/docs/assets/core_converters_speeds.md.e518b142.js b/docs/assets/core_converters_speeds.md.e518b142.js deleted file mode 100644 index 948269a..0000000 --- a/docs/assets/core_converters_speeds.md.e518b142.js +++ /dev/null @@ -1,41 +0,0 @@ -import{_ as s,c as e,o as a,Q as o}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"Speeds","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/speeds.md","lastUpdated":1678016192000}'),n={name:"core/converters/speeds.md"},t=o(`

Speeds

This page is about the Speeds class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Speeds class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

KnotsToKilometersPerHour(knots)

Definition

Converts knots to kilometers per hour.

Arguments

TypeNameMeaning
doubleknotsThe speed in knots.

Returns

The equivalent speed in kilometers per hour.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double speedInKnots = 20.0;
-double speedInKilometersPerHour = Speeds.KnotsToKilometersPerHour(speedInKnots);
-Console.WriteLine($"{speedInKnots} knots is equivalent to {speedInKilometersPerHour} km/h");
-

KilometersPerHourToKnots(kilometersPerHour)

Definition

Converts kilometers per hour to knots.

Arguments

TypeNameDescription
doublekilometersPerHourThe speed in kilometers per hour.

Returns

The equivalent speed in knots.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double speedInKilometersPerHour = 40.0;
-double speedInKnots = Speeds.KilometersPerHourToKnots(speedInKilometersPerHour);
-Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInKnots} knots");
-

KnotsToMilesPerHour(knots)

Definition

Converts knots to miles per hour.

Arguments

TypeNameDescription
doubleknotsThe speed in knots.

Returns

The equivalent speed in miles per hour.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double speedInKnots = 20.0;
-double speedInMilesPerHour = Speeds.KnotsToMilesPerHour(speedInKnots);
-Console.WriteLine($"{speedInKnots} knots is equivalent to {speedInMilesPerHour} mph");
-

MilesPerHourToKnots(milesPerHour)

Definition

Converts miles per hour to knots.

Arguments

TypeNameDescription
doublemilesPerHourThe speed in miles per hour.

Returns

The equivalent speed in knots.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double speedInMilesPerHour = 60.0;
-double speedInKnots = Speeds.MilesPerHourToKnots(speedInMilesPerHour);
-Console.WriteLine($"{speedInMilesPerHour} miles/hour is equivalent to {speedInKnots} knots");
-

KilometersPerHourToMetersPerSecond(kilometersPerHour)

Definition

Converts kilometers per hour to meters per second.

Arguments

TypeNameDescription
doublekilometersPerHourThe speed in kilometers per hour.

Returns

The equivalent speed in meters per second.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double speedInKilometersPerHour = 100.0;
-double speedInMetersPerSecond = Speeds.KilometersPerHourToMetersPerSecond(speedInKilometersPerHour);
-Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInMetersPerSecond} m/s");
-

MetersPerSecondToKilometersPerHour(metersPerSecond)

Definition

Converts meters per second to kilometers per hour.

Arguments

TypeNameMeaning
doublemetersPerSecondThe speed in meters per second.

Returns

The equivalent speed in kilometers per hour.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double speedInMetersPerSecond = 10.0;
-double speedInKilometersPerHour = Speeds.MetersPerSecondToKilometersPerHour(speedInMetersPerSecond);
-Console.WriteLine($"{speedInMetersPerSecond} m/s is equivalent to {speedInKilometersPerHour} km/h");
-

MilesPerHourToKilometersPerHour(milesPerHour)

Definition

Converts miles per hour to kilometers per hour.

Arguments

TypeNameDescription
doublemilesPerHourThe speed in miles per hour.

Returns

The equivalent speed in kilometers per hour.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double speedInMilesPerHour = 60.0;
-double speedInKilometersPerHour = Speeds.MilesPerHourToKilometersPerHour(speedInMilesPerHour);
-Console.WriteLine($"{speedInMilesPerHour} mph is equivalent to {speedInKilometersPerHour} km/h");
-

KilometersPerHourToMilesPerHour(kilometersPerHour)

Definition

Converts kilometers per hour to miles per hour.

Arguments

TypeNameDescription
doublekilometersPerHourThe speed in kilometers per hour.

Returns

The equivalent speed in miles per hour.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double speedInKilometersPerHour = 50.0;
-double speedInMilesPerHour = Speeds.KilometersPerHourToMilesPerHour(speedInKilometersPerHour);
-Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInMilesPerHour} mph");
-
`,79),l=[t];function r(p,i,c,d,h,D){return a(),e("div",null,l)}const y=s(n,[["render",r]]);export{F as __pageData,y as default}; diff --git a/docs/assets/core_converters_speeds.md.e518b142.lean.js b/docs/assets/core_converters_speeds.md.e518b142.lean.js deleted file mode 100644 index 9aa4d6d..0000000 --- a/docs/assets/core_converters_speeds.md.e518b142.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as e,o as a,Q as o}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"Speeds","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/speeds.md","lastUpdated":1678016192000}'),n={name:"core/converters/speeds.md"},t=o("",79),l=[t];function r(p,i,c,d,h,D){return a(),e("div",null,l)}const y=s(n,[["render",r]]);export{F as __pageData,y as default}; diff --git a/docs/assets/core_converters_storage.md.7f68946a.js b/docs/assets/core_converters_storage.md.7f68946a.js deleted file mode 100644 index 91d09dd..0000000 --- a/docs/assets/core_converters_storage.md.7f68946a.js +++ /dev/null @@ -1,25 +0,0 @@ -import{_ as a,c as e,o as t,Q as s}from"./chunks/framework.7addaa9c.js";const b=JSON.parse('{"title":"Storage","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/storage.md","lastUpdated":1667468567000}'),o={name:"core/converters/storage.md"},n=s(`

Storage

This page is about the Storage class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Storage class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

ToByte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to byte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
-
-double byte = Storage.ToByte(1, StorageUnits.Kilobyte);
-// byte = 1000
-

ToKilobyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to kilobyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: byte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
-
-double kilobyte = Storage.ToKilobyte(2000, StorageUnits.Byte);
-// kilobyte = 2
-

ToMegabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to megabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
-
-double megabyte = Storage.ToMegabyte(1500, StorageUnits.Kilobyte);
-// megabyte = 1.5
-

ToGigabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to gigabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, megabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
-
-double gigabyte = Storage.ToGigabyte(1000, StorageUnits.Megabyte);
-// gigabyte = 1
-

ToTerabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to terabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
-
-double terabyte = Storage.ToTerabyte(1, StorageUnits.Petabyte);
-// terabyte = 1000
-

ToPetabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to petabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
-
-double petabyte = Storage.ToPetabyte(1000, StorageUnits.Terabyte);
-// petabyte = 1
-
`,55),l=[n];function r(i,c,p,d,h,u){return t(),e("div",null,l)}const g=a(o,[["render",r]]);export{b as __pageData,g as default}; diff --git a/docs/assets/core_converters_storage.md.7f68946a.lean.js b/docs/assets/core_converters_storage.md.7f68946a.lean.js deleted file mode 100644 index f89b5a3..0000000 --- a/docs/assets/core_converters_storage.md.7f68946a.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as e,o as t,Q as s}from"./chunks/framework.7addaa9c.js";const b=JSON.parse('{"title":"Storage","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/storage.md","lastUpdated":1667468567000}'),o={name:"core/converters/storage.md"},n=s("",55),l=[n];function r(i,c,p,d,h,u){return t(),e("div",null,l)}const g=a(o,[["render",r]]);export{b as __pageData,g as default}; diff --git a/docs/assets/core_converters_storage.md.c1af5481.js b/docs/assets/core_converters_storage.md.c1af5481.js new file mode 100644 index 0000000..b62c660 --- /dev/null +++ b/docs/assets/core_converters_storage.md.c1af5481.js @@ -0,0 +1,25 @@ +import{_ as a,c as e,o as t,R as s}from"./chunks/framework.bdd825cc.js";const b=JSON.parse('{"title":"Storage","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/storage.md","filePath":"core/converters/storage.md","lastUpdated":1683446294000}'),o={name:"core/converters/storage.md"},n=s(`

Storage

This page is about the Storage class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Storage class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

ToByte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to byte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+
+double byte = Storage.ToByte(1, StorageUnits.Kilobyte);
+// byte = 1000

ToKilobyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to kilobyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: byte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+
+double kilobyte = Storage.ToKilobyte(2000, StorageUnits.Byte);
+// kilobyte = 2

ToMegabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to megabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+
+double megabyte = Storage.ToMegabyte(1500, StorageUnits.Kilobyte);
+// megabyte = 1.5

ToGigabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to gigabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, megabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+
+double gigabyte = Storage.ToGigabyte(1000, StorageUnits.Megabyte);
+// gigabyte = 1

ToTerabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to terabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+
+double terabyte = Storage.ToTerabyte(1, StorageUnits.Petabyte);
+// terabyte = 1000

ToPetabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to petabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+
+double petabyte = Storage.ToPetabyte(1000, StorageUnits.Terabyte);
+// petabyte = 1

BitsToBytes(n)

Definition

Converts a number of bits to a number of bytes. Returns a double value.

Arguments

TypeNameMeaning
doublenThe number of bits to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double bytes = Storage.BitsToBytes(64);
+// bytes = 8

BytesToBits(n)

Definition

Converts a number of bytes to a number of bits. Returns a double value.

Arguments

TypeNameMeaning
doublenThe number of bytes to convert to bits.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double bits = Storage.BytesToBits(1024);
+// bits = 8192
`,69),l=[n];function r(i,c,p,d,h,u){return t(),e("div",null,l)}const g=a(o,[["render",r]]);export{b as __pageData,g as default}; diff --git a/docs/assets/core_converters_storage.md.c1af5481.lean.js b/docs/assets/core_converters_storage.md.c1af5481.lean.js new file mode 100644 index 0000000..21499c3 --- /dev/null +++ b/docs/assets/core_converters_storage.md.c1af5481.lean.js @@ -0,0 +1 @@ +import{_ as a,c as e,o as t,R as s}from"./chunks/framework.bdd825cc.js";const b=JSON.parse('{"title":"Storage","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/storage.md","filePath":"core/converters/storage.md","lastUpdated":1683446294000}'),o={name:"core/converters/storage.md"},n=s("",69),l=[n];function r(i,c,p,d,h,u){return t(),e("div",null,l)}const g=a(o,[["render",r]]);export{b as __pageData,g as default}; diff --git a/docs/assets/core_converters_temperatures.md.4ef5c821.js b/docs/assets/core_converters_temperatures.md.4ef5c821.js deleted file mode 100644 index d7e9af7..0000000 --- a/docs/assets/core_converters_temperatures.md.4ef5c821.js +++ /dev/null @@ -1,9 +0,0 @@ -import{_ as e,c as a,o as t,Q as s}from"./chunks/framework.7addaa9c.js";const C=JSON.parse('{"title":"Temperatures","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/temperatures.md","lastUpdated":1666511987000}'),o={name:"core/converters/temperatures.md"},n=s(`

Temperatures

This page is about the Temperatures class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Temperatures class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

CelsiusToFahrenheit(celsius)

Definition

Converts Celsius (°C) to Fahrenheit (°F). Returns a double value.

Arguments

TypeNameMeaning
doublecelsiusNumber of Celsius to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double f = Temperatures.CelsiusToFahrenheit(22);
-// f = 71.6
-

FahrenheitToCelsius(fahrenheit)

Definition

Converts Fahrenheit (°F) to Celsius (°C). Returns a double value.

Arguments

TypeNameMeaning
doublefahrenheitNumber of Fahrenheit to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double c = Temperatures.FahrenheitToCelsius(75);
-// c = 23.88888888888889
-
`,21),r=[n];function l(i,c,h,d,p,u){return t(),a("div",null,r)}const b=e(o,[["render",l]]);export{C as __pageData,b as default}; diff --git a/docs/assets/core_converters_temperatures.md.4ef5c821.lean.js b/docs/assets/core_converters_temperatures.md.4ef5c821.lean.js deleted file mode 100644 index d644a8b..0000000 --- a/docs/assets/core_converters_temperatures.md.4ef5c821.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as a,o as t,Q as s}from"./chunks/framework.7addaa9c.js";const C=JSON.parse('{"title":"Temperatures","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/temperatures.md","lastUpdated":1666511987000}'),o={name:"core/converters/temperatures.md"},n=s("",21),r=[n];function l(i,c,h,d,p,u){return t(),a("div",null,r)}const b=e(o,[["render",l]]);export{C as __pageData,b as default}; diff --git a/docs/assets/core_converters_temperatures.md.76ccc9e2.js b/docs/assets/core_converters_temperatures.md.76ccc9e2.js new file mode 100644 index 0000000..fbbe67f --- /dev/null +++ b/docs/assets/core_converters_temperatures.md.76ccc9e2.js @@ -0,0 +1,7 @@ +import{_ as e,c as a,o as t,R as s}from"./chunks/framework.bdd825cc.js";const C=JSON.parse('{"title":"Temperatures","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/temperatures.md","filePath":"core/converters/temperatures.md","lastUpdated":1666511987000}'),o={name:"core/converters/temperatures.md"},r=s(`

Temperatures

This page is about the Temperatures class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Temperatures class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

CelsiusToFahrenheit(celsius)

Definition

Converts Celsius (°C) to Fahrenheit (°F). Returns a double value.

Arguments

TypeNameMeaning
doublecelsiusNumber of Celsius to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double f = Temperatures.CelsiusToFahrenheit(22);
+// f = 71.6

FahrenheitToCelsius(fahrenheit)

Definition

Converts Fahrenheit (°F) to Celsius (°C). Returns a double value.

Arguments

TypeNameMeaning
doublefahrenheitNumber of Fahrenheit to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double c = Temperatures.FahrenheitToCelsius(75);
+// c = 23.88888888888889
`,21),n=[r];function l(i,c,h,d,p,u){return t(),a("div",null,n)}const b=e(o,[["render",l]]);export{C as __pageData,b as default}; diff --git a/docs/assets/core_converters_temperatures.md.76ccc9e2.lean.js b/docs/assets/core_converters_temperatures.md.76ccc9e2.lean.js new file mode 100644 index 0000000..429efb4 --- /dev/null +++ b/docs/assets/core_converters_temperatures.md.76ccc9e2.lean.js @@ -0,0 +1 @@ +import{_ as e,c as a,o as t,R as s}from"./chunks/framework.bdd825cc.js";const C=JSON.parse('{"title":"Temperatures","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/temperatures.md","filePath":"core/converters/temperatures.md","lastUpdated":1666511987000}'),o={name:"core/converters/temperatures.md"},r=s("",21),n=[r];function l(i,c,h,d,p,u){return t(),a("div",null,n)}const b=e(o,[["render",l]]);export{C as __pageData,b as default}; diff --git a/docs/assets/core_converters_time.md.37562baf.js b/docs/assets/core_converters_time.md.37562baf.js deleted file mode 100644 index 0050b9d..0000000 --- a/docs/assets/core_converters_time.md.37562baf.js +++ /dev/null @@ -1,28 +0,0 @@ -import{_ as e,c as s,o as a,Q as t}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"Time","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/time.md","lastUpdated":1670145438000}'),n={name:"core/converters/time.md"},o=t(`

Time

This page is about the Time class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Time class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

ToSeconds(d, timeUnits)

Definition

Converts a specified time unit value to seconds. For instance, you can convert days, hours or minutes to seconds. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
-using PeyrSharp.Enums;
-
-double seconds = Time.ToSeconds(5, TimeUnits.Minutes);
-// seconds = 300
-

ToMinutes(d, timeUnits)

Definition

Converts a specified time unit value to minutes. For instance, you can convert days, hours or seconds to minutes. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
-using PeyrSharp.Enums;
-
-double min = Time.ToMinutes(120, TimeUnits.Seconds);
-// min = 2
-

ToHours(d, timeUnits)

Definition

Converts a specified time unit value to hours. For instance, you can convert days, minutes or seconds to hours. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
-using PeyrSharp.Enums;
-
-double hours = Time.ToHours(1, TimeUnits.Days);
-// hours = 24
-

ToDays(d, timeUnits)

Definition

Converts a specified time unit value to days. For instance, you can convert hours, minutes or seconds to days. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
-using PeyrSharp.Enums;
-
-double days = Time.ToDays(72, TimeUnits.Hours);
-// days = 3
-

UnixTimeToDateTime(unixTime)

Available in version 1.1 and higher.

Definition

Converts Unix Time to DateTime. It returns a DateTime value.

Arguments

TypeNameMeaning
intunixTimeThe Unix Time to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-var date = Time.UnixTimeToDateTime(1670144268); // 12/04/2022 08:57:48
-

DateTimeToUnixTime(dateTime)

Available in version 1.1 and higher.

Definition

Converts DateTime to Unix Time. It returns an int value.

Arguments

TypeNameMeaning
DateTimedateTimeThe converted DateTime in Unix Time.

Usage

c#
using PeyrSharp.Core.Converters;
-
-int unix = Time.DateTimeToUnixTime(new(2022, 12, 4, 8, 57, 48, DateTimeKind.Utc)); 
-// unix = 1670144268
-
`,55),l=[o];function i(r,p,c,d,h,u){return a(),s("div",null,l)}const D=e(n,[["render",i]]);export{y as __pageData,D as default}; diff --git a/docs/assets/core_converters_time.md.37562baf.lean.js b/docs/assets/core_converters_time.md.37562baf.lean.js deleted file mode 100644 index 93f82fd..0000000 --- a/docs/assets/core_converters_time.md.37562baf.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as s,o as a,Q as t}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"Time","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/time.md","lastUpdated":1670145438000}'),n={name:"core/converters/time.md"},o=t("",55),l=[o];function i(r,p,c,d,h,u){return a(),s("div",null,l)}const D=e(n,[["render",i]]);export{y as __pageData,D as default}; diff --git a/docs/assets/core_converters_time.md.bf03ff9f.js b/docs/assets/core_converters_time.md.bf03ff9f.js new file mode 100644 index 0000000..2050b8e --- /dev/null +++ b/docs/assets/core_converters_time.md.bf03ff9f.js @@ -0,0 +1,22 @@ +import{_ as e,c as s,o as a,R as t}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"Time","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/time.md","filePath":"core/converters/time.md","lastUpdated":1670145438000}'),n={name:"core/converters/time.md"},o=t(`

Time

This page is about the Time class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Time class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

ToSeconds(d, timeUnits)

Definition

Converts a specified time unit value to seconds. For instance, you can convert days, hours or minutes to seconds. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
+using PeyrSharp.Enums;
+
+double seconds = Time.ToSeconds(5, TimeUnits.Minutes);
+// seconds = 300

ToMinutes(d, timeUnits)

Definition

Converts a specified time unit value to minutes. For instance, you can convert days, hours or seconds to minutes. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
+using PeyrSharp.Enums;
+
+double min = Time.ToMinutes(120, TimeUnits.Seconds);
+// min = 2

ToHours(d, timeUnits)

Definition

Converts a specified time unit value to hours. For instance, you can convert days, minutes or seconds to hours. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
+using PeyrSharp.Enums;
+
+double hours = Time.ToHours(1, TimeUnits.Days);
+// hours = 24

ToDays(d, timeUnits)

Definition

Converts a specified time unit value to days. For instance, you can convert hours, minutes or seconds to days. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
+using PeyrSharp.Enums;
+
+double days = Time.ToDays(72, TimeUnits.Hours);
+// days = 3

UnixTimeToDateTime(unixTime)

Available in version 1.1 and higher.

Definition

Converts Unix Time to DateTime. It returns a DateTime value.

Arguments

TypeNameMeaning
intunixTimeThe Unix Time to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+var date = Time.UnixTimeToDateTime(1670144268); // 12/04/2022 08:57:48

DateTimeToUnixTime(dateTime)

Available in version 1.1 and higher.

Definition

Converts DateTime to Unix Time. It returns an int value.

Arguments

TypeNameMeaning
DateTimedateTimeThe converted DateTime in Unix Time.

Usage

c#
using PeyrSharp.Core.Converters;
+
+int unix = Time.DateTimeToUnixTime(new(2022, 12, 4, 8, 57, 48, DateTimeKind.Utc)); 
+// unix = 1670144268
`,55),l=[o];function i(r,c,p,d,h,u){return a(),s("div",null,l)}const D=e(n,[["render",i]]);export{y as __pageData,D as default}; diff --git a/docs/assets/core_converters_time.md.bf03ff9f.lean.js b/docs/assets/core_converters_time.md.bf03ff9f.lean.js new file mode 100644 index 0000000..745c780 --- /dev/null +++ b/docs/assets/core_converters_time.md.bf03ff9f.lean.js @@ -0,0 +1 @@ +import{_ as e,c as s,o as a,R as t}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"Time","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/time.md","filePath":"core/converters/time.md","lastUpdated":1670145438000}'),n={name:"core/converters/time.md"},o=t("",55),l=[o];function i(r,c,p,d,h,u){return a(),s("div",null,l)}const D=e(n,[["render",i]]);export{y as __pageData,D as default}; diff --git a/docs/assets/core_converters_volumes.md.5be7a6e3.js b/docs/assets/core_converters_volumes.md.5be7a6e3.js deleted file mode 100644 index f4aa581..0000000 --- a/docs/assets/core_converters_volumes.md.5be7a6e3.js +++ /dev/null @@ -1,9 +0,0 @@ -import{_ as e,c as a,o as t,Q as s}from"./chunks/framework.7addaa9c.js";const b=JSON.parse('{"title":"Volumes","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/volumes.md","lastUpdated":1666513063000}'),o={name:"core/converters/volumes.md"},n=s(`

Volumes

This page is about the Volumes class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Volumes class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

M3ToLitre(m3)

Definition

Converts Cubic Meters (m³) to Litre (L). Returns a double value.

Arguments

TypeNameMeaning
doublem3Number of cubic meters to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double litre = Volumes.M3ToLitre(10);
-// litre = 10000
-

LitreToM3(m3)

Definition

Converts Litre (L) to Cubic Meters (m³). Returns a double value.

Arguments

TypeNameMeaning
doublelitreNumber of litres to convert.

Usage

c#
using PeyrSharp.Core.Converters;
-
-double m3 = Volumes.LitreToM3(500);
-// m3 = 0.5
-
`,21),l=[n];function r(i,c,d,p,h,m){return t(),a("div",null,l)}const y=e(o,[["render",r]]);export{b as __pageData,y as default}; diff --git a/docs/assets/core_converters_volumes.md.5be7a6e3.lean.js b/docs/assets/core_converters_volumes.md.5be7a6e3.lean.js deleted file mode 100644 index 4c0ab05..0000000 --- a/docs/assets/core_converters_volumes.md.5be7a6e3.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as a,o as t,Q as s}from"./chunks/framework.7addaa9c.js";const b=JSON.parse('{"title":"Volumes","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/volumes.md","lastUpdated":1666513063000}'),o={name:"core/converters/volumes.md"},n=s("",21),l=[n];function r(i,c,d,p,h,m){return t(),a("div",null,l)}const y=e(o,[["render",r]]);export{b as __pageData,y as default}; diff --git a/docs/assets/core_converters_volumes.md.d173d1a6.js b/docs/assets/core_converters_volumes.md.d173d1a6.js new file mode 100644 index 0000000..865377f --- /dev/null +++ b/docs/assets/core_converters_volumes.md.d173d1a6.js @@ -0,0 +1,7 @@ +import{_ as e,c as t,o as a,R as s}from"./chunks/framework.bdd825cc.js";const b=JSON.parse('{"title":"Volumes","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/volumes.md","filePath":"core/converters/volumes.md","lastUpdated":1666513063000}'),o={name:"core/converters/volumes.md"},n=s(`

Volumes

This page is about the Volumes class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Volumes class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

M3ToLitre(m3)

Definition

Converts Cubic Meters (m³) to Litre (L). Returns a double value.

Arguments

TypeNameMeaning
doublem3Number of cubic meters to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double litre = Volumes.M3ToLitre(10);
+// litre = 10000

LitreToM3(m3)

Definition

Converts Litre (L) to Cubic Meters (m³). Returns a double value.

Arguments

TypeNameMeaning
doublelitreNumber of litres to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double m3 = Volumes.LitreToM3(500);
+// m3 = 0.5
`,21),r=[n];function l(i,c,d,p,h,m){return a(),t("div",null,r)}const y=e(o,[["render",l]]);export{b as __pageData,y as default}; diff --git a/docs/assets/core_converters_volumes.md.d173d1a6.lean.js b/docs/assets/core_converters_volumes.md.d173d1a6.lean.js new file mode 100644 index 0000000..9dbc9c2 --- /dev/null +++ b/docs/assets/core_converters_volumes.md.d173d1a6.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as a,R as s}from"./chunks/framework.bdd825cc.js";const b=JSON.parse('{"title":"Volumes","description":"","frontmatter":{},"headers":[],"relativePath":"core/converters/volumes.md","filePath":"core/converters/volumes.md","lastUpdated":1666513063000}'),o={name:"core/converters/volumes.md"},n=s("",21),r=[n];function l(i,c,d,p,h,m){return a(),t("div",null,r)}const y=e(o,[["render",l]]);export{b as __pageData,y as default}; diff --git a/docs/assets/core_crypt.md.329fa283.js b/docs/assets/core_crypt.md.329fa283.js new file mode 100644 index 0000000..f64cb42 --- /dev/null +++ b/docs/assets/core_crypt.md.329fa283.js @@ -0,0 +1,33 @@ +import{_ as s,c as a,o as e,R as t}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"Crypt","description":"","frontmatter":{},"headers":[],"relativePath":"core/crypt.md","filePath":"core/crypt.md","lastUpdated":1666705294000}'),n={name:"core/crypt.md"},o=t(`

Crypt

This page is about the Crypt class available in PeyrSharp.Core. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Crypt class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

EncryptAes(str, key)

Definitions

Encrypts a string using AES encryption. Returns the encrypted content as a string as well.

Arguments

TypeNameMeaning
stringstrThe text to encrypt.
stringkeyThe encryption key. This is the same key that will be used to decrypt the text.

Usage

c#
using PeyrSharp.Core;
+
+string text = "Hello, world!";
+string encrypted = Crypt.EncryptAes(text, "password");
+// encrypted = 8U0HRr7pCIdbvBIquiJaLc00fyBjXDb9sLflk5anIi8=

EncryptRsa(str, rsaParameters)

Definitions

Encrypts a string using RSA encryption. Returns the encrypted content as an array of byte (byte[]).

Arguments

TypeNameMeaning
stringstrThe text to encrypt.
RSAParametersrsaParametersThe RSA key.

Usage

c#
using PeyrSharp.Core;
+using System.Security.Cryptography;
+
+string text = "Hello, world!";
+
+// Create the RSA key
+RSACryptoServiceProvider cryptoServiceProvider = new RSACryptoServiceProvider();
+
+// Encrypt using RSA
+string encrypted = Crypt.EncryptRsa(text, cryptoServiceProvider.ExportParameters(false));

Encrypt3Des(source, key)

Definitions

Encrypts a string using AES encryption. Returns the encrypted content as a string as well.

Arguments

TypeNameMeaning
stringsourceThe text to encrypt.
stringkeyThe encryption key. This is the same key that will be used to decrypt the text.

Usage

c#
using PeyrSharp.Core;
+
+string text = "Hello, world!";
+string encrypted = Crypt.Encrypt3Des(text, "password");
+// encrypted = bxceEpCfRlbyYdPggAu+Cw==

DecryptAes(str, key)

Definitions

Decrypts a string using AES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
stringstrThe text to decrypt.
stringkeyThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
+
+string encrypted = "6NvvTBntd2PdFxXzVbccLw==";
+string text = Crypt.DecryptAes(encrypted, "password");
+// text = Hello!

DecryptRsa(encrypted, rsaParameters)

Definitions

Decrypts a string using AES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
byte[]encryptedThe text to decrypt.
RSAParametersrsaParametersThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
+using System.Security.Cryptography;
+
+RSACryptoServiceProvider cryptoServiceProvider = new RSACryptoServiceProvider();
+byte[] e = Crypt.EncryptRsa("Hello", cryptoServiceProvider.ExportParameters(false));
+
+string decrypted = Crypt.DecryptRsa(e, cryptoServiceProvider.ExportParameters(true));
+// decrypted = Hello

Decrypt3Des(str, key)

Definitions

Decrypts a string using 3-DES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
stringencryptThe text to decrypt.
stringkeyThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
+
+string encrypted = "AvuLd4LUxRU=";
+string text = Crypt.Decrypt3Des(encrypted, "123");
+// text = Hello
`,49),r=[o];function l(p,c,d,y,i,D){return e(),a("div",null,r)}const C=s(n,[["render",l]]);export{F as __pageData,C as default}; diff --git a/docs/assets/core_crypt.md.329fa283.lean.js b/docs/assets/core_crypt.md.329fa283.lean.js new file mode 100644 index 0000000..671241d --- /dev/null +++ b/docs/assets/core_crypt.md.329fa283.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as e,R as t}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"Crypt","description":"","frontmatter":{},"headers":[],"relativePath":"core/crypt.md","filePath":"core/crypt.md","lastUpdated":1666705294000}'),n={name:"core/crypt.md"},o=t("",49),r=[o];function l(p,c,d,y,i,D){return e(),a("div",null,r)}const C=s(n,[["render",l]]);export{F as __pageData,C as default}; diff --git a/docs/assets/core_crypt.md.6d77ba69.js b/docs/assets/core_crypt.md.6d77ba69.js deleted file mode 100644 index 7c3bbc5..0000000 --- a/docs/assets/core_crypt.md.6d77ba69.js +++ /dev/null @@ -1,39 +0,0 @@ -import{_ as s,c as a,o as e,Q as t}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"Crypt","description":"","frontmatter":{},"headers":[],"relativePath":"core/crypt.md","lastUpdated":1666705294000}'),n={name:"core/crypt.md"},o=t(`

Crypt

This page is about the Crypt class available in PeyrSharp.Core. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Crypt class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

EncryptAes(str, key)

Definitions

Encrypts a string using AES encryption. Returns the encrypted content as a string as well.

Arguments

TypeNameMeaning
stringstrThe text to encrypt.
stringkeyThe encryption key. This is the same key that will be used to decrypt the text.

Usage

c#
using PeyrSharp.Core;
-
-string text = "Hello, world!";
-string encrypted = Crypt.EncryptAes(text, "password");
-// encrypted = 8U0HRr7pCIdbvBIquiJaLc00fyBjXDb9sLflk5anIi8=
-

EncryptRsa(str, rsaParameters)

Definitions

Encrypts a string using RSA encryption. Returns the encrypted content as an array of byte (byte[]).

Arguments

TypeNameMeaning
stringstrThe text to encrypt.
RSAParametersrsaParametersThe RSA key.

Usage

c#
using PeyrSharp.Core;
-using System.Security.Cryptography;
-
-string text = "Hello, world!";
-
-// Create the RSA key
-RSACryptoServiceProvider cryptoServiceProvider = new RSACryptoServiceProvider();
-
-// Encrypt using RSA
-string encrypted = Crypt.EncryptRsa(text, cryptoServiceProvider.ExportParameters(false));
-

Encrypt3Des(source, key)

Definitions

Encrypts a string using AES encryption. Returns the encrypted content as a string as well.

Arguments

TypeNameMeaning
stringsourceThe text to encrypt.
stringkeyThe encryption key. This is the same key that will be used to decrypt the text.

Usage

c#
using PeyrSharp.Core;
-
-string text = "Hello, world!";
-string encrypted = Crypt.Encrypt3Des(text, "password");
-// encrypted = bxceEpCfRlbyYdPggAu+Cw==
-

DecryptAes(str, key)

Definitions

Decrypts a string using AES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
stringstrThe text to decrypt.
stringkeyThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
-
-string encrypted = "6NvvTBntd2PdFxXzVbccLw==";
-string text = Crypt.DecryptAes(encrypted, "password");
-// text = Hello!
-

DecryptRsa(encrypted, rsaParameters)

Definitions

Decrypts a string using AES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
byte[]encryptedThe text to decrypt.
RSAParametersrsaParametersThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
-using System.Security.Cryptography;
-
-RSACryptoServiceProvider cryptoServiceProvider = new RSACryptoServiceProvider();
-byte[] e = Crypt.EncryptRsa("Hello", cryptoServiceProvider.ExportParameters(false));
-
-string decrypted = Crypt.DecryptRsa(e, cryptoServiceProvider.ExportParameters(true));
-// decrypted = Hello
-

Decrypt3Des(str, key)

Definitions

Decrypts a string using 3-DES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
stringencryptThe text to decrypt.
stringkeyThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
-
-string encrypted = "AvuLd4LUxRU=";
-string text = Crypt.Decrypt3Des(encrypted, "123");
-// text = Hello
-
`,49),l=[o];function r(p,c,d,y,i,D){return e(),a("div",null,l)}const C=s(n,[["render",r]]);export{F as __pageData,C as default}; diff --git a/docs/assets/core_crypt.md.6d77ba69.lean.js b/docs/assets/core_crypt.md.6d77ba69.lean.js deleted file mode 100644 index 6115a59..0000000 --- a/docs/assets/core_crypt.md.6d77ba69.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as e,Q as t}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"Crypt","description":"","frontmatter":{},"headers":[],"relativePath":"core/crypt.md","lastUpdated":1666705294000}'),n={name:"core/crypt.md"},o=t("",49),l=[o];function r(p,c,d,y,i,D){return e(),a("div",null,l)}const C=s(n,[["render",r]]);export{F as __pageData,C as default}; diff --git a/docs/assets/core_guid-options.md.5637bd7b.js b/docs/assets/core_guid-options.md.5637bd7b.js deleted file mode 100644 index cc64e51..0000000 --- a/docs/assets/core_guid-options.md.5637bd7b.js +++ /dev/null @@ -1,25 +0,0 @@ -import{_ as s,c as e,o as a,Q as n}from"./chunks/framework.7addaa9c.js";const C=JSON.parse('{"title":"GuidOptions","description":"","frontmatter":{},"headers":[],"relativePath":"core/guid-options.md","lastUpdated":1665313649000}'),t={name:"core/guid-options.md"},o=n(`

GuidOptions

This page is about the GuidOptions class available in PeyrSharp.Core. You can find here all of its properties.

Compatibility

The GuidOptions class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

GuidOptions()

Definition

Initializes GuidOptions with default values for its properties.

Usage

c#
using PeyrSharp.Core;
-
-var options = new GuidOptions();
-/*
-    options:
-        - Length = 32
-        - Hyphens = true
-        - Braces = false
-        - UpperCaseOnly = false
-*/
-

GuidOptions(length, hyphens, braces, upperCaseOnly)

Definition

Initializes GuidOptions with specific values for its properties.

Usage

c#
using PeyrSharp.Core;
-
-var options = new GuidOptions(32, true, true, true);
-/*
-    options:
-        - Length = 32
-        - Hyphens = true
-        - Braces = true
-        - UpperCaseOnly = true
-*/
-

Properties

Length

Definition

c#
public int Length { get; set; }
-

The Length property is an int representing the length of the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

Hyphens

Definition

c#
public bool Hyphens { get; set; }
-

The Hyphens property is a bool, which will determine if you want hyphens in the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

Braces

Definition

c#
public bool Braces { get; set; }
-

The Braces property is a bool, which will determine if you want braces in the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

UpperCaseOnly

Definition

c#
public bool UpperCaseOnly { get; set; }
-

The UpperCaseOnly property is a bool, which will determine if you want to only have upper cases in the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

`,41),l=[o];function p(i,c,r,d,h,y){return a(),e("div",null,l)}const b=s(t,[["render",p]]);export{C as __pageData,b as default}; diff --git a/docs/assets/core_guid-options.md.5637bd7b.lean.js b/docs/assets/core_guid-options.md.5637bd7b.lean.js deleted file mode 100644 index 7edd499..0000000 --- a/docs/assets/core_guid-options.md.5637bd7b.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as e,o as a,Q as n}from"./chunks/framework.7addaa9c.js";const C=JSON.parse('{"title":"GuidOptions","description":"","frontmatter":{},"headers":[],"relativePath":"core/guid-options.md","lastUpdated":1665313649000}'),t={name:"core/guid-options.md"},o=n("",41),l=[o];function p(i,c,r,d,h,y){return a(),e("div",null,l)}const b=s(t,[["render",p]]);export{C as __pageData,b as default}; diff --git a/docs/assets/core_guid-options.md.e7441a21.js b/docs/assets/core_guid-options.md.e7441a21.js new file mode 100644 index 0000000..753943d --- /dev/null +++ b/docs/assets/core_guid-options.md.e7441a21.js @@ -0,0 +1,19 @@ +import{_ as s,c as e,o as a,R as n}from"./chunks/framework.bdd825cc.js";const C=JSON.parse('{"title":"GuidOptions","description":"","frontmatter":{},"headers":[],"relativePath":"core/guid-options.md","filePath":"core/guid-options.md","lastUpdated":1665313649000}'),t={name:"core/guid-options.md"},o=n(`

GuidOptions

This page is about the GuidOptions class available in PeyrSharp.Core. You can find here all of its properties.

Compatibility

The GuidOptions class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

GuidOptions()

Definition

Initializes GuidOptions with default values for its properties.

Usage

c#
using PeyrSharp.Core;
+
+var options = new GuidOptions();
+/*
+    options:
+        - Length = 32
+        - Hyphens = true
+        - Braces = false
+        - UpperCaseOnly = false
+*/

GuidOptions(length, hyphens, braces, upperCaseOnly)

Definition

Initializes GuidOptions with specific values for its properties.

Usage

c#
using PeyrSharp.Core;
+
+var options = new GuidOptions(32, true, true, true);
+/*
+    options:
+        - Length = 32
+        - Hyphens = true
+        - Braces = true
+        - UpperCaseOnly = true
+*/

Properties

Length

Definition

c#
public int Length { get; set; }

The Length property is an int representing the length of the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

Hyphens

Definition

c#
public bool Hyphens { get; set; }

The Hyphens property is a bool, which will determine if you want hyphens in the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

Braces

Definition

c#
public bool Braces { get; set; }

The Braces property is a bool, which will determine if you want braces in the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

UpperCaseOnly

Definition

c#
public bool UpperCaseOnly { get; set; }

The UpperCaseOnly property is a bool, which will determine if you want to only have upper cases in the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

`,41),l=[o];function i(p,c,r,d,h,y){return a(),e("div",null,l)}const g=s(t,[["render",i]]);export{C as __pageData,g as default}; diff --git a/docs/assets/core_guid-options.md.e7441a21.lean.js b/docs/assets/core_guid-options.md.e7441a21.lean.js new file mode 100644 index 0000000..743ddac --- /dev/null +++ b/docs/assets/core_guid-options.md.e7441a21.lean.js @@ -0,0 +1 @@ +import{_ as s,c as e,o as a,R as n}from"./chunks/framework.bdd825cc.js";const C=JSON.parse('{"title":"GuidOptions","description":"","frontmatter":{},"headers":[],"relativePath":"core/guid-options.md","filePath":"core/guid-options.md","lastUpdated":1665313649000}'),t={name:"core/guid-options.md"},o=n("",41),l=[o];function i(p,c,r,d,h,y){return a(),e("div",null,l)}const g=s(t,[["render",i]]);export{C as __pageData,g as default}; diff --git a/docs/assets/core_guid.md.a2935b56.js b/docs/assets/core_guid.md.a2935b56.js deleted file mode 100644 index 1317502..0000000 --- a/docs/assets/core_guid.md.a2935b56.js +++ /dev/null @@ -1,17 +0,0 @@ -import{_ as a,c as e,o as s,Q as t}from"./chunks/framework.7addaa9c.js";const m=JSON.parse('{"title":"GuidGen","description":"","frontmatter":{},"headers":[],"relativePath":"core/guid.md","lastUpdated":1665311928000}'),n={name:"core/guid.md"},o=t(`

GuidGen

This page is about the GuidGen class available in PeyrSharp.Core. You can find here all of its methods and properties.

INFO

This class is static.

Compatibility

The GuidGen class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

Generate()

Definition

The Generate() method generates a Guid and will return it as a string.

INFO

This method has different overloads.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core;
-
-string guid = GuidGen.Generate();
-// guid = 7992acdd-1c9a-4985-92df-04599d560bbc (example)
-

Generate(length)

Definition

The Generate() method generates a Guid with a specific length and will return it as a string.

INFO

This method is an overload of Generate()

Arguments

This method has one argument:

TypeNameMeaning
intlengthThe length of the Guid.

WARNING

The length must be a number, otherwise, it will thrown a InvalidGuidLengthException.

Usage

c#
using PeyrSharp.Core;
-
-string guid = GuidGen.Generate(15);
-// guid = 5693ad99881e4f9 (example)
-

Generate(fromString)

Definition

The Generate() method generates a Guid from a specific string and will return it as a string.

INFO

This method is an overload of Generate()

Arguments

This method has one argument:

TypeNameMeaning
stringfromStringThe string which will be used to generate the Guid.

Usage

c#
using PeyrSharp.Core;
-
-string guid = GuidGen.Generate("Hello");
-// guid = 53991a8b-61c4-9612-a827-abf8c47804d7
-

Generate(guidOptions)

Definition

The Generate() method generates a Guid with specific GuidOptions and will return it as a string.

INFO

This method is an overload of Generate()

Arguments

This method has one argument:

TypeNameMeaning
GuidOptionsguidOptionsThe options of the Guid to generate.

Usage

c#
using PeyrSharp.Core;
-
-string guid = Guid.Generate(new GuidOptions(32, true, true, false));
-// guid = {35c3ab90-7636-4d34-a439-bc65eb3c} (example)
-
`,43),l=[o];function r(i,c,p,d,h,u){return s(),e("div",null,l)}const y=a(n,[["render",r]]);export{m as __pageData,y as default}; diff --git a/docs/assets/core_guid.md.a2935b56.lean.js b/docs/assets/core_guid.md.a2935b56.lean.js deleted file mode 100644 index 3ad4f64..0000000 --- a/docs/assets/core_guid.md.a2935b56.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as e,o as s,Q as t}from"./chunks/framework.7addaa9c.js";const m=JSON.parse('{"title":"GuidGen","description":"","frontmatter":{},"headers":[],"relativePath":"core/guid.md","lastUpdated":1665311928000}'),n={name:"core/guid.md"},o=t("",43),l=[o];function r(i,c,p,d,h,u){return s(),e("div",null,l)}const y=a(n,[["render",r]]);export{m as __pageData,y as default}; diff --git a/docs/assets/core_guid.md.eb407f4b.js b/docs/assets/core_guid.md.eb407f4b.js new file mode 100644 index 0000000..eebcdf2 --- /dev/null +++ b/docs/assets/core_guid.md.eb407f4b.js @@ -0,0 +1,13 @@ +import{_ as e,c as a,o as s,R as t}from"./chunks/framework.bdd825cc.js";const m=JSON.parse('{"title":"GuidGen","description":"","frontmatter":{},"headers":[],"relativePath":"core/guid.md","filePath":"core/guid.md","lastUpdated":1665311928000}'),n={name:"core/guid.md"},o=t(`

GuidGen

This page is about the GuidGen class available in PeyrSharp.Core. You can find here all of its methods and properties.

INFO

This class is static.

Compatibility

The GuidGen class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

Generate()

Definition

The Generate() method generates a Guid and will return it as a string.

INFO

This method has different overloads.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core;
+
+string guid = GuidGen.Generate();
+// guid = 7992acdd-1c9a-4985-92df-04599d560bbc (example)

Generate(length)

Definition

The Generate() method generates a Guid with a specific length and will return it as a string.

INFO

This method is an overload of Generate()

Arguments

This method has one argument:

TypeNameMeaning
intlengthThe length of the Guid.

WARNING

The length must be a number, otherwise, it will thrown a InvalidGuidLengthException.

Usage

c#
using PeyrSharp.Core;
+
+string guid = GuidGen.Generate(15);
+// guid = 5693ad99881e4f9 (example)

Generate(fromString)

Definition

The Generate() method generates a Guid from a specific string and will return it as a string.

INFO

This method is an overload of Generate()

Arguments

This method has one argument:

TypeNameMeaning
stringfromStringThe string which will be used to generate the Guid.

Usage

c#
using PeyrSharp.Core;
+
+string guid = GuidGen.Generate("Hello");
+// guid = 53991a8b-61c4-9612-a827-abf8c47804d7

Generate(guidOptions)

Definition

The Generate() method generates a Guid with specific GuidOptions and will return it as a string.

INFO

This method is an overload of Generate()

Arguments

This method has one argument:

TypeNameMeaning
GuidOptionsguidOptionsThe options of the Guid to generate.

Usage

c#
using PeyrSharp.Core;
+
+string guid = Guid.Generate(new GuidOptions(32, true, true, false));
+// guid = {35c3ab90-7636-4d34-a439-bc65eb3c} (example)
`,43),l=[o];function r(i,c,d,p,h,u){return s(),a("div",null,l)}const y=e(n,[["render",r]]);export{m as __pageData,y as default}; diff --git a/docs/assets/core_guid.md.eb407f4b.lean.js b/docs/assets/core_guid.md.eb407f4b.lean.js new file mode 100644 index 0000000..3d38e0b --- /dev/null +++ b/docs/assets/core_guid.md.eb407f4b.lean.js @@ -0,0 +1 @@ +import{_ as e,c as a,o as s,R as t}from"./chunks/framework.bdd825cc.js";const m=JSON.parse('{"title":"GuidGen","description":"","frontmatter":{},"headers":[],"relativePath":"core/guid.md","filePath":"core/guid.md","lastUpdated":1665311928000}'),n={name:"core/guid.md"},o=t("",43),l=[o];function r(i,c,d,p,h,u){return s(),a("div",null,l)}const y=e(n,[["render",r]]);export{m as __pageData,y as default}; diff --git a/docs/assets/core_internet.md.45eeb599.js b/docs/assets/core_internet.md.45eeb599.js deleted file mode 100644 index 00e116f..0000000 --- a/docs/assets/core_internet.md.45eeb599.js +++ /dev/null @@ -1,60 +0,0 @@ -import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"Internet","description":"","frontmatter":{},"headers":[],"relativePath":"core/internet.md","lastUpdated":1666703360000}'),t={name:"core/internet.md"},o=e(`

Internet

This page is about the Internet class available in PeyrSharp.Core. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Internet class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

IsAvailableAsync()

Definition

Checks if a connection to the Internet is available. Returns a bool value.

INFO

This method is asynchronous and awaitable.

Arguments

This method has no arguments

Usage

c#
using PeyrSharp.Core;
-
-public static async void Main()
-{
-    bool isConnected = await Internet.IsAvailableAsync();
-}
-

IsAvailableAsync(url)

Definition

Checks if a connection to the Internet is available. Returns a bool value.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlThe page where to check if Internet is available.

Usage

c#
using PeyrSharp.Core;
-
-public static async void Main()
-{
-    bool isConnected = await Internet.IsAvailableAsync("https://google.com");
-}
-

GetStatusCodeAsync(url)

Definition

Gets the status code of a specific page by making a request to it. Returns the status code as an int value.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlThe URL where to send the request.

Usage

c#
using PeyrSharp.Core;
-
-public static async void Main()
-{
-    int status = await Internet.GetStatusCodeAsync("https://google.com");
-    // status should be 200 if everything is working
-}
-

GetStatusDescriptionAsync(url)

Definition

Gets the status description of a specific page by making a request to it. Returns the status description as a string.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlThe URL where to send the request.

Usage

c#
using PeyrSharp.Core;
-
-public static async void Main()
-{
-    string status = await Internet.GetStatusDescriptionAsync("https://google.com");
-    // status should be OK if everything is working
-}
-

GetStatusCodeType(statusCode)

Definition

Gets the type of the status code. Returns a StatusCodes value.

Arguments

TypeNameMeaning
intstatusCodeThe status code to analyze.

Usage

c#
using PeyrSharp.Core;
-using PeyrSharp.Enums;
-
-public static async void Main()
-{
-    int status = await Internet.GetStatusCodeAsync("https://google.com");
-    switch (Internet.GetStatusCodeType(status))
-    {
-        case StatusCodes.Informational:
-            Console.WriteLine("An information status code has been returned.");
-            break;
-        case StatusCodes.Success:
-            Console.WriteLine("An successful status code has been returned.");
-            break;
-        case StatusCodes.Redirection:
-            Console.WriteLine("An redirection status code has been returned.");
-            break;
-        case StatusCodes.ClientError:
-            Console.WriteLine("An client error status code has been returned.");
-            break;
-        case StatusCodes.ServerError:
-            Console.WriteLine("An server error status code has been returned.");
-            break;
-    }
-}
-

GetUrlProtocol(url)

Definition

Gets the protocol of a specified URL. Returns a string.

Arguments

TypeNameMeaning
stringurlThe URL where to parse.

WARNING

If you provide an invalid URL, the result might be wrong or be something unexpected. An IndexOutOfRangeException can also be thrown.

Usage

c#
using PeyrSharp.Core;
-
-string protocol = Internet.GetUrlProtocol("https://leocorporation.dev");
-// protocol = https
-

IsUrlValid(url)

Definition

Checks if a URL is valid or not.. Returns a bool.

Arguments

TypeNameMeaning
stringurlThe URL where to check.

INFO

If you haven't specified the protocol in the URL (ex: "https://"), the "https://" string will automatically be appended to the original URL. To avoid this behavior, please specify a full URL to preserve the original protocol.

Usage

c#
using PeyrSharp.Core;
-
-bool valid = Internet.GetUrlProtocol("a/test");
-// valid = false
-
`,62),l=[o];function p(r,c,i,d,y,D){return n(),a("div",null,l)}const u=s(t,[["render",p]]);export{F as __pageData,u as default}; diff --git a/docs/assets/core_internet.md.45eeb599.lean.js b/docs/assets/core_internet.md.45eeb599.lean.js deleted file mode 100644 index 1c22bcd..0000000 --- a/docs/assets/core_internet.md.45eeb599.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"Internet","description":"","frontmatter":{},"headers":[],"relativePath":"core/internet.md","lastUpdated":1666703360000}'),t={name:"core/internet.md"},o=e("",62),l=[o];function p(r,c,i,d,y,D){return n(),a("div",null,l)}const u=s(t,[["render",p]]);export{F as __pageData,u as default}; diff --git a/docs/assets/core_internet.md.4a7bf36a.js b/docs/assets/core_internet.md.4a7bf36a.js new file mode 100644 index 0000000..884e033 --- /dev/null +++ b/docs/assets/core_internet.md.4a7bf36a.js @@ -0,0 +1,55 @@ +import{_ as s,c as a,o as n,R as e}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"Internet","description":"","frontmatter":{},"headers":[],"relativePath":"core/internet.md","filePath":"core/internet.md","lastUpdated":1683446294000}'),t={name:"core/internet.md"},o=e(`

Internet

This page is about the Internet class available in PeyrSharp.Core. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Internet class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

IsAvailableAsync()

Definition

Checks if a connection to the Internet is available. Returns a bool value.

INFO

This method is asynchronous and awaitable.

Arguments

This method has no arguments

Usage

c#
using PeyrSharp.Core;
+
+public static async void Main()
+{
+    bool isConnected = await Internet.IsAvailableAsync();
+}

IsAvailableAsync(url)

Definition

Checks if a connection to the Internet is available. Returns a bool value.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlThe page where to check if Internet is available.

Usage

c#
using PeyrSharp.Core;
+
+public static async void Main()
+{
+    bool isConnected = await Internet.IsAvailableAsync("https://google.com");
+}

GetStatusCodeAsync(url)

Definition

Gets the status code of a specific page by making a request to it. Returns the status code as an int value.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlThe URL where to send the request.

Usage

c#
using PeyrSharp.Core;
+
+public static async void Main()
+{
+    int status = await Internet.GetStatusCodeAsync("https://google.com");
+    // status should be 200 if everything is working
+}

GetStatusDescriptionAsync(url)

Definition

Gets the status description of a specific page by making a request to it. Returns the status description as a string.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlThe URL where to send the request.

Usage

c#
using PeyrSharp.Core;
+
+public static async void Main()
+{
+    string status = await Internet.GetStatusDescriptionAsync("https://google.com");
+    // status should be OK if everything is working
+}

GetStatusInfoAsync(url)

Definition

This method sends an HTTP GET request to a given URL and returns a Task of StatusInfo object that contains the status code, description, and type of the URL. The HTTP request method used is HttpClient.GetAsync().

Arguments

TypeNameMeaning
stringurlThe URL to get the status info from.

Returns

A Task of StatusInfo object containing the status code, description, and type of the URL.

Usage

c#
using PeyrSharp.Core;
+
+StatusInfo statusInfo = await Internet.GetStatusInfoAsync("https://www.google.com");

GetStatusCodeType(statusCode)

Definition

Gets the type of the status code. Returns a StatusCodes value.

Arguments

TypeNameMeaning
intstatusCodeThe status code to analyze.

Usage

c#
using PeyrSharp.Core;
+using PeyrSharp.Enums;
+
+public static async void Main()
+{
+    int status = await Internet.GetStatusCodeAsync("https://google.com");
+    switch (Internet.GetStatusCodeType(status))
+    {
+        case StatusCodes.Informational:
+            Console.WriteLine("An information status code has been returned.");
+            break;
+        case StatusCodes.Success:
+            Console.WriteLine("An successful status code has been returned.");
+            break;
+        case StatusCodes.Redirection:
+            Console.WriteLine("An redirection status code has been returned.");
+            break;
+        case StatusCodes.ClientError:
+            Console.WriteLine("An client error status code has been returned.");
+            break;
+        case StatusCodes.ServerError:
+            Console.WriteLine("An server error status code has been returned.");
+            break;
+    }
+}

GetUrlProtocol(url)

Definition

Gets the protocol of a specified URL. Returns a string.

Arguments

TypeNameMeaning
stringurlThe URL where to parse.

WARNING

If you provide an invalid URL, the result might be wrong or be something unexpected. An IndexOutOfRangeException can also be thrown.

Usage

c#
using PeyrSharp.Core;
+
+string protocol = Internet.GetUrlProtocol("https://leocorporation.dev");
+// protocol = https

IsUrlValid(url)

Definition

Checks if a URL is valid or not.. Returns a bool.

Arguments

TypeNameMeaning
stringurlThe URL where to check.

INFO

If you haven't specified the protocol in the URL (ex: "https://"), the "https://" string will automatically be appended to the original URL. To avoid this behavior, please specify a full URL to preserve the original protocol.

Usage

c#
using PeyrSharp.Core;
+
+bool valid = Internet.GetUrlProtocol("a/test");
+// valid = false
`,71),l=[o];function p(r,c,i,d,y,D){return n(),a("div",null,l)}const u=s(t,[["render",p]]);export{F as __pageData,u as default}; diff --git a/docs/assets/core_internet.md.4a7bf36a.lean.js b/docs/assets/core_internet.md.4a7bf36a.lean.js new file mode 100644 index 0000000..063891c --- /dev/null +++ b/docs/assets/core_internet.md.4a7bf36a.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as n,R as e}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"Internet","description":"","frontmatter":{},"headers":[],"relativePath":"core/internet.md","filePath":"core/internet.md","lastUpdated":1683446294000}'),t={name:"core/internet.md"},o=e("",71),l=[o];function p(r,c,i,d,y,D){return n(),a("div",null,l)}const u=s(t,[["render",p]]);export{F as __pageData,u as default}; diff --git a/docs/assets/core_maths.md.386c26b1.js b/docs/assets/core_maths.md.386c26b1.js deleted file mode 100644 index 3b528f9..0000000 --- a/docs/assets/core_maths.md.386c26b1.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as a,Q as r}from"./chunks/framework.7addaa9c.js";const p=JSON.parse('{"title":"Maths","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths.md","lastUpdated":1675590267000}'),o={name:"core/maths.md"},l=r('

Maths

This page is about the Maths namespace available in PeyrSharp.Core. You can find here all of its classes.

Compatibility

The Maths namespace is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Classes

',7),h=[l];function s(i,m,c,d,n,f){return a(),e("div",null,h)}const _=t(o,[["render",s]]);export{p as __pageData,_ as default}; diff --git a/docs/assets/core_maths.md.386c26b1.lean.js b/docs/assets/core_maths.md.386c26b1.lean.js deleted file mode 100644 index 2fc7771..0000000 --- a/docs/assets/core_maths.md.386c26b1.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as a,Q as r}from"./chunks/framework.7addaa9c.js";const p=JSON.parse('{"title":"Maths","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths.md","lastUpdated":1675590267000}'),o={name:"core/maths.md"},l=r("",7),h=[l];function s(i,m,c,d,n,f){return a(),e("div",null,h)}const _=t(o,[["render",s]]);export{p as __pageData,_ as default}; diff --git a/docs/assets/core_maths.md.ab094e3c.js b/docs/assets/core_maths.md.ab094e3c.js new file mode 100644 index 0000000..facbacf --- /dev/null +++ b/docs/assets/core_maths.md.ab094e3c.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as a,R as r}from"./chunks/framework.bdd825cc.js";const p=JSON.parse('{"title":"Maths","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths.md","filePath":"core/maths.md","lastUpdated":1675590267000}'),o={name:"core/maths.md"},h=r('

Maths

This page is about the Maths namespace available in PeyrSharp.Core. You can find here all of its classes.

Compatibility

The Maths namespace is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Classes

',7),l=[h];function s(i,m,c,d,n,f){return a(),e("div",null,l)}const _=t(o,[["render",s]]);export{p as __pageData,_ as default}; diff --git a/docs/assets/core_maths.md.ab094e3c.lean.js b/docs/assets/core_maths.md.ab094e3c.lean.js new file mode 100644 index 0000000..45e748c --- /dev/null +++ b/docs/assets/core_maths.md.ab094e3c.lean.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as a,R as r}from"./chunks/framework.bdd825cc.js";const p=JSON.parse('{"title":"Maths","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths.md","filePath":"core/maths.md","lastUpdated":1675590267000}'),o={name:"core/maths.md"},h=r("",7),l=[h];function s(i,m,c,d,n,f){return a(),e("div",null,l)}const _=t(o,[["render",s]]);export{p as __pageData,_ as default}; diff --git a/docs/assets/core_maths_algebra.md.4877489b.js b/docs/assets/core_maths_algebra.md.0dd45bbb.js similarity index 59% rename from docs/assets/core_maths_algebra.md.4877489b.js rename to docs/assets/core_maths_algebra.md.0dd45bbb.js index 24983e2..8a2258e 100644 --- a/docs/assets/core_maths_algebra.md.4877489b.js +++ b/docs/assets/core_maths_algebra.md.0dd45bbb.js @@ -1,4 +1,4 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Algebra","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/algebra.md","lastUpdated":1666370076000}'),t={name:"core/maths/algebra.md"},o=n(`

Algebra

This page is about the Algebra class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Algebra class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

Sum(numbers) (double)

Definition

Returns the sum of specified double numbers. It returns a double value.

Arguments

TypeNameMeaning
params double[]numbersThe numbers to do the sum of.

Usage

c#
using PeyrSharp.Core.Maths;
+import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Algebra","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/algebra.md","filePath":"core/maths/algebra.md","lastUpdated":1666370076000}'),t={name:"core/maths/algebra.md"},o=n(`

Algebra

This page is about the Algebra class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Algebra class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

Sum(numbers) (double)

Definition

Returns the sum of specified double numbers. It returns a double value.

Arguments

TypeNameMeaning
params double[]numbersThe numbers to do the sum of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 // Usage 1
 double sum = Algebra.Sum(12, 1.5, 45, 2.2);
@@ -8,8 +8,7 @@ import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=
 double[] numbers = new double[] { 1, 2, 3 };
 
 double sum2 = Algebra.Sum(numbers);
-// sum = 6
-

Sum(numbers) (int)

Definition

Returns the sum of specified int numbers. It returns a int value.

Arguments

TypeNameMeaning
params int[]numbersThe numbers to do the sum of.

Usage

c#
using PeyrSharp.Core.Maths;
+// sum = 6

Sum(numbers) (int)

Definition

Returns the sum of specified int numbers. It returns a int value.

Arguments

TypeNameMeaning
params int[]numbersThe numbers to do the sum of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 // Usage 1
 int sum = Algebra.Sum(12, 15, 45, 2);
@@ -19,29 +18,22 @@ import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=
 int[] numbers = new int[] { 1, 2, 3 };
 
 int sum2 = Algebra.Sum(numbers);
-// sum = 6
-

IsInt(number)

Definition

Returns true if a specified double is an integer. It returns a bool value.

Arguments

TypeNameMeaning
doublenumberThe number to check.

Usage

c#
using PeyrSharp.Core.Maths;
+// sum = 6

IsInt(number)

Definition

Returns true if a specified double is an integer. It returns a bool value.

Arguments

TypeNameMeaning
doublenumberThe number to check.

Usage

c#
using PeyrSharp.Core.Maths;
 
 bool isInt = Algebra.IsInt(12.0);
-// isInt = true
-

GetOpposite(number)

Definition

Gets the opposite of a double number. It returns a double value.

Arguments

TypeNameMeaning
doublenumberThe number to get the opposite of.

Usage

c#
using PeyrSharp.Core.Maths;
+// isInt = true

GetOpposite(number)

Definition

Gets the opposite of a double number. It returns a double value.

Arguments

TypeNameMeaning
doublenumberThe number to get the opposite of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 double opposite = Algebra.Opposite(7);
-// opposite = -7
-

Factorial(number)

Definition

Gets the factorial of an int number. It returns an int.

Arguments

TypeNameMeaning
intnumberThe number to get the factorial of.

Usage

c#
using PeyrSharp.Core.Maths;
+// opposite = -7

Factorial(number)

Definition

Gets the factorial of an int number. It returns an int.

Arguments

TypeNameMeaning
intnumberThe number to get the factorial of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 int factorial = Algebra.Factorial(5);
-// factorial = 120
-

PositiveOf(number)

Definition

Gets the positive of a double number. It returns a double value.

Arguments

TypeNameMeaning
doublenumberThe number to get the positive of.

Usage

c#
using PeyrSharp.Core.Maths;
+// factorial = 120

PositiveOf(number)

Definition

Gets the positive of a double number. It returns a double value.

Arguments

TypeNameMeaning
doublenumberThe number to get the positive of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 double pos = Algebra.PositiveOf(-7);
-// pos = 7
-

NegativeOf(number)

Definition

Gets the negative of a double number. It returns a double value.

Arguments

TypeNameMeaning
doublenumberThe number to get the negative of.

Usage

c#
using PeyrSharp.Core.Maths;
+// pos = 7

NegativeOf(number)

Definition

Gets the negative of a double number. It returns a double value.

Arguments

TypeNameMeaning
doublenumberThe number to get the negative of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 double negative = Algebra.NegativeOf(7);
-// negative = -7
-

GetResultsOf(function, numbers)

Definition

Gets the results of a function applied to specific double numbers. It returns an array of double[].

Arguments

TypeNameMeaning
Func<double, double>functionThe function to apply to all numbers. It must return a double and take a double as an argument.
params double[]numbersThe numbers to get the results of.

Usage

c#
using PeyrSharp.Core.Maths;
+// negative = -7

GetResultsOf(function, numbers)

Definition

Gets the results of a function applied to specific double numbers. It returns an array of double[].

Arguments

TypeNameMeaning
Func<double, double>functionThe function to apply to all numbers. It must return a double and take a double as an argument.
params double[]numbersThe numbers to get the results of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 double res = Algebra.GetResultsOf(x => x * x, 1, 2, 3, 4);
-// res = double[] { 1, 4, 9, 16 }
-
`,63),l=[o];function p(r,c,i,d,h,u){return e(),s("div",null,l)}const C=a(t,[["render",p]]);export{D as __pageData,C as default}; +// res = double[] { 1, 4, 9, 16 }
`,63),l=[o];function r(p,c,i,d,h,u){return e(),s("div",null,l)}const C=a(t,[["render",r]]);export{D as __pageData,C as default}; diff --git a/docs/assets/core_maths_algebra.md.0dd45bbb.lean.js b/docs/assets/core_maths_algebra.md.0dd45bbb.lean.js new file mode 100644 index 0000000..c718808 --- /dev/null +++ b/docs/assets/core_maths_algebra.md.0dd45bbb.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Algebra","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/algebra.md","filePath":"core/maths/algebra.md","lastUpdated":1666370076000}'),t={name:"core/maths/algebra.md"},o=n("",63),l=[o];function r(p,c,i,d,h,u){return e(),s("div",null,l)}const C=a(t,[["render",r]]);export{D as __pageData,C as default}; diff --git a/docs/assets/core_maths_algebra.md.4877489b.lean.js b/docs/assets/core_maths_algebra.md.4877489b.lean.js deleted file mode 100644 index 79a2a53..0000000 --- a/docs/assets/core_maths_algebra.md.4877489b.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Algebra","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/algebra.md","lastUpdated":1666370076000}'),t={name:"core/maths/algebra.md"},o=n("",63),l=[o];function p(r,c,i,d,h,u){return e(),s("div",null,l)}const C=a(t,[["render",p]]);export{D as __pageData,C as default}; diff --git a/docs/assets/core_maths_geometry.md.878759b2.js b/docs/assets/core_maths_geometry.md.878759b2.js deleted file mode 100644 index 947674d..0000000 --- a/docs/assets/core_maths_geometry.md.878759b2.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as a,Q as r}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"Geometry","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry.md","lastUpdated":1665756355000}'),o={name:"core/maths/geometry.md"},l=r('

Geometry

This page is about the Geometry namespace available in PeyrSharp.Core.Maths. This namespace includes several classes to get and calculates various aspects of different shapes, like the area, perimeter, volume and more.

Compatibility

The namespace is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Classes

',7),s=[l];function i(h,m,d,c,n,p){return a(),t("div",null,s)}const f=e(o,[["render",i]]);export{y as __pageData,f as default}; diff --git a/docs/assets/core_maths_geometry.md.878759b2.lean.js b/docs/assets/core_maths_geometry.md.878759b2.lean.js deleted file mode 100644 index 8377231..0000000 --- a/docs/assets/core_maths_geometry.md.878759b2.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as a,Q as r}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"Geometry","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry.md","lastUpdated":1665756355000}'),o={name:"core/maths/geometry.md"},l=r("",7),s=[l];function i(h,m,d,c,n,p){return a(),t("div",null,s)}const f=e(o,[["render",i]]);export{y as __pageData,f as default}; diff --git a/docs/assets/core_maths_geometry.md.fd7d026b.js b/docs/assets/core_maths_geometry.md.fd7d026b.js new file mode 100644 index 0000000..aceec38 --- /dev/null +++ b/docs/assets/core_maths_geometry.md.fd7d026b.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as a,R as r}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"Geometry","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry.md","filePath":"core/maths/geometry.md","lastUpdated":1665756355000}'),o={name:"core/maths/geometry.md"},l=r('

Geometry

This page is about the Geometry namespace available in PeyrSharp.Core.Maths. This namespace includes several classes to get and calculates various aspects of different shapes, like the area, perimeter, volume and more.

Compatibility

The namespace is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Classes

',7),s=[l];function i(h,m,d,c,n,p){return a(),t("div",null,s)}const f=e(o,[["render",i]]);export{y as __pageData,f as default}; diff --git a/docs/assets/core_maths_geometry.md.fd7d026b.lean.js b/docs/assets/core_maths_geometry.md.fd7d026b.lean.js new file mode 100644 index 0000000..fb699dc --- /dev/null +++ b/docs/assets/core_maths_geometry.md.fd7d026b.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as a,R as r}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"Geometry","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry.md","filePath":"core/maths/geometry.md","lastUpdated":1665756355000}'),o={name:"core/maths/geometry.md"},l=r("",7),s=[l];function i(h,m,d,c,n,p){return a(),t("div",null,s)}const f=e(o,[["render",i]]);export{y as __pageData,f as default}; diff --git a/docs/assets/core_maths_geometry_circle.md.b835d535.js b/docs/assets/core_maths_geometry_circle.md.b835d535.js new file mode 100644 index 0000000..c11e129 --- /dev/null +++ b/docs/assets/core_maths_geometry_circle.md.b835d535.js @@ -0,0 +1,13 @@ +import{_ as a,c as e,o as s,R as t}from"./chunks/framework.bdd825cc.js";const u=JSON.parse('{"title":"Circle","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/circle.md","filePath":"core/maths/geometry/circle.md","lastUpdated":1665756380000}'),o={name:"core/maths/geometry/circle.md"},n=t(`

Circle

This page is about the Circle class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Circle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Circle(radius)

Definition

Initializes a Circle class from a specific radius.

Arguments

TypeNameMeaning
doubleradiusThe radius of the circle.

WARNING

If radius ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Circle circle = new(10); // Creates a circle with a radius of 10

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the circle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Circle circle = new(10);
+
+var area = circle.Area;
+// area = 314.1592653589793

Perimeter

Definition

c#
public double Perimeter { get; }

The Perimeter property is a double which returns the perimeter of the circle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Circle circle = new(10);
+
+var perimeter = circle.Perimeter;
+// perimeter = 62.83185307179586
`,27),l=[n];function r(c,p,i,d,h,y){return s(),e("div",null,l)}const D=a(o,[["render",r]]);export{u as __pageData,D as default}; diff --git a/docs/assets/core_maths_geometry_circle.md.b835d535.lean.js b/docs/assets/core_maths_geometry_circle.md.b835d535.lean.js new file mode 100644 index 0000000..3b08b59 --- /dev/null +++ b/docs/assets/core_maths_geometry_circle.md.b835d535.lean.js @@ -0,0 +1 @@ +import{_ as a,c as e,o as s,R as t}from"./chunks/framework.bdd825cc.js";const u=JSON.parse('{"title":"Circle","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/circle.md","filePath":"core/maths/geometry/circle.md","lastUpdated":1665756380000}'),o={name:"core/maths/geometry/circle.md"},n=t("",27),l=[n];function r(c,p,i,d,h,y){return s(),e("div",null,l)}const D=a(o,[["render",r]]);export{u as __pageData,D as default}; diff --git a/docs/assets/core_maths_geometry_circle.md.e8a89d45.js b/docs/assets/core_maths_geometry_circle.md.e8a89d45.js deleted file mode 100644 index 688f79e..0000000 --- a/docs/assets/core_maths_geometry_circle.md.e8a89d45.js +++ /dev/null @@ -1,18 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const u=JSON.parse('{"title":"Circle","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/circle.md","lastUpdated":1665756380000}'),t={name:"core/maths/geometry/circle.md"},o=n(`

Circle

This page is about the Circle class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Circle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Circle(radius)

Definition

Initializes a Circle class from a specific radius.

Arguments

TypeNameMeaning
doubleradiusThe radius of the circle.

WARNING

If radius ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Circle circle = new(10); // Creates a circle with a radius of 10
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the circle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Circle circle = new(10);
-
-var area = circle.Area;
-// area = 314.1592653589793
-

Perimeter

Definition

c#
public double Perimeter { get; }
-

The Perimeter property is a double which returns the perimeter of the circle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Circle circle = new(10);
-
-var perimeter = circle.Perimeter;
-// perimeter = 62.83185307179586
-
`,27),l=[o];function r(c,p,i,d,h,y){return e(),s("div",null,l)}const D=a(t,[["render",r]]);export{u as __pageData,D as default}; diff --git a/docs/assets/core_maths_geometry_circle.md.e8a89d45.lean.js b/docs/assets/core_maths_geometry_circle.md.e8a89d45.lean.js deleted file mode 100644 index b0a0f6a..0000000 --- a/docs/assets/core_maths_geometry_circle.md.e8a89d45.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const u=JSON.parse('{"title":"Circle","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/circle.md","lastUpdated":1665756380000}'),t={name:"core/maths/geometry/circle.md"},o=n("",27),l=[o];function r(c,p,i,d,h,y){return e(),s("div",null,l)}const D=a(t,[["render",r]]);export{u as __pageData,D as default}; diff --git a/docs/assets/core_maths_geometry_cone.md.37f79f61.js b/docs/assets/core_maths_geometry_cone.md.37f79f61.js new file mode 100644 index 0000000..6e2d80f --- /dev/null +++ b/docs/assets/core_maths_geometry_cone.md.37f79f61.js @@ -0,0 +1,18 @@ +import{_ as a,c as s,o as e,R as o}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Cone","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/cone.md","filePath":"core/maths/geometry/cone.md","lastUpdated":1665652653000}'),n={name:"core/maths/geometry/cone.md"},t=o(`

Cone

This page is about the Cone class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Cone class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Cone(radius, height)

Definition

Initializes a Cone class from a specific radius and height.

Arguments

TypeNameMeaning
doubleradiusThe radius of the cone.
doubleheightThe height of the cone.

WARNING

If radius or height ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cone cone = new(10, 20); // Creates a cone with a radius of 10, and a height of 20

Properties

Volume

Definition

c#
public double Volume { get; }

The Volume property is a double which returns the volume of the cone. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cone cone = new(10, 20);
+
+var volume = cone.Volume;
+// volume = 2094.3951023931954

Radius

Definition

c#
public double Radius { get; init; }

The Radius property is a double which returns the radius of the cone, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cone cone = new(15, 20);
+
+var radius = cone.Radius;
+// radius = 15

Height

Definition

c#
public double Height { get; init; }

The Height property is a double which returns the height of the cone, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Circle cone = new(10, 40);
+
+var height = cone.Height;
+// height = 40
`,33),l=[t];function p(r,c,i,d,h,y){return e(),s("div",null,l)}const u=a(n,[["render",p]]);export{D as __pageData,u as default}; diff --git a/docs/assets/core_maths_geometry_cone.md.37f79f61.lean.js b/docs/assets/core_maths_geometry_cone.md.37f79f61.lean.js new file mode 100644 index 0000000..85084b7 --- /dev/null +++ b/docs/assets/core_maths_geometry_cone.md.37f79f61.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as o}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Cone","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/cone.md","filePath":"core/maths/geometry/cone.md","lastUpdated":1665652653000}'),n={name:"core/maths/geometry/cone.md"},t=o("",33),l=[t];function p(r,c,i,d,h,y){return e(),s("div",null,l)}const u=a(n,[["render",p]]);export{D as __pageData,u as default}; diff --git a/docs/assets/core_maths_geometry_cone.md.753c86c5.js b/docs/assets/core_maths_geometry_cone.md.753c86c5.js deleted file mode 100644 index 3e04f79..0000000 --- a/docs/assets/core_maths_geometry_cone.md.753c86c5.js +++ /dev/null @@ -1,25 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Cone","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/cone.md","lastUpdated":1665652653000}'),o={name:"core/maths/geometry/cone.md"},t=n(`

Cone

This page is about the Cone class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Cone class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Cone(radius, height)

Definition

Initializes a Cone class from a specific radius and height.

Arguments

TypeNameMeaning
doubleradiusThe radius of the cone.
doubleheightThe height of the cone.

WARNING

If radius or height ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cone cone = new(10, 20); // Creates a cone with a radius of 10, and a height of 20
-

Properties

Volume

Definition

c#
public double Volume { get; }
-

The Volume property is a double which returns the volume of the cone. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cone cone = new(10, 20);
-
-var volume = cone.Volume;
-// volume = 2094.3951023931954
-

Radius

Definition

c#
public double Radius { get; init; }
-

The Radius property is a double which returns the radius of the cone, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cone cone = new(15, 20);
-
-var radius = cone.Radius;
-// radius = 15
-

Height

Definition

c#
public double Height { get; init; }
-

The Height property is a double which returns the height of the cone, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Circle cone = new(10, 40);
-
-var height = cone.Height;
-// height = 40
-
`,33),l=[t];function p(c,r,i,d,h,C){return e(),a("div",null,l)}const u=s(o,[["render",p]]);export{D as __pageData,u as default}; diff --git a/docs/assets/core_maths_geometry_cone.md.753c86c5.lean.js b/docs/assets/core_maths_geometry_cone.md.753c86c5.lean.js deleted file mode 100644 index 926c3f4..0000000 --- a/docs/assets/core_maths_geometry_cone.md.753c86c5.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Cone","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/cone.md","lastUpdated":1665652653000}'),o={name:"core/maths/geometry/cone.md"},t=n("",33),l=[t];function p(c,r,i,d,h,C){return e(),a("div",null,l)}const u=s(o,[["render",p]]);export{D as __pageData,u as default}; diff --git a/docs/assets/core_maths_geometry_cube.md.16564995.js b/docs/assets/core_maths_geometry_cube.md.16564995.js deleted file mode 100644 index 24bb804..0000000 --- a/docs/assets/core_maths_geometry_cube.md.16564995.js +++ /dev/null @@ -1,56 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Cube","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/cube.md","lastUpdated":1665652653000}'),o={name:"core/maths/geometry/cube.md"},l=n(`

Cube

This page is about the Cube class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Cube class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Cube(side)

Definition

Initializes a Cube class from the length of the side of the cube.

Arguments

TypeNameMeaning
doublesideThe length of the side of the cube.

WARNING

If side ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cube cube = new(10); // Creates a 10x10x10 cube
-

Cube(width, length, height)

Definition

Initializes a Cube class from the width, the length and the height of the cuboidal.

Arguments

TypeNameMeaning
doublewidthThe width of the cuboidal.
doublelengthThe length of the cuboidal.
doubleheightThe height of the cuboidal.

WARNING

If width, length or height ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cube cube = new(10, 20, 10); // Creates a 10x20x10 cuboidal
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cube cube = new(10);
-
-var area = cube.Area;
-// area = 100
-

Edge

Definition

c#
public double Edge { get; }
-

The Edge property is a double which returns the edge of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cube cube = new(10);
-
-var edge = cube.Edge;
-// edge = 7.0710678118654755
-

Length

Definition

c#
public double Length { get; init; }
-

The Length property is a double which returns the length of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cube cube = new(10);
-
-var length = cube.Length;
-// length = 10
-

Height

Definition

c#
public double Height { get; init; }
-

The Height property is a double which returns the height of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cube cube = new(10);
-
-var height = cube.Height;
-// height = 10
-

Side

Definition

c#
public double? Side { get; init; }
-

The Side property is a double? which returns the length of the side of the cube. You can only get this property.

WARNING

This property can be null if not initialized with Cube(side).

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cube cube = new(10);
-
-var side = cube.Side ?? 0;
-// side = 10
-

Volume

Definition

c#
public double Volume { get; }
-

The Volume property is a double which returns the volume of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cube cube = new(10);
-
-var volume = cube.Volume; // 10^3
-// volume = 1000
-

Width

Definition

c#
public double Width { get; init; }
-

The Width property is a double which returns the width of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cube cube = new(10);
-
-var width = cube.Width;
-// width = 10
-
`,66),t=[l];function p(c,r,i,d,h,y){return e(),a("div",null,t)}const u=s(o,[["render",p]]);export{D as __pageData,u as default}; diff --git a/docs/assets/core_maths_geometry_cube.md.16564995.lean.js b/docs/assets/core_maths_geometry_cube.md.16564995.lean.js deleted file mode 100644 index 1cadb6a..0000000 --- a/docs/assets/core_maths_geometry_cube.md.16564995.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Cube","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/cube.md","lastUpdated":1665652653000}'),o={name:"core/maths/geometry/cube.md"},l=n("",66),t=[l];function p(c,r,i,d,h,y){return e(),a("div",null,t)}const u=s(o,[["render",p]]);export{D as __pageData,u as default}; diff --git a/docs/assets/core_maths_geometry_cube.md.ef853c71.js b/docs/assets/core_maths_geometry_cube.md.ef853c71.js new file mode 100644 index 0000000..9c8bd13 --- /dev/null +++ b/docs/assets/core_maths_geometry_cube.md.ef853c71.js @@ -0,0 +1,40 @@ +import{_ as s,c as a,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Cube","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/cube.md","filePath":"core/maths/geometry/cube.md","lastUpdated":1665652653000}'),o={name:"core/maths/geometry/cube.md"},l=n(`

Cube

This page is about the Cube class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Cube class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Cube(side)

Definition

Initializes a Cube class from the length of the side of the cube.

Arguments

TypeNameMeaning
doublesideThe length of the side of the cube.

WARNING

If side ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cube cube = new(10); // Creates a 10x10x10 cube

Cube(width, length, height)

Definition

Initializes a Cube class from the width, the length and the height of the cuboidal.

Arguments

TypeNameMeaning
doublewidthThe width of the cuboidal.
doublelengthThe length of the cuboidal.
doubleheightThe height of the cuboidal.

WARNING

If width, length or height ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cube cube = new(10, 20, 10); // Creates a 10x20x10 cuboidal

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cube cube = new(10);
+
+var area = cube.Area;
+// area = 100

Edge

Definition

c#
public double Edge { get; }

The Edge property is a double which returns the edge of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cube cube = new(10);
+
+var edge = cube.Edge;
+// edge = 7.0710678118654755

Length

Definition

c#
public double Length { get; init; }

The Length property is a double which returns the length of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cube cube = new(10);
+
+var length = cube.Length;
+// length = 10

Height

Definition

c#
public double Height { get; init; }

The Height property is a double which returns the height of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cube cube = new(10);
+
+var height = cube.Height;
+// height = 10

Side

Definition

c#
public double? Side { get; init; }

The Side property is a double? which returns the length of the side of the cube. You can only get this property.

WARNING

This property can be null if not initialized with Cube(side).

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cube cube = new(10);
+
+var side = cube.Side ?? 0;
+// side = 10

Volume

Definition

c#
public double Volume { get; }

The Volume property is a double which returns the volume of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cube cube = new(10);
+
+var volume = cube.Volume; // 10^3
+// volume = 1000

Width

Definition

c#
public double Width { get; init; }

The Width property is a double which returns the width of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cube cube = new(10);
+
+var width = cube.Width;
+// width = 10
`,66),t=[l];function p(c,r,i,d,h,y){return e(),a("div",null,t)}const u=s(o,[["render",p]]);export{D as __pageData,u as default}; diff --git a/docs/assets/core_maths_geometry_cube.md.ef853c71.lean.js b/docs/assets/core_maths_geometry_cube.md.ef853c71.lean.js new file mode 100644 index 0000000..b993bc6 --- /dev/null +++ b/docs/assets/core_maths_geometry_cube.md.ef853c71.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Cube","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/cube.md","filePath":"core/maths/geometry/cube.md","lastUpdated":1665652653000}'),o={name:"core/maths/geometry/cube.md"},l=n("",66),t=[l];function p(c,r,i,d,h,y){return e(),a("div",null,t)}const u=s(o,[["render",p]]);export{D as __pageData,u as default}; diff --git a/docs/assets/core_maths_geometry_cylinder.md.c964c334.js b/docs/assets/core_maths_geometry_cylinder.md.c964c334.js new file mode 100644 index 0000000..78cc1b0 --- /dev/null +++ b/docs/assets/core_maths_geometry_cylinder.md.c964c334.js @@ -0,0 +1,23 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Cylinder","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/cylinder.md","filePath":"core/maths/geometry/cylinder.md","lastUpdated":1665652653000}'),o={name:"core/maths/geometry/cylinder.md"},l=n(`

Cylinder

This page is about the Cylinder class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Cylinder class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Cylinder(radius, height)

Definition

Initializes a Cylinder class from a specific radius and height.

Arguments

TypeNameMeaning
doubleradiusThe radius of the cylinder.
doubleheightThe height of the cylinder.

WARNING

If radius or height ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cylinder cylinder = new(20, 10); // Creates a cylinder with a radius of 20, and a height of 10

Properties

Volume

Definition

c#
public double Volume { get; }

The Volume property is a double which returns the volume of the cylinder. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cylinder cylinder = new(10, 20);
+
+var volume = cylinder.Volume;
+// volume = 6283.185307179587

BaseArea

Definition

c#
public double BaseArea { get; }

The BaseArea property is a double which returns the area of the circle, which is the base of the cylinder. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cylinder cylinder = new(10, 20);
+
+var baseArea = cylinder.BaseArea;
+// baseArea = 314.1592653589793

Radius

Definition

c#
public double Radius { get; init; }

The Radius property is a double which returns the radius of the cylinder, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cylinder cylinder = new(15, 20);
+
+var radius = cylinder.Radius;
+// radius = 15

Height

Definition

c#
public double Height { get; init; }

The Height property is a double which returns the height of the cylinder, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Cylinder cylinder = new(10, 40);
+
+var height = cylinder.Height;
+// height = 40
`,39),t=[l];function p(r,c,i,d,h,y){return e(),s("div",null,t)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_cylinder.md.c964c334.lean.js b/docs/assets/core_maths_geometry_cylinder.md.c964c334.lean.js new file mode 100644 index 0000000..305c4e5 --- /dev/null +++ b/docs/assets/core_maths_geometry_cylinder.md.c964c334.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Cylinder","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/cylinder.md","filePath":"core/maths/geometry/cylinder.md","lastUpdated":1665652653000}'),o={name:"core/maths/geometry/cylinder.md"},l=n("",39),t=[l];function p(r,c,i,d,h,y){return e(),s("div",null,t)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_cylinder.md.e4bd7953.js b/docs/assets/core_maths_geometry_cylinder.md.e4bd7953.js deleted file mode 100644 index e4d787a..0000000 --- a/docs/assets/core_maths_geometry_cylinder.md.e4bd7953.js +++ /dev/null @@ -1,32 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Cylinder","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/cylinder.md","lastUpdated":1665652653000}'),l={name:"core/maths/geometry/cylinder.md"},o=n(`

Cylinder

This page is about the Cylinder class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Cylinder class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Cylinder(radius, height)

Definition

Initializes a Cylinder class from a specific radius and height.

Arguments

TypeNameMeaning
doubleradiusThe radius of the cylinder.
doubleheightThe height of the cylinder.

WARNING

If radius or height ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cylinder cylinder = new(20, 10); // Creates a cylinder with a radius of 20, and a height of 10
-

Properties

Volume

Definition

c#
public double Volume { get; }
-

The Volume property is a double which returns the volume of the cylinder. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cylinder cylinder = new(10, 20);
-
-var volume = cylinder.Volume;
-// volume = 6283.185307179587
-

BaseArea

Definition

c#
public double BaseArea { get; }
-

The BaseArea property is a double which returns the area of the circle, which is the base of the cylinder. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cylinder cylinder = new(10, 20);
-
-var baseArea = cylinder.BaseArea;
-// baseArea = 314.1592653589793
-

Radius

Definition

c#
public double Radius { get; init; }
-

The Radius property is a double which returns the radius of the cylinder, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cylinder cylinder = new(15, 20);
-
-var radius = cylinder.Radius;
-// radius = 15
-

Height

Definition

c#
public double Height { get; init; }
-

The Height property is a double which returns the height of the cylinder, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Cylinder cylinder = new(10, 40);
-
-var height = cylinder.Height;
-// height = 40
-
`,39),t=[o];function p(r,c,i,d,h,y){return e(),a("div",null,t)}const F=s(l,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_cylinder.md.e4bd7953.lean.js b/docs/assets/core_maths_geometry_cylinder.md.e4bd7953.lean.js deleted file mode 100644 index 6d13e95..0000000 --- a/docs/assets/core_maths_geometry_cylinder.md.e4bd7953.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Cylinder","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/cylinder.md","lastUpdated":1665652653000}'),l={name:"core/maths/geometry/cylinder.md"},o=n("",39),t=[o];function p(r,c,i,d,h,y){return e(),a("div",null,t)}const F=s(l,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_diamond.md.b6c2fd0a.js b/docs/assets/core_maths_geometry_diamond.md.b6c2fd0a.js deleted file mode 100644 index 916938b..0000000 --- a/docs/assets/core_maths_geometry_diamond.md.b6c2fd0a.js +++ /dev/null @@ -1,36 +0,0 @@ -import{_ as a,c as s,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Diamond","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/diamond.md","lastUpdated":1666360764000}'),o={name:"core/maths/geometry/diamond.md"},l=e(`

Diamond

This page is about the Diamond class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Diamond class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Diamond(side)

Definition

Initializes a Diamond class from the length of its side.

Arguments

TypeNameMeaning
doublesideThe length of the side.

WARNING

If side ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Diamond diamond = new(5); // Creates a diamond where all the sides equals to 5.
-

Diamond(diagonal1, diagonal2)

Definition

Initializes a Diamond class from the length of its diagonals.

Arguments

TypeNameMeaning
doublediagonal1The length of the first diagonal.
doublediagonal2The side of the second diagonal.

WARNING

If diagonal1 or diagonal2 ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-// Creates a diamond where the first diagonal is equal to 5, and the second one is equal to 10.
-Diamond diamond = new(5, 10); 
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the diamond. You can only get this property.

WARNING

This property can be null or can return 0 if not initialized with Diamond(diagonal1, diagonal2).

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Diamond diamond = new(5, 10);
-
-var area = diamond.Area;
-// area = 100
-

Perimeter

Definition

c#
public double Perimeter { get; }
-

The Perimeter property is a double which returns the perimeter of the diamond. You can only get this property.

WARNING

This property can be null or can return 0 if not initialized with Diamond(side).

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Diamond diamond = new(10);
-
-var perimeter = diamond.Perimeter;
-// perimeter = 40
-

Side

Definition

c#
public double Side { get; init; }
-

The Side property is a double which returns the length of sides of the diamond, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Diamond diamond = new(10);
-
-var side = diamond.Side;
-// side = 10
-

Diagonals

Definition

c#
public double[] Diagonals { get; init; }
-

The Side property is a double[] array which returns the diagonals of the diamond, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Diamond diamond = new(10, 14);
-
-var side = diamond.Diagonals;
-// side = { 10, 14 }
-
`,49),t=[l];function p(i,r,c,d,h,y){return n(),s("div",null,t)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_diamond.md.b6c2fd0a.lean.js b/docs/assets/core_maths_geometry_diamond.md.b6c2fd0a.lean.js deleted file mode 100644 index 21e0a9e..0000000 --- a/docs/assets/core_maths_geometry_diamond.md.b6c2fd0a.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Diamond","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/diamond.md","lastUpdated":1666360764000}'),o={name:"core/maths/geometry/diamond.md"},l=e("",49),t=[l];function p(i,r,c,d,h,y){return n(),s("div",null,t)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_diamond.md.d8217217.js b/docs/assets/core_maths_geometry_diamond.md.d8217217.js new file mode 100644 index 0000000..67a139d --- /dev/null +++ b/docs/assets/core_maths_geometry_diamond.md.d8217217.js @@ -0,0 +1,26 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Diamond","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/diamond.md","filePath":"core/maths/geometry/diamond.md","lastUpdated":1666360764000}'),o={name:"core/maths/geometry/diamond.md"},l=n(`

Diamond

This page is about the Diamond class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Diamond class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Diamond(side)

Definition

Initializes a Diamond class from the length of its side.

Arguments

TypeNameMeaning
doublesideThe length of the side.

WARNING

If side ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Diamond diamond = new(5); // Creates a diamond where all the sides equals to 5.

Diamond(diagonal1, diagonal2)

Definition

Initializes a Diamond class from the length of its diagonals.

Arguments

TypeNameMeaning
doublediagonal1The length of the first diagonal.
doublediagonal2The side of the second diagonal.

WARNING

If diagonal1 or diagonal2 ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+// Creates a diamond where the first diagonal is equal to 5, and the second one is equal to 10.
+Diamond diamond = new(5, 10);

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the diamond. You can only get this property.

WARNING

This property can be null or can return 0 if not initialized with Diamond(diagonal1, diagonal2).

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Diamond diamond = new(5, 10);
+
+var area = diamond.Area;
+// area = 100

Perimeter

Definition

c#
public double Perimeter { get; }

The Perimeter property is a double which returns the perimeter of the diamond. You can only get this property.

WARNING

This property can be null or can return 0 if not initialized with Diamond(side).

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Diamond diamond = new(10);
+
+var perimeter = diamond.Perimeter;
+// perimeter = 40

Side

Definition

c#
public double Side { get; init; }

The Side property is a double which returns the length of sides of the diamond, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Diamond diamond = new(10);
+
+var side = diamond.Side;
+// side = 10

Diagonals

Definition

c#
public double[] Diagonals { get; init; }

The Side property is a double[] array which returns the diagonals of the diamond, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Diamond diamond = new(10, 14);
+
+var side = diamond.Diagonals;
+// side = { 10, 14 }
`,49),t=[l];function p(i,r,c,d,h,y){return e(),s("div",null,t)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_diamond.md.d8217217.lean.js b/docs/assets/core_maths_geometry_diamond.md.d8217217.lean.js new file mode 100644 index 0000000..ebafd7c --- /dev/null +++ b/docs/assets/core_maths_geometry_diamond.md.d8217217.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Diamond","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/diamond.md","filePath":"core/maths/geometry/diamond.md","lastUpdated":1666360764000}'),o={name:"core/maths/geometry/diamond.md"},l=n("",49),t=[l];function p(i,r,c,d,h,y){return e(),s("div",null,t)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_hexagon.md.198cc7a3.js b/docs/assets/core_maths_geometry_hexagon.md.198cc7a3.js deleted file mode 100644 index b0d4648..0000000 --- a/docs/assets/core_maths_geometry_hexagon.md.198cc7a3.js +++ /dev/null @@ -1,24 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Hexagon","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/hexagon.md","lastUpdated":1665753720000}'),o={name:"core/maths/geometry/hexagon.md"},t=n(`

Hexagon

This page is about the Hexagon class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Hexagon class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Hexagon(side)

Definition

Initializes a Hexagon class from the length of its side.

Arguments

TypeNameMeaning
doublesideThe length of the side of the hexagon.

WARNING

If side ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Hexagon hexagon = new(12); // Creates a hexagon with a length of 12
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the hexagon. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Hexagon hexagon = new(12);
-
-var area = hexagon.Area;
-// area = 374.1229744348775
-

Perimeter

Definition

c#
public double Perimeter { get; }
-

The Perimeter property is a double which returns the perimeter of the hexagon. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Hexagon hexagon = new(12);
-
-var perimeter = hexagon.Perimeter;
-// perimeter = 72
-

Side

Definition

c#
public double Side { get; init; }
-

The Side property is a double which returns the length of the side of the hexagon. You can only get this property

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Hexagon hexagon = new(10);
-
-var side = hexagon.Side; // side = 10
-
`,33),l=[t];function p(r,c,i,d,h,y){return e(),s("div",null,l)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_hexagon.md.198cc7a3.lean.js b/docs/assets/core_maths_geometry_hexagon.md.198cc7a3.lean.js deleted file mode 100644 index 7559506..0000000 --- a/docs/assets/core_maths_geometry_hexagon.md.198cc7a3.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Hexagon","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/hexagon.md","lastUpdated":1665753720000}'),o={name:"core/maths/geometry/hexagon.md"},t=n("",33),l=[t];function p(r,c,i,d,h,y){return e(),s("div",null,l)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_hexagon.md.81b08bb6.js b/docs/assets/core_maths_geometry_hexagon.md.81b08bb6.js new file mode 100644 index 0000000..cc8b01d --- /dev/null +++ b/docs/assets/core_maths_geometry_hexagon.md.81b08bb6.js @@ -0,0 +1,17 @@ +import{_ as a,c as s,o as e,R as o}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Hexagon","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/hexagon.md","filePath":"core/maths/geometry/hexagon.md","lastUpdated":1665753720000}'),n={name:"core/maths/geometry/hexagon.md"},t=o(`

Hexagon

This page is about the Hexagon class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Hexagon class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Hexagon(side)

Definition

Initializes a Hexagon class from the length of its side.

Arguments

TypeNameMeaning
doublesideThe length of the side of the hexagon.

WARNING

If side ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Hexagon hexagon = new(12); // Creates a hexagon with a length of 12

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the hexagon. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Hexagon hexagon = new(12);
+
+var area = hexagon.Area;
+// area = 374.1229744348775

Perimeter

Definition

c#
public double Perimeter { get; }

The Perimeter property is a double which returns the perimeter of the hexagon. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Hexagon hexagon = new(12);
+
+var perimeter = hexagon.Perimeter;
+// perimeter = 72

Side

Definition

c#
public double Side { get; init; }

The Side property is a double which returns the length of the side of the hexagon. You can only get this property

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Hexagon hexagon = new(10);
+
+var side = hexagon.Side; // side = 10
`,33),l=[t];function p(r,c,i,d,h,y){return e(),s("div",null,l)}const F=a(n,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_hexagon.md.81b08bb6.lean.js b/docs/assets/core_maths_geometry_hexagon.md.81b08bb6.lean.js new file mode 100644 index 0000000..43492cb --- /dev/null +++ b/docs/assets/core_maths_geometry_hexagon.md.81b08bb6.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as o}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Hexagon","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/hexagon.md","filePath":"core/maths/geometry/hexagon.md","lastUpdated":1665753720000}'),n={name:"core/maths/geometry/hexagon.md"},t=o("",33),l=[t];function p(r,c,i,d,h,y){return e(),s("div",null,l)}const F=a(n,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_pyramid.md.024dce70.js b/docs/assets/core_maths_geometry_pyramid.md.024dce70.js deleted file mode 100644 index 176ce7d..0000000 --- a/docs/assets/core_maths_geometry_pyramid.md.024dce70.js +++ /dev/null @@ -1,62 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Pyramid","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/pyramid.md","lastUpdated":1665753720000}'),o={name:"core/maths/geometry/pyramid.md"},l=n(`

Pyramid

This page is about the Pyramid class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors, methods and properties.

Compatibility

The Pyramid class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Pyramid(width, length, height)

Definition

Initializes a Pyramid class from a specific width, length, and height.

Arguments

TypeNameMeaning
doublewidthThe width of the pyramid.
doublelengthThe length of the pyramid.
doubleheightThe height of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Pyramid pyramid = new(12, 10, 15); // Creates a pyramid with a width of 12, a length of 10, and a height of 15
-

Methods

FromVolumeAndSize(volume, width, length)

Definition

Initializes a Pyramid class from a specific volume, width, and length.

Arguments

TypeNameMeaning
doublevolumeThe volume of the pyramid.
doublewidthThe width of the pyramid.
doublelengthThe length of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Pyramid pyramid = Pyramid.FromVolumeAndSize(100, 10, 10);
-

FromAreaAndLength(area, length, height)

Definition

Initializes a Pyramid class from a specific area, length, and height.

Arguments

TypeNameMeaning
doubleareaThe area of the pyramid.
doublelengthThe length of the pyramid.
doubleheightThe height of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Pyramid pyramid = Pyramid.FromAreaAndLength(100, 10, 15);
-

FromAreaAndWidth(area, width, height)

Definition

Initializes a Pyramid class from a specific volume, width, and length.

Arguments

TypeNameMeaning
doubleareaThe area of the pyramid.
doublewidthThe width of the pyramid.
doubleheightThe height of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Pyramid pyramid = Pyramid.FromVolumeAndSize(100, 10, 10);
-

Properties

AreaBase

Definition

c#
public double AreaBase { get; }
-

The AreaBase property is a double which returns the area of the pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Pyramid pyramid = new(12, 10, 15);
-
-var area = pyramid.AreaBase;
-// area = 120
-

Volume

Definition

c#
public double AreaBase { get; }
-

The Volume property is a double which returns the volume of the pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Pyramid pyramid = new(12, 10, 15);
-
-var volume = pyramid.Volume;
-// volume = 600
-

LengthBase

Definition

c#
public double LengthBase { get; }
-

The LengthBase property is a double which returns the length of the base of pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Pyramid pyramid = new(12, 10, 15);
-
-var length = pyramid.LengthBase;
-// length = 10
-

WidthBase

Definition

c#
public double WidthBase { get; }
-

The WidthBase property is a double which returns the width of the base of pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Pyramid pyramid = new(12, 10, 15);
-
-var width = pyramid.WidthBase;
-// width = 12
-

Width

Definition

c#
public double Width { get; init; }
-

The Width property is a double which returns the width of the pyramid, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Pyramid pyramid = new(10, 20, 30);
-
-var width = pyramid.Width;
-// width = 10
-

Length

Definition

c#
public double Length { get; init; }
-

The Length property is a double which returns the length of the pyramid, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Pyramid pyramid = new(10, 20, 30);
-
-var length = pyramid.Length;
-// length = 20
-

Height

Definition

c#
public double Height { get; init; }
-

The Height property is a double which returns the height of the pyramid, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Pyramid pyramid = new(10, 20, 30);
-
-var height = pyramid.Height;
-// height = 30
-
`,78),t=[l];function p(r,c,i,d,h,y){return e(),s("div",null,t)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_pyramid.md.024dce70.lean.js b/docs/assets/core_maths_geometry_pyramid.md.024dce70.lean.js deleted file mode 100644 index 4067787..0000000 --- a/docs/assets/core_maths_geometry_pyramid.md.024dce70.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Pyramid","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/pyramid.md","lastUpdated":1665753720000}'),o={name:"core/maths/geometry/pyramid.md"},l=n("",78),t=[l];function p(r,c,i,d,h,y){return e(),s("div",null,t)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_pyramid.md.9bd91f3d.js b/docs/assets/core_maths_geometry_pyramid.md.9bd91f3d.js new file mode 100644 index 0000000..9c4ea92 --- /dev/null +++ b/docs/assets/core_maths_geometry_pyramid.md.9bd91f3d.js @@ -0,0 +1,44 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Pyramid","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/pyramid.md","filePath":"core/maths/geometry/pyramid.md","lastUpdated":1665753720000}'),o={name:"core/maths/geometry/pyramid.md"},l=n(`

Pyramid

This page is about the Pyramid class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors, methods and properties.

Compatibility

The Pyramid class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Pyramid(width, length, height)

Definition

Initializes a Pyramid class from a specific width, length, and height.

Arguments

TypeNameMeaning
doublewidthThe width of the pyramid.
doublelengthThe length of the pyramid.
doubleheightThe height of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Pyramid pyramid = new(12, 10, 15); // Creates a pyramid with a width of 12, a length of 10, and a height of 15

Methods

FromVolumeAndSize(volume, width, length)

Definition

Initializes a Pyramid class from a specific volume, width, and length.

Arguments

TypeNameMeaning
doublevolumeThe volume of the pyramid.
doublewidthThe width of the pyramid.
doublelengthThe length of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Pyramid pyramid = Pyramid.FromVolumeAndSize(100, 10, 10);

FromAreaAndLength(area, length, height)

Definition

Initializes a Pyramid class from a specific area, length, and height.

Arguments

TypeNameMeaning
doubleareaThe area of the pyramid.
doublelengthThe length of the pyramid.
doubleheightThe height of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Pyramid pyramid = Pyramid.FromAreaAndLength(100, 10, 15);

FromAreaAndWidth(area, width, height)

Definition

Initializes a Pyramid class from a specific volume, width, and length.

Arguments

TypeNameMeaning
doubleareaThe area of the pyramid.
doublewidthThe width of the pyramid.
doubleheightThe height of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Pyramid pyramid = Pyramid.FromVolumeAndSize(100, 10, 10);

Properties

AreaBase

Definition

c#
public double AreaBase { get; }

The AreaBase property is a double which returns the area of the pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Pyramid pyramid = new(12, 10, 15);
+
+var area = pyramid.AreaBase;
+// area = 120

Volume

Definition

c#
public double AreaBase { get; }

The Volume property is a double which returns the volume of the pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Pyramid pyramid = new(12, 10, 15);
+
+var volume = pyramid.Volume;
+// volume = 600

LengthBase

Definition

c#
public double LengthBase { get; }

The LengthBase property is a double which returns the length of the base of pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Pyramid pyramid = new(12, 10, 15);
+
+var length = pyramid.LengthBase;
+// length = 10

WidthBase

Definition

c#
public double WidthBase { get; }

The WidthBase property is a double which returns the width of the base of pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Pyramid pyramid = new(12, 10, 15);
+
+var width = pyramid.WidthBase;
+// width = 12

Width

Definition

c#
public double Width { get; init; }

The Width property is a double which returns the width of the pyramid, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Pyramid pyramid = new(10, 20, 30);
+
+var width = pyramid.Width;
+// width = 10

Length

Definition

c#
public double Length { get; init; }

The Length property is a double which returns the length of the pyramid, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Pyramid pyramid = new(10, 20, 30);
+
+var length = pyramid.Length;
+// length = 20

Height

Definition

c#
public double Height { get; init; }

The Height property is a double which returns the height of the pyramid, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Pyramid pyramid = new(10, 20, 30);
+
+var height = pyramid.Height;
+// height = 30
`,78),t=[l];function p(r,c,i,d,h,y){return e(),s("div",null,t)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_pyramid.md.9bd91f3d.lean.js b/docs/assets/core_maths_geometry_pyramid.md.9bd91f3d.lean.js new file mode 100644 index 0000000..9d4aa37 --- /dev/null +++ b/docs/assets/core_maths_geometry_pyramid.md.9bd91f3d.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Pyramid","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/pyramid.md","filePath":"core/maths/geometry/pyramid.md","lastUpdated":1665753720000}'),o={name:"core/maths/geometry/pyramid.md"},l=n("",78),t=[l];function p(r,c,i,d,h,y){return e(),s("div",null,t)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_rectangle.md.6550635b.js b/docs/assets/core_maths_geometry_rectangle.md.6550635b.js deleted file mode 100644 index 1d6e026..0000000 --- a/docs/assets/core_maths_geometry_rectangle.md.6550635b.js +++ /dev/null @@ -1,39 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Rectangle","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/rectangle.md","lastUpdated":1665754402000}'),l={name:"core/maths/geometry/rectangle.md"},o=n(`

Rectangle

This page is about the Rectangle class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Rectangle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Rectangle(width, length)

Definition

Initializes a Rectangle class from a specific length and width.

Arguments

TypeNameMeaning
doublewidthThe width of the rectangle.
doublelengthThe length of the rectangle.

WARNING

If width or length ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Rectangle rectangle = new(10, 20); // Creates a 10x20 rectangle
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the rectangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Rectangle rectangle = new(10, 15);
-
-var area = rectangle.Area;
-// area = 150
-

Perimeter

Definition

c#
public double Perimeter { get; }
-

The Perimeter property is a double which returns the perimeter of the rectangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Rectangle rectangle = new(10, 15);
-
-var perimeter = rectangle.Perimeter;
-// perimeter = 50
-

Diagonal

Definition

c#
public double Diagonal { get; }
-

The Diagonal property is a double which returns the length of the diagonal of the rectangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Rectangle rectangle = new(10, 15);
-
-var diagonal = rectangle.Diagonal;
-// diagonal = 18.027756377319946
-

Width

Definition

c#
public double Width { get; init; }
-

The Width property is a double which returns the width of the rectangle, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Rectangle rectangle = new(10, 20);
-
-var width = rectangle.Width;
-// width = 10
-

Length

Definition

c#
public double Length { get; init; }
-

The Length property is a double which returns the length of the rectangle, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Rectangle rectangle = new(10, 20);
-
-var length = rectangle.Length;
-// length = 20
-
`,45),t=[o];function p(c,r,i,d,h,y){return e(),s("div",null,t)}const F=a(l,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_rectangle.md.6550635b.lean.js b/docs/assets/core_maths_geometry_rectangle.md.6550635b.lean.js deleted file mode 100644 index 0c05521..0000000 --- a/docs/assets/core_maths_geometry_rectangle.md.6550635b.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Rectangle","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/rectangle.md","lastUpdated":1665754402000}'),l={name:"core/maths/geometry/rectangle.md"},o=n("",45),t=[o];function p(c,r,i,d,h,y){return e(),s("div",null,t)}const F=a(l,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_rectangle.md.8898003f.js b/docs/assets/core_maths_geometry_rectangle.md.8898003f.js new file mode 100644 index 0000000..cc9474b --- /dev/null +++ b/docs/assets/core_maths_geometry_rectangle.md.8898003f.js @@ -0,0 +1,28 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Rectangle","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/rectangle.md","filePath":"core/maths/geometry/rectangle.md","lastUpdated":1665754402000}'),l={name:"core/maths/geometry/rectangle.md"},o=n(`

Rectangle

This page is about the Rectangle class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Rectangle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Rectangle(width, length)

Definition

Initializes a Rectangle class from a specific length and width.

Arguments

TypeNameMeaning
doublewidthThe width of the rectangle.
doublelengthThe length of the rectangle.

WARNING

If width or length ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Rectangle rectangle = new(10, 20); // Creates a 10x20 rectangle

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the rectangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Rectangle rectangle = new(10, 15);
+
+var area = rectangle.Area;
+// area = 150

Perimeter

Definition

c#
public double Perimeter { get; }

The Perimeter property is a double which returns the perimeter of the rectangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Rectangle rectangle = new(10, 15);
+
+var perimeter = rectangle.Perimeter;
+// perimeter = 50

Diagonal

Definition

c#
public double Diagonal { get; }

The Diagonal property is a double which returns the length of the diagonal of the rectangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Rectangle rectangle = new(10, 15);
+
+var diagonal = rectangle.Diagonal;
+// diagonal = 18.027756377319946

Width

Definition

c#
public double Width { get; init; }

The Width property is a double which returns the width of the rectangle, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Rectangle rectangle = new(10, 20);
+
+var width = rectangle.Width;
+// width = 10

Length

Definition

c#
public double Length { get; init; }

The Length property is a double which returns the length of the rectangle, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Rectangle rectangle = new(10, 20);
+
+var length = rectangle.Length;
+// length = 20
`,45),t=[o];function p(r,c,i,d,h,y){return e(),s("div",null,t)}const F=a(l,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_rectangle.md.8898003f.lean.js b/docs/assets/core_maths_geometry_rectangle.md.8898003f.lean.js new file mode 100644 index 0000000..336d398 --- /dev/null +++ b/docs/assets/core_maths_geometry_rectangle.md.8898003f.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Rectangle","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/rectangle.md","filePath":"core/maths/geometry/rectangle.md","lastUpdated":1665754402000}'),l={name:"core/maths/geometry/rectangle.md"},o=n("",45),t=[o];function p(r,c,i,d,h,y){return e(),s("div",null,t)}const F=a(l,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_sphere.md.08137c99.js b/docs/assets/core_maths_geometry_sphere.md.08137c99.js new file mode 100644 index 0000000..2780531 --- /dev/null +++ b/docs/assets/core_maths_geometry_sphere.md.08137c99.js @@ -0,0 +1,18 @@ +import{_ as a,c as s,o as e,R as o}from"./chunks/framework.bdd825cc.js";const u=JSON.parse('{"title":"Sphere","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/sphere.md","filePath":"core/maths/geometry/sphere.md","lastUpdated":1665754815000}'),n={name:"core/maths/geometry/sphere.md"},t=o(`

Sphere

This page is about the Sphere class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Sphere class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Sphere(radius)

Definition

Initializes a Sphere class from a specific radius.

Arguments

TypeNameMeaning
doubleradiusThe radius of the sphere.

WARNING

If radius ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Sphere sphere = new(10); // Creates a sphere with a radius of 10

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the sphere. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Sphere sphere = new(10);
+
+var area = sphere.Area;
+// area = 1256.6370614359173

Volume

Definition

c#
public double Volume { get; }

The Volume property is a double which returns the volume of the sphere. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Sphere sphere = new(10);
+
+var volume = sphere.Volume;
+// volume = 2356.194490192345

Radius

Definition

c#
public double Radius { get; init; }

The Radius property is a double which returns the radius of the sphere, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Sphere sphere = new(10);
+
+var radius = sphere.Radius;
+// radius = 10
`,33),l=[t];function p(r,c,i,d,h,y){return e(),s("div",null,l)}const D=a(n,[["render",p]]);export{u as __pageData,D as default}; diff --git a/docs/assets/core_maths_geometry_sphere.md.08137c99.lean.js b/docs/assets/core_maths_geometry_sphere.md.08137c99.lean.js new file mode 100644 index 0000000..957b9ca --- /dev/null +++ b/docs/assets/core_maths_geometry_sphere.md.08137c99.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as o}from"./chunks/framework.bdd825cc.js";const u=JSON.parse('{"title":"Sphere","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/sphere.md","filePath":"core/maths/geometry/sphere.md","lastUpdated":1665754815000}'),n={name:"core/maths/geometry/sphere.md"},t=o("",33),l=[t];function p(r,c,i,d,h,y){return e(),s("div",null,l)}const D=a(n,[["render",p]]);export{u as __pageData,D as default}; diff --git a/docs/assets/core_maths_geometry_sphere.md.2244644b.js b/docs/assets/core_maths_geometry_sphere.md.2244644b.js deleted file mode 100644 index 42b86ef..0000000 --- a/docs/assets/core_maths_geometry_sphere.md.2244644b.js +++ /dev/null @@ -1,25 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const u=JSON.parse('{"title":"Sphere","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/sphere.md","lastUpdated":1665754815000}'),o={name:"core/maths/geometry/sphere.md"},l=n(`

Sphere

This page is about the Sphere class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Sphere class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Sphere(radius)

Definition

Initializes a Sphere class from a specific radius.

Arguments

TypeNameMeaning
doubleradiusThe radius of the sphere.

WARNING

If radius ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Sphere sphere = new(10); // Creates a sphere with a radius of 10
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the sphere. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Sphere sphere = new(10);
-
-var area = sphere.Area;
-// area = 1256.6370614359173
-

Volume

Definition

c#
public double Volume { get; }
-

The Volume property is a double which returns the volume of the sphere. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Sphere sphere = new(10);
-
-var volume = sphere.Volume;
-// volume = 2356.194490192345
-

Radius

Definition

c#
public double Radius { get; init; }
-

The Radius property is a double which returns the radius of the sphere, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Sphere sphere = new(10);
-
-var radius = sphere.Radius;
-// radius = 10
-
`,33),t=[l];function p(r,c,i,d,h,y){return e(),s("div",null,t)}const D=a(o,[["render",p]]);export{u as __pageData,D as default}; diff --git a/docs/assets/core_maths_geometry_sphere.md.2244644b.lean.js b/docs/assets/core_maths_geometry_sphere.md.2244644b.lean.js deleted file mode 100644 index 0c6751a..0000000 --- a/docs/assets/core_maths_geometry_sphere.md.2244644b.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const u=JSON.parse('{"title":"Sphere","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/sphere.md","lastUpdated":1665754815000}'),o={name:"core/maths/geometry/sphere.md"},l=n("",33),t=[l];function p(r,c,i,d,h,y){return e(),s("div",null,t)}const D=a(o,[["render",p]]);export{u as __pageData,D as default}; diff --git a/docs/assets/core_maths_geometry_triangle.md.3ece8f9a.js b/docs/assets/core_maths_geometry_triangle.md.3ece8f9a.js new file mode 100644 index 0000000..0e6a07d --- /dev/null +++ b/docs/assets/core_maths_geometry_triangle.md.3ece8f9a.js @@ -0,0 +1,56 @@ +import{_ as s,c as a,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Triangle","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/triangle.md","filePath":"core/maths/geometry/triangle.md","lastUpdated":1665755989000}'),l={name:"core/maths/geometry/triangle.md"},o=n(`

Triangle

This page is about the Triangle class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Triangle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Triangle(side1, side2, side3)

Definition

Initializes a Triangle class from the length of its sides.

Arguments

TypeNameMeaning
doubleside1The length of the first side of the triangle.
doubleside2The length of the second side of the triangle.
doubleside3The length of the third side of the triangle.

WARNING

If side1, side2, or side3 ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Triangle triangle = new(10, 20, 10); // Creates a triangle

Triangle(width, height)

Definition

Initializes a Triangle class from a width and height.

Arguments

TypeNameMeaning
doublewidthThe width of the triangle.
doubleheightThe height of the triangle.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Triangle triangle = new(10, 20); // Creates a triangle with a width of 10 and a height of 20

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the triangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Triangle triangle = new(10, 20);
+
+var area = triangle.Area;
+// area = 100

Perimeter

Definition

c#
public double Perimeter { get; }

The Perimeter property is a double which returns the perimeter of the triangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Triangle triangle = new(10, 10, 20);
+
+var perimeter = triangle.Perimeter;
+// perimeter = 40

Hypotenuse

Definition

c#
public double Hypotenuse { get; }

The Hypotenuse property is a double which returns the hypotenuse of the triangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+// Assuming the triangle is right
+Triangle triangle = new(3, 4, 5);
+
+var hypotenuse = triangle.Hypotenuse;
+// hypotenuse = 5

IsRight

Definition

c#
public bool IsRight { get; }

The IsRight property is a bool which returns true if the triangle is right. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Triangle triangle = new(3, 4, 5);
+
+var right = triangle.IsRight;
+// right = true

CanBeBuilt

Definition

c#
public bool CanBeBuilt { get; }

The CanBeBuilt property is a bool which returns true if the triangle can be built. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Triangle triangle = new(3, 4, 10);
+
+var canBeBuilt = triangle.CanBeBuilt;
+// canBeBuilt = false

Width

Definition

c#
public double Width { get; init; }

The Width property is a double which returns the width of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(width, height) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Triangle triangle = new(10, 20);
+
+var width = triangle.Width;
+// width = 10

Height

Definition

c#
public double Height { get; init; }

The Height property is a double which returns the height of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(width, height) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Triangle triangle = new(10, 20);
+
+var height = triangle.Height;
+// height = 20

Side1

Definition

c#
public double Side1 { get; init; }

The Side1 property is a double which returns the length of the first side of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(side1, side2, side3) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Triangle triangle = new(10, 20, 15);
+
+var side1 = triangle.Side1;
+// side1 = 10

Side2

Definition

c#
public double Side2 { get; init; }

The Side2 property is a double which returns the length of the second side of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(side1, side2, side3) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Triangle triangle = new(10, 20, 15);
+
+var side2 = triangle.Side2;
+// side2 = 20

Side3

Definition

c#
public double Side3 { get; init; }

The Side3 property is a double which returns the length of the third side of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(side1, side2, side3) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+
+Triangle triangle = new(10, 20, 15);
+
+var side3 = triangle.Side3;
+// side3 = 15
`,87),t=[o];function p(r,c,i,d,h,y){return e(),a("div",null,t)}const F=s(l,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_triangle.md.3ece8f9a.lean.js b/docs/assets/core_maths_geometry_triangle.md.3ece8f9a.lean.js new file mode 100644 index 0000000..5ae3278 --- /dev/null +++ b/docs/assets/core_maths_geometry_triangle.md.3ece8f9a.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Triangle","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/triangle.md","filePath":"core/maths/geometry/triangle.md","lastUpdated":1665755989000}'),l={name:"core/maths/geometry/triangle.md"},o=n("",87),t=[o];function p(r,c,i,d,h,y){return e(),a("div",null,t)}const F=s(l,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_triangle.md.b66783c6.js b/docs/assets/core_maths_geometry_triangle.md.b66783c6.js deleted file mode 100644 index fd9b587..0000000 --- a/docs/assets/core_maths_geometry_triangle.md.b66783c6.js +++ /dev/null @@ -1,78 +0,0 @@ -import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Triangle","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/triangle.md","lastUpdated":1665755989000}'),l={name:"core/maths/geometry/triangle.md"},o=e(`

Triangle

This page is about the Triangle class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Triangle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Triangle(side1, side2, side3)

Definition

Initializes a Triangle class from the length of its sides.

Arguments

TypeNameMeaning
doubleside1The length of the first side of the triangle.
doubleside2The length of the second side of the triangle.
doubleside3The length of the third side of the triangle.

WARNING

If side1, side2, or side3 ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Triangle triangle = new(10, 20, 10); // Creates a triangle
-

Triangle(width, height)

Definition

Initializes a Triangle class from a width and height.

Arguments

TypeNameMeaning
doublewidthThe width of the triangle.
doubleheightThe height of the triangle.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Triangle triangle = new(10, 20); // Creates a triangle with a width of 10 and a height of 20
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the triangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Triangle triangle = new(10, 20);
-
-var area = triangle.Area;
-// area = 100
-

Perimeter

Definition

c#
public double Perimeter { get; }
-

The Perimeter property is a double which returns the perimeter of the triangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Triangle triangle = new(10, 10, 20);
-
-var perimeter = triangle.Perimeter;
-// perimeter = 40
-

Hypotenuse

Definition

c#
public double Hypotenuse { get; }
-

The Hypotenuse property is a double which returns the hypotenuse of the triangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-// Assuming the triangle is right
-Triangle triangle = new(3, 4, 5);
-
-var hypotenuse = triangle.Hypotenuse;
-// hypotenuse = 5
-

IsRight

Definition

c#
public bool IsRight { get; }
-

The IsRight property is a bool which returns true if the triangle is right. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Triangle triangle = new(3, 4, 5);
-
-var right = triangle.IsRight;
-// right = true
-

CanBeBuilt

Definition

c#
public bool CanBeBuilt { get; }
-

The CanBeBuilt property is a bool which returns true if the triangle can be built. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Triangle triangle = new(3, 4, 10);
-
-var canBeBuilt = triangle.CanBeBuilt;
-// canBeBuilt = false
-

Width

Definition

c#
public double Width { get; init; }
-

The Width property is a double which returns the width of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(width, height) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Triangle triangle = new(10, 20);
-
-var width = triangle.Width;
-// width = 10
-

Height

Definition

c#
public double Height { get; init; }
-

The Height property is a double which returns the height of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(width, height) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Triangle triangle = new(10, 20);
-
-var height = triangle.Height;
-// height = 20
-

Side1

Definition

c#
public double Side1 { get; init; }
-

The Side1 property is a double which returns the length of the first side of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(side1, side2, side3) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Triangle triangle = new(10, 20, 15);
-
-var side1 = triangle.Side1;
-// side1 = 10
-

Side2

Definition

c#
public double Side2 { get; init; }
-

The Side2 property is a double which returns the length of the second side of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(side1, side2, side3) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Triangle triangle = new(10, 20, 15);
-
-var side2 = triangle.Side2;
-// side2 = 20
-

Side3

Definition

c#
public double Side3 { get; init; }
-

The Side3 property is a double which returns the length of the third side of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(side1, side2, side3) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
-
-Triangle triangle = new(10, 20, 15);
-
-var side3 = triangle.Side3;
-// side3 = 15
-
`,87),t=[o];function p(r,c,i,d,h,y){return n(),a("div",null,t)}const F=s(l,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_geometry_triangle.md.b66783c6.lean.js b/docs/assets/core_maths_geometry_triangle.md.b66783c6.lean.js deleted file mode 100644 index bfb603d..0000000 --- a/docs/assets/core_maths_geometry_triangle.md.b66783c6.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Triangle","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/geometry/triangle.md","lastUpdated":1665755989000}'),l={name:"core/maths/geometry/triangle.md"},o=e("",87),t=[o];function p(r,c,i,d,h,y){return n(),a("div",null,t)}const F=s(l,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_percentages.md.1feda028.js b/docs/assets/core_maths_percentages.md.1feda028.js deleted file mode 100644 index 95cd3a0..0000000 --- a/docs/assets/core_maths_percentages.md.1feda028.js +++ /dev/null @@ -1,17 +0,0 @@ -import{_ as e,c as a,o as t,Q as s}from"./chunks/framework.7addaa9c.js";const g=JSON.parse('{"title":"Percentages","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/percentages.md","lastUpdated":1666371130000}'),o={name:"core/maths/percentages.md"},n=s(`

Percentages

This page is about the Percentages class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Percentages class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

IncreaseBy(value, increaseRate)

Definition

Returns the value after an increase of x% as a double.

Arguments

TypeNameMeaning
doublevalueThe original value.
doubleincreaseRateThe increase percentage (as x/100d).

Usage

c#
using PeyrSharp.Core.Maths;
-
-double price = Percentages.IncreaseBy(100, 10/100d); // Increase the price by 10%
-// price = 110
-

DecreaseBy(value, decreaseRate)

Definition

Returns the value after a decrease of x% as a double.

Arguments

TypeNameMeaning
doublevalueThe original value.
doubledecreaseRateThe decrease percentage (as x/100d).

Usage

c#
using PeyrSharp.Core.Maths;
-
-double price = Percentages.DecreaseBy(100, 10/100d); // Decrease the price by 10%
-// price = 90
-

GetInvertedEvolutionRate(evolutionRate)

Definition

Gets the coefficient to get back to the original value after a percentage increase/decrease. It returns a double.

Arguments

TypeNameMeaning
doubleevolutionRateThe evolution rate to get the inverse of.

Usage

c#
using PeyrSharp.Core.Maths;
-
-double ev = Percentages.GetInvertedEvolutionRate(1.1);
-// ev = -0.09090909090909094
-

ProportionToPercentageString(proportion)

Definition

Formats a proportion to a string.

Arguments

TypeNameMeaning
doubleproportionThe proportion to get the percentage of.

Usage

c#
using PeyrSharp.Core.Maths;
-
-double proportion = Percentages.ProportionToPercentageString(0.5);
-// proportion = 50%
-
`,35),r=[n];function l(c,p,i,d,h,u){return t(),a("div",null,r)}const b=e(o,[["render",l]]);export{g as __pageData,b as default}; diff --git a/docs/assets/core_maths_percentages.md.1feda028.lean.js b/docs/assets/core_maths_percentages.md.1feda028.lean.js deleted file mode 100644 index 819f20f..0000000 --- a/docs/assets/core_maths_percentages.md.1feda028.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as a,o as t,Q as s}from"./chunks/framework.7addaa9c.js";const g=JSON.parse('{"title":"Percentages","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/percentages.md","lastUpdated":1666371130000}'),o={name:"core/maths/percentages.md"},n=s("",35),r=[n];function l(c,p,i,d,h,u){return t(),a("div",null,r)}const b=e(o,[["render",l]]);export{g as __pageData,b as default}; diff --git a/docs/assets/core_maths_percentages.md.dacb4442.js b/docs/assets/core_maths_percentages.md.dacb4442.js new file mode 100644 index 0000000..b6e129a --- /dev/null +++ b/docs/assets/core_maths_percentages.md.dacb4442.js @@ -0,0 +1,13 @@ +import{_ as e,c as a,o as t,R as s}from"./chunks/framework.bdd825cc.js";const g=JSON.parse('{"title":"Percentages","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/percentages.md","filePath":"core/maths/percentages.md","lastUpdated":1666371130000}'),o={name:"core/maths/percentages.md"},n=s(`

Percentages

This page is about the Percentages class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Percentages class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

IncreaseBy(value, increaseRate)

Definition

Returns the value after an increase of x% as a double.

Arguments

TypeNameMeaning
doublevalueThe original value.
doubleincreaseRateThe increase percentage (as x/100d).

Usage

c#
using PeyrSharp.Core.Maths;
+
+double price = Percentages.IncreaseBy(100, 10/100d); // Increase the price by 10%
+// price = 110

DecreaseBy(value, decreaseRate)

Definition

Returns the value after a decrease of x% as a double.

Arguments

TypeNameMeaning
doublevalueThe original value.
doubledecreaseRateThe decrease percentage (as x/100d).

Usage

c#
using PeyrSharp.Core.Maths;
+
+double price = Percentages.DecreaseBy(100, 10/100d); // Decrease the price by 10%
+// price = 90

GetInvertedEvolutionRate(evolutionRate)

Definition

Gets the coefficient to get back to the original value after a percentage increase/decrease. It returns a double.

Arguments

TypeNameMeaning
doubleevolutionRateThe evolution rate to get the inverse of.

Usage

c#
using PeyrSharp.Core.Maths;
+
+double ev = Percentages.GetInvertedEvolutionRate(1.1);
+// ev = -0.09090909090909094

ProportionToPercentageString(proportion)

Definition

Formats a proportion to a string.

Arguments

TypeNameMeaning
doubleproportionThe proportion to get the percentage of.

Usage

c#
using PeyrSharp.Core.Maths;
+
+double proportion = Percentages.ProportionToPercentageString(0.5);
+// proportion = 50%
`,35),r=[n];function l(c,p,i,d,h,u){return t(),a("div",null,r)}const b=e(o,[["render",l]]);export{g as __pageData,b as default}; diff --git a/docs/assets/core_maths_percentages.md.dacb4442.lean.js b/docs/assets/core_maths_percentages.md.dacb4442.lean.js new file mode 100644 index 0000000..7a8711d --- /dev/null +++ b/docs/assets/core_maths_percentages.md.dacb4442.lean.js @@ -0,0 +1 @@ +import{_ as e,c as a,o as t,R as s}from"./chunks/framework.bdd825cc.js";const g=JSON.parse('{"title":"Percentages","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/percentages.md","filePath":"core/maths/percentages.md","lastUpdated":1666371130000}'),o={name:"core/maths/percentages.md"},n=s("",35),r=[n];function l(c,p,i,d,h,u){return t(),a("div",null,r)}const b=e(o,[["render",l]]);export{g as __pageData,b as default}; diff --git a/docs/assets/core_maths_proba.md.267e908a.js b/docs/assets/core_maths_proba.md.267e908a.js new file mode 100644 index 0000000..beb4330 --- /dev/null +++ b/docs/assets/core_maths_proba.md.267e908a.js @@ -0,0 +1,9 @@ +import{_ as a,c as t,o as s,R as e}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Proba","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/proba.md","filePath":"core/maths/proba.md","lastUpdated":1675590267000}'),o={name:"core/maths/proba.md"},n=e(`

Proba

This page is about the Proba class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Proba class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

GetRandomValue(probabilities)

Definition

Gets a random value based on the specified probabilities. Returns a randomly selected value.

Type parameters

TypeNameMeaning
T-The type of the values to select from.

Parameters

TypeNameMeaning
Dictionary<T, double>probabilitiesA dictionary containing the probability of getting each value.

Exceptions

  • ArgumentException: Thrown if the sum of probabilities is not equal to 1.
  • Exception: Thrown if an unexpected error occurs while selecting a random value.

Usage

c#
using PeyrSharp.Core.Maths;
+
+Dictionary<string, double> probabilities = new Dictionary<string, double>
+{
+    { "Heads", 0.5 },
+    { "Tails", 0.5 }
+};
+
+string result = Proba.GetRandomValue(probabilities);
`,18),l=[n];function r(p,i,c,d,h,y){return s(),t("div",null,l)}const C=a(o,[["render",r]]);export{D as __pageData,C as default}; diff --git a/docs/assets/core_maths_proba.md.267e908a.lean.js b/docs/assets/core_maths_proba.md.267e908a.lean.js new file mode 100644 index 0000000..a728a4d --- /dev/null +++ b/docs/assets/core_maths_proba.md.267e908a.lean.js @@ -0,0 +1 @@ +import{_ as a,c as t,o as s,R as e}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Proba","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/proba.md","filePath":"core/maths/proba.md","lastUpdated":1675590267000}'),o={name:"core/maths/proba.md"},n=e("",18),l=[n];function r(p,i,c,d,h,y){return s(),t("div",null,l)}const C=a(o,[["render",r]]);export{D as __pageData,C as default}; diff --git a/docs/assets/core_maths_proba.md.8b031e1a.js b/docs/assets/core_maths_proba.md.8b031e1a.js deleted file mode 100644 index 90bd68e..0000000 --- a/docs/assets/core_maths_proba.md.8b031e1a.js +++ /dev/null @@ -1,10 +0,0 @@ -import{_ as a,c as s,o as t,Q as e}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Proba","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/proba.md","lastUpdated":1675590267000}'),o={name:"core/maths/proba.md"},n=e(`

Proba

This page is about the Proba class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Proba class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

GetRandomValue(probabilities)

Definition

Gets a random value based on the specified probabilities. Returns a randomly selected value.

Type parameters

TypeNameMeaning
T-The type of the values to select from.

Parameters

TypeNameMeaning
Dictionary<T, double>probabilitiesA dictionary containing the probability of getting each value.

Exceptions

  • ArgumentException: Thrown if the sum of probabilities is not equal to 1.
  • Exception: Thrown if an unexpected error occurs while selecting a random value.

Usage

c#
using PeyrSharp.Core.Maths;
-
-Dictionary<string, double> probabilities = new Dictionary<string, double>
-{
-    { "Heads", 0.5 },
-    { "Tails", 0.5 }
-};
-
-string result = Proba.GetRandomValue(probabilities);
-
`,18),l=[n];function r(p,i,c,d,h,y){return t(),s("div",null,l)}const C=a(o,[["render",r]]);export{D as __pageData,C as default}; diff --git a/docs/assets/core_maths_proba.md.8b031e1a.lean.js b/docs/assets/core_maths_proba.md.8b031e1a.lean.js deleted file mode 100644 index 4da20bd..0000000 --- a/docs/assets/core_maths_proba.md.8b031e1a.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as t,Q as e}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Proba","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/proba.md","lastUpdated":1675590267000}'),o={name:"core/maths/proba.md"},n=e("",18),l=[n];function r(p,i,c,d,h,y){return t(),s("div",null,l)}const C=a(o,[["render",r]]);export{D as __pageData,C as default}; diff --git a/docs/assets/core_maths_stats.md.78852ea4.js b/docs/assets/core_maths_stats.md.78852ea4.js new file mode 100644 index 0000000..3f06300 --- /dev/null +++ b/docs/assets/core_maths_stats.md.78852ea4.js @@ -0,0 +1,13 @@ +import{_ as a,c as s,o as t,R as e}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Stats","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/stats.md","filePath":"core/maths/stats.md","lastUpdated":1673177412000}'),o={name:"core/maths/stats.md"},n=e(`

Stats

This page is about the Stats class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Stats class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

Mean(values)

Definition

Returns the mean of a dataset as a double.

Arguments

TypeNameMeaning
List<double>valuesThe dataset to calculate.

Exceptions

TypeMeaning
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Core.Maths;
+
+List<double> dataset = new List<double> { 1, 2, 3, 4, 5 };
+double mean = Stats.Mean(dataset); // Calculate the mean of the dataset
+// mean = 3

Median(values)

Definition

Returns the median of a dataset as a double.

Arguments

TypeNameMeaning
List<double>valuesThe dataset to calculate.

Exceptions

TypeMeaning
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Core.Maths;
+
+List<double> dataset = new List<double> { 1, 2, 3, 4, 5 };
+double median = Stats.Median(dataset); // Calculate the median of the dataset
+// median = 3

Mode(values)

Definition

Returns the mode of a dataset as a double.

Arguments

TypeNameMeaning
List<double>valuesThe dataset to calculate.

Exceptions

TypeMeaning
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Core.Maths;
+
+List<double> dataset = new List<double> { 1, 2, 3, 3, 3, 4, 5 };
+double mode = Stats.Mode(dataset); // Calculate the mode of the dataset
+// mode = 3
`,34),l=[n];function p(r,c,d,i,h,y){return t(),s("div",null,l)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_stats.md.78852ea4.lean.js b/docs/assets/core_maths_stats.md.78852ea4.lean.js new file mode 100644 index 0000000..c4d9abd --- /dev/null +++ b/docs/assets/core_maths_stats.md.78852ea4.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as t,R as e}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Stats","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/stats.md","filePath":"core/maths/stats.md","lastUpdated":1673177412000}'),o={name:"core/maths/stats.md"},n=e("",34),l=[n];function p(r,c,d,i,h,y){return t(),s("div",null,l)}const F=a(o,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_stats.md.e317b135.js b/docs/assets/core_maths_stats.md.e317b135.js deleted file mode 100644 index 0261a7c..0000000 --- a/docs/assets/core_maths_stats.md.e317b135.js +++ /dev/null @@ -1,16 +0,0 @@ -import{_ as a,c as s,o as t,Q as e}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Stats","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/stats.md","lastUpdated":1673177412000}'),n={name:"core/maths/stats.md"},o=e(`

Stats

This page is about the Stats class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Stats class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

Mean(values)

Definition

Returns the mean of a dataset as a double.

Arguments

TypeNameMeaning
List<double>valuesThe dataset to calculate.

Exceptions

TypeMeaning
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Core.Maths;
-
-List<double> dataset = new List<double> { 1, 2, 3, 4, 5 };
-double mean = Stats.Mean(dataset); // Calculate the mean of the dataset
-// mean = 3
-

Median(values)

Definition

Returns the median of a dataset as a double.

Arguments

TypeNameMeaning
List<double>valuesThe dataset to calculate.

Exceptions

TypeMeaning
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Core.Maths;
-
-List<double> dataset = new List<double> { 1, 2, 3, 4, 5 };
-double median = Stats.Median(dataset); // Calculate the median of the dataset
-// median = 3
-

Mode(values)

Definition

Returns the mode of a dataset as a double.

Arguments

TypeNameMeaning
List<double>valuesThe dataset to calculate.

Exceptions

TypeMeaning
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Core.Maths;
-
-List<double> dataset = new List<double> { 1, 2, 3, 3, 3, 4, 5 };
-double mode = Stats.Mode(dataset); // Calculate the mode of the dataset
-// mode = 3
-
`,34),l=[o];function p(r,c,d,i,h,y){return t(),s("div",null,l)}const F=a(n,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_stats.md.e317b135.lean.js b/docs/assets/core_maths_stats.md.e317b135.lean.js deleted file mode 100644 index 53885b2..0000000 --- a/docs/assets/core_maths_stats.md.e317b135.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as t,Q as e}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Stats","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/stats.md","lastUpdated":1673177412000}'),n={name:"core/maths/stats.md"},o=e("",34),l=[o];function p(r,c,d,i,h,y){return t(),s("div",null,l)}const F=a(n,[["render",p]]);export{D as __pageData,F as default}; diff --git a/docs/assets/core_maths_trigonometry.md.408dad08.js b/docs/assets/core_maths_trigonometry.md.408dad08.js new file mode 100644 index 0000000..708d56f --- /dev/null +++ b/docs/assets/core_maths_trigonometry.md.408dad08.js @@ -0,0 +1,13 @@ +import{_ as e,c as a,o as t,R as s}from"./chunks/framework.bdd825cc.js";const u=JSON.parse('{"title":"Trigonometry","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/trigonometry.md","filePath":"core/maths/trigonometry.md","lastUpdated":1666370076000}'),o={name:"core/maths/trigonometry.md"},n=s(`

Trigonometry

This page is about the Trigonometry class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Trigonometry class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

GetOpposedSideFrom(triangleSide, angle, value)

Definition

Gets the length of the opposed side of a specific angle, from the length of either the hypotenuse or the adjacent side of the angle.

Arguments

TypeNameMeaning
TriangleSidestriangleSideThe side of the triangle.
doubleangleThe value of the angle.
doublevalueThe length of the chosen side.

WARNING

If triangleSide is equal to TriangleSides.Opposed, an Exception will be thrown.

Usage

c#
using PeyrSharp.Core.Maths;
+using PeyrSharp.Enums;
+
+double opposed = Trigonometry.GetOpposedSideFrom(TriangleSides.Adjacent, 1.05, 5);
+// opposed = 8.716576549915851

GetAdjacentSideFrom(triangleSide, angle, value)

Definition

Gets the length of the adjacent side of a specific angle, from the length of either the hypotenuse or the opposed side of the angle.

Arguments

TypeNameMeaning
TriangleSidestriangleSideThe side of the triangle.
doubleangleThe value of the angle.
doublevalueThe length of the chosen side.

WARNING

If triangleSide is equal to TriangleSides.Adjacent, an Exception will be thrown.

Usage

c#
using PeyrSharp.Core.Maths;
+using PeyrSharp.Enums;
+
+double adjacent = Trigonometry.GetAdjacentSideFrom(TriangleSides.Opposed, 1.05, 8.71);
+// adjacent = 4.996227561429541

GetHypotenuseFrom(triangleSide, angle, value)

Definition

Gets the length of the hypotenuse, from the length of either the adjacent side or the opposed side of a specific angle.

Arguments

TypeNameMeaning
TriangleSidestriangleSideThe side of the triangle.
doubleangleThe value of the angle.
doublevalueThe length of the chosen side.

WARNING

If triangleSide is equal to TriangleSides.Hypotenuse, an Exception will be thrown.

Usage

c#
using PeyrSharp.Core.Maths;
+using PeyrSharp.Enums;
+
+double hypotenuse = Trigonometry.GetHypotenuseFrom(TriangleSides.Opposed, 1.05, 8.71);
+// hypotenuse = 10.041234478169912
`,31),l=[n];function r(d,i,p,c,h,g){return t(),a("div",null,l)}const m=e(o,[["render",r]]);export{u as __pageData,m as default}; diff --git a/docs/assets/core_maths_trigonometry.md.408dad08.lean.js b/docs/assets/core_maths_trigonometry.md.408dad08.lean.js new file mode 100644 index 0000000..62c1d9c --- /dev/null +++ b/docs/assets/core_maths_trigonometry.md.408dad08.lean.js @@ -0,0 +1 @@ +import{_ as e,c as a,o as t,R as s}from"./chunks/framework.bdd825cc.js";const u=JSON.parse('{"title":"Trigonometry","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/trigonometry.md","filePath":"core/maths/trigonometry.md","lastUpdated":1666370076000}'),o={name:"core/maths/trigonometry.md"},n=s("",31),l=[n];function r(d,i,p,c,h,g){return t(),a("div",null,l)}const m=e(o,[["render",r]]);export{u as __pageData,m as default}; diff --git a/docs/assets/core_maths_trigonometry.md.6cc4354b.js b/docs/assets/core_maths_trigonometry.md.6cc4354b.js deleted file mode 100644 index 0eb46cf..0000000 --- a/docs/assets/core_maths_trigonometry.md.6cc4354b.js +++ /dev/null @@ -1,16 +0,0 @@ -import{_ as e,c as a,o as t,Q as s}from"./chunks/framework.7addaa9c.js";const u=JSON.parse('{"title":"Trigonometry","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/trigonometry.md","lastUpdated":1666370076000}'),o={name:"core/maths/trigonometry.md"},n=s(`

Trigonometry

This page is about the Trigonometry class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Trigonometry class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

GetOpposedSideFrom(triangleSide, angle, value)

Definition

Gets the length of the opposed side of a specific angle, from the length of either the hypotenuse or the adjacent side of the angle.

Arguments

TypeNameMeaning
TriangleSidestriangleSideThe side of the triangle.
doubleangleThe value of the angle.
doublevalueThe length of the chosen side.

WARNING

If triangleSide is equal to TriangleSides.Opposed, an Exception will be thrown.

Usage

c#
using PeyrSharp.Core.Maths;
-using PeyrSharp.Enums;
-
-double opposed = Trigonometry.GetOpposedSideFrom(TriangleSides.Adjacent, 1.05, 5);
-// opposed = 8.716576549915851
-

GetAdjacentSideFrom(triangleSide, angle, value)

Definition

Gets the length of the adjacent side of a specific angle, from the length of either the hypotenuse or the opposed side of the angle.

Arguments

TypeNameMeaning
TriangleSidestriangleSideThe side of the triangle.
doubleangleThe value of the angle.
doublevalueThe length of the chosen side.

WARNING

If triangleSide is equal to TriangleSides.Adjacent, an Exception will be thrown.

Usage

c#
using PeyrSharp.Core.Maths;
-using PeyrSharp.Enums;
-
-double adjacent = Trigonometry.GetAdjacentSideFrom(TriangleSides.Opposed, 1.05, 8.71);
-// adjacent = 4.996227561429541
-

GetHypotenuseFrom(triangleSide, angle, value)

Definition

Gets the length of the hypotenuse, from the length of either the adjacent side or the opposed side of a specific angle.

Arguments

TypeNameMeaning
TriangleSidestriangleSideThe side of the triangle.
doubleangleThe value of the angle.
doublevalueThe length of the chosen side.

WARNING

If triangleSide is equal to TriangleSides.Hypotenuse, an Exception will be thrown.

Usage

c#
using PeyrSharp.Core.Maths;
-using PeyrSharp.Enums;
-
-double hypotenuse = Trigonometry.GetHypotenuseFrom(TriangleSides.Opposed, 1.05, 8.71);
-// hypotenuse = 10.041234478169912
-
`,31),l=[n];function r(d,i,p,c,h,g){return t(),a("div",null,l)}const m=e(o,[["render",r]]);export{u as __pageData,m as default}; diff --git a/docs/assets/core_maths_trigonometry.md.6cc4354b.lean.js b/docs/assets/core_maths_trigonometry.md.6cc4354b.lean.js deleted file mode 100644 index 9a395fa..0000000 --- a/docs/assets/core_maths_trigonometry.md.6cc4354b.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as a,o as t,Q as s}from"./chunks/framework.7addaa9c.js";const u=JSON.parse('{"title":"Trigonometry","description":"","frontmatter":{},"headers":[],"relativePath":"core/maths/trigonometry.md","lastUpdated":1666370076000}'),o={name:"core/maths/trigonometry.md"},n=s("",31),l=[n];function r(d,i,p,c,h,g){return t(),a("div",null,l)}const m=e(o,[["render",r]]);export{u as __pageData,m as default}; diff --git a/docs/assets/core_password.md.a0242727.js b/docs/assets/core_password.md.a0242727.js new file mode 100644 index 0000000..09b7c16 --- /dev/null +++ b/docs/assets/core_password.md.a0242727.js @@ -0,0 +1,29 @@ +import{_ as s,c as a,o as e,R as t}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"Password","description":"","frontmatter":{},"headers":[],"relativePath":"core/password.md","filePath":"core/password.md","lastUpdated":1665311928000}'),n={name:"core/password.md"},o=t(`

Password

This page is about the Password class available in PeyrSharp.Core. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Password class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

GenerateAsync(length, chars, separator)

Definition

The GenerateAsync() method generates a password of a specific length, with specific characters asynchronously.

Arguments

TypeNameMeaning
intlengthThe length of the password.
stringcharactersThe characters that can be included in the password. Separated with a unique separator.
stringseparatorThe separator used to separate the specified characters.

Usage

c#
using PeyrSharp.Core;
+
+private async void Main()
+{
+    // Generate a password with 10 characters
+    string password = await Password.GenerateAsync(10, "a,b,c,d,e,f,1,2,3,4,5", ",");
+}

GenerateAsync(length, passwordPresets)

Definition

The GenerateAsync() method generates a password of a specific length, with a specific PasswordPresets asynchronously.

Arguments

TypeNameMeaning
intlengthThe length of the password.
PasswordPresetspasswordPresetsThe password preset used when generating the password

Usage

c#
using PeyrSharp.Core;
+using PeyrSharp.Enums;
+
+private async void Main()
+{
+    // Generate a password with 10 characters, using the Complex preset
+    string password = await Password.GenerateAsync(10, PasswordPresets.Complex);
+}

GenerateAsync(amount, length, chars, separator)

Definition

The GenerateAsync() method generates a specific amount of passwords with specific lengths and characters asynchronously.

Arguments

TypeNameMeaning
intamountThe amount of passwords to generate.
intlengthThe length of the password.
stringcharactersThe characters that can be included in the password. Separated with a unique separator.
stringseparatorThe separator used to separate the specified characters.

Usage

c#
using System.Collections.Generic;
+using PeyrSharp.Core;
+
+private async void Main()
+{
+    // Generate 10 passwords with 10 characters
+    List<string> passwords = await Password.GenerateAsync(10, 10, "a,b,c,d,e,f,1,2,3,4,5", ",");
+}

GenerateAsync(amount, length, passwordPresets)

Definition

The GenerateAsync() method generates a specific amount of passwords with specific lengths and PasswordPresets asynchronously.

Arguments

TypeNameMeaning
intamountThe amount of passwords to generate.
intlengthThe length of the password.
PasswordPresetspasswordPresetsThe password preset used when generating the password

Usage

c#
using System.Collections.Generic;
+using PeyrSharp.Core;
+using PeyrSharp.Enums;
+
+private async void Main()
+{
+    // Generate 10 passwords with 10 characters with the simple preset
+    List<string> passwords = await Password.GenerateAsync(10, 10, PasswordPresets.Simple);
+}
`,35),l=[o];function r(p,c,d,i,h,y){return e(),a("div",null,l)}const C=s(n,[["render",r]]);export{F as __pageData,C as default}; diff --git a/docs/assets/core_password.md.a0242727.lean.js b/docs/assets/core_password.md.a0242727.lean.js new file mode 100644 index 0000000..d6dcc56 --- /dev/null +++ b/docs/assets/core_password.md.a0242727.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as e,R as t}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"Password","description":"","frontmatter":{},"headers":[],"relativePath":"core/password.md","filePath":"core/password.md","lastUpdated":1665311928000}'),n={name:"core/password.md"},o=t("",35),l=[o];function r(p,c,d,i,h,y){return e(),a("div",null,l)}const C=s(n,[["render",r]]);export{F as __pageData,C as default}; diff --git a/docs/assets/core_password.md.a6d4fc6d.js b/docs/assets/core_password.md.a6d4fc6d.js deleted file mode 100644 index e19dad3..0000000 --- a/docs/assets/core_password.md.a6d4fc6d.js +++ /dev/null @@ -1,33 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"Password","description":"","frontmatter":{},"headers":[],"relativePath":"core/password.md","lastUpdated":1665311928000}'),t={name:"core/password.md"},o=n(`

Password

This page is about the Password class available in PeyrSharp.Core. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Password class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

GenerateAsync(length, chars, separator)

Definition

The GenerateAsync() method generates a password of a specific length, with specific characters asynchronously.

Arguments

TypeNameMeaning
intlengthThe length of the password.
stringcharactersThe characters that can be included in the password. Separated with a unique separator.
stringseparatorThe separator used to separate the specified characters.

Usage

c#
using PeyrSharp.Core;
-
-private async void Main()
-{
-    // Generate a password with 10 characters
-    string password = await Password.GenerateAsync(10, "a,b,c,d,e,f,1,2,3,4,5", ",");
-}
-

GenerateAsync(length, passwordPresets)

Definition

The GenerateAsync() method generates a password of a specific length, with a specific PasswordPresets asynchronously.

Arguments

TypeNameMeaning
intlengthThe length of the password.
PasswordPresetspasswordPresetsThe password preset used when generating the password

Usage

c#
using PeyrSharp.Core;
-using PeyrSharp.Enums;
-
-private async void Main()
-{
-    // Generate a password with 10 characters, using the Complex preset
-    string password = await Password.GenerateAsync(10, PasswordPresets.Complex);
-}
-

GenerateAsync(amount, length, chars, separator)

Definition

The GenerateAsync() method generates a specific amount of passwords with specific lengths and characters asynchronously.

Arguments

TypeNameMeaning
intamountThe amount of passwords to generate.
intlengthThe length of the password.
stringcharactersThe characters that can be included in the password. Separated with a unique separator.
stringseparatorThe separator used to separate the specified characters.

Usage

c#
using System.Collections.Generic;
-using PeyrSharp.Core;
-
-private async void Main()
-{
-    // Generate 10 passwords with 10 characters
-    List<string> passwords = await Password.GenerateAsync(10, 10, "a,b,c,d,e,f,1,2,3,4,5", ",");
-}
-

GenerateAsync(amount, length, passwordPresets)

Definition

The GenerateAsync() method generates a specific amount of passwords with specific lengths and PasswordPresets asynchronously.

Arguments

TypeNameMeaning
intamountThe amount of passwords to generate.
intlengthThe length of the password.
PasswordPresetspasswordPresetsThe password preset used when generating the password

Usage

c#
using System.Collections.Generic;
-using PeyrSharp.Core;
-using PeyrSharp.Enums;
-
-private async void Main()
-{
-    // Generate 10 passwords with 10 characters with the simple preset
-    List<string> passwords = await Password.GenerateAsync(10, 10, PasswordPresets.Simple);
-}
-
`,35),l=[o];function r(p,c,d,i,h,y){return e(),a("div",null,l)}const C=s(t,[["render",r]]);export{F as __pageData,C as default}; diff --git a/docs/assets/core_password.md.a6d4fc6d.lean.js b/docs/assets/core_password.md.a6d4fc6d.lean.js deleted file mode 100644 index b24d247..0000000 --- a/docs/assets/core_password.md.a6d4fc6d.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"Password","description":"","frontmatter":{},"headers":[],"relativePath":"core/password.md","lastUpdated":1665311928000}'),t={name:"core/password.md"},o=n("",35),l=[o];function r(p,c,d,i,h,y){return e(),a("div",null,l)}const C=s(t,[["render",r]]);export{F as __pageData,C as default}; diff --git a/docs/assets/core_statusinfo.md.58c01cc9.js b/docs/assets/core_statusinfo.md.58c01cc9.js new file mode 100644 index 0000000..59181e7 --- /dev/null +++ b/docs/assets/core_statusinfo.md.58c01cc9.js @@ -0,0 +1 @@ +import{_ as t,c as a,o as e,R as s}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"StatusInfo","description":"","frontmatter":{},"headers":[],"relativePath":"core/statusinfo.md","filePath":"core/statusinfo.md","lastUpdated":1683446294000}'),o={name:"core/statusinfo.md"},n=s('

StatusInfo

This page is about the StatusInfo class available in PeyrSharp.Core. You can find here all of its methods.

Compatibility

The StatusInfo class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Properties

StatusCode

Definition

c#
public int StatusCode { get; set; }

Gets or sets the status code that indicates the outcome of the request.

StatusDescription

Definition

c#
public string StatusDescription { get; set; }

Gets or sets the status description that provides a human-readable message of the status code.

StatusType

Definition

c#
public StatusCodes StatusType { get; set; }

Gets or sets the status type that categorizes the status code into informational, success, redirection, client error, or server error. The StatusCodes is an enumeration representing the type of HTTP status codes that can be returned.

',18),r=[n];function i(l,c,p,d,h,u){return e(),a("div",null,r)}const D=t(o,[["render",i]]);export{y as __pageData,D as default}; diff --git a/docs/assets/core_statusinfo.md.58c01cc9.lean.js b/docs/assets/core_statusinfo.md.58c01cc9.lean.js new file mode 100644 index 0000000..4c7925b --- /dev/null +++ b/docs/assets/core_statusinfo.md.58c01cc9.lean.js @@ -0,0 +1 @@ +import{_ as t,c as a,o as e,R as s}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"StatusInfo","description":"","frontmatter":{},"headers":[],"relativePath":"core/statusinfo.md","filePath":"core/statusinfo.md","lastUpdated":1683446294000}'),o={name:"core/statusinfo.md"},n=s("",18),r=[n];function i(l,c,p,d,h,u){return e(),a("div",null,r)}const D=t(o,[["render",i]]);export{y as __pageData,D as default}; diff --git a/docs/assets/enumerations.md.228604bc.js b/docs/assets/enumerations.md.228604bc.js new file mode 100644 index 0000000..38e6bfa --- /dev/null +++ b/docs/assets/enumerations.md.228604bc.js @@ -0,0 +1,68 @@ +import{_ as s,c as a,o as e,R as n}from"./chunks/framework.bdd825cc.js";const h=JSON.parse('{"title":"Enumerations","description":"","frontmatter":{},"headers":[],"relativePath":"enumerations.md","filePath":"enumerations.md","lastUpdated":1680429306000}'),t={name:"enumerations.md"},o=n(`

Enumerations

This page is about the enumerations available in PeyrSharp.Enums. They are grouped by category.

Compatibility

Enumerations are part of the PeyrSharp.Enums module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Enums
Framework.NET 5.NET 6.NET 7
Enums

Converters

StorageUnits

Definition

The StorageUnits enumeration represents all possible numeric storage units. It contains the following values:

ValueNameMeaning
0ByteThe byte unit. (b)
1KilobyteThe kilobyte unit. (kb)
2MegabyteThe megabyte unit. (mb)
3GigabyteThe gigabyte unit. (gb)
4TerabyteThe terabyte unit. (tb)
5PetabyteThe petabyte unit. (pb)

Example

c#
public static double ToPetabyte(double value, StorageUnits unit)
+{
+    if (unit == StorageUnits.Terabyte)
+    {
+        return value / 1000d;
+    }
+}

TimeUnits

Definition

The TimeUnits enumeration represents all possible time units, such as seconds, minutes, etc. A more detailed table on all the values available:

ValueNameMeaning
0MillisecondsRepresents milliseconds.
1SecondsRepresents seconds.
2MinutesRepresents minutes.
3HoursRepresents hours.
4DaysRepresents days.

Example

c#
public static double ToSeconds(double value, TimeUnits unit)
+{
+    if (unit == TimeUnits.Minutes)
+    {
+        return value * 60;
+    }
+}

Environment

LogLevel

Definition

The LogLevel enumeration specifies the severity level of a log message. It contains several values:

ValueNameMeaning
0DebugDebug-level messages provide verbose information for debugging purposes.
1InfoInfo-level messages provide informational messages about the application's state.
2WarningWarning-level messages indicate a potential problem or non-critical issue.
3ErrorError-level messages indicate an error has occurred in the application.
4CriticalCritical-level messages indicate a critical error has occurred that requires immediate attention.
5MiscMisc-level messages are for miscellaneous use cases and are not defined in the logging specification.

Example

c#
using PeyrSharp.Enums;
+using PeyrSharp.Env;
+
+string message = "This is a log message.";
+string filePath = @"C:\\Logs\\log.txt";
+DateTime date = DateTime.Now;
+LogLevel logLevel = LogLevel.Warning;
+
+Logger.Log(message, filePath, date, logLevel);

More info here about the example

OperatingSystems

Definition

The OperatingSystems enumerations represents all possible operating systems that a .NET program could run on. It contains several values:

ValueNameMeaning
0WindowsThe Microsoft Windows Operating System.
1macOSThe Apple macOS Operating System.
2LinuxA Linux-based Operating System.
3UnknownAn unknown Operating System.

Example

c#
if (Env.CurrentOs == OperatingSystems.Windows)
+{
+    //Do something if the OS is Windows
+}

SystemThemes

Definition

The SystemThemes enumerations represents all themes available on a Windows device. It contains several values:

ValueNameMeaning
0DarkThe user is using dark theme.
1LightThe user is using light theme.
2UnknownThe current theme is unknown.

Example

c#
if (GetCurrentTheme() == SystemThemes.Dark)
+{
+    Console.WriteLine("You have dark theme enabled!");
+}

WindowsVersion

Definition

The WindowsVersion enumerations represents all possible Windows versions supported by .NET, which means all version from Windows 7 to 11. It contains several values:

ValueNameMeaning
0Windows7The Windows 7 (NT 6.1) Operating System.
1Windows8The Windows 8 (NT 6.2) Operating System.
2Windows81The Windows 8.1 (NT 6.3) Operating System.
3Windows10The Windows 10 (NT 10.0) Operating System.
4Windows11The Windows 11 (NT 10.0, Build 22000+) Operating System.

Example

c#
public bool DarkThemeAvailable => Env.CurrentWindowsVersion == WindowsVersion.Windows10 || Env.CurrentWindowsVersion == WindowsVersion.Windows11;

Geometry

TriangleSides

Definition

The TriangleSides enumeration represents the different sides of a triangle: hypotenuse, adjacent, and opposite. It contains these values:

ValueNameMeaning
0OpposedThe opposed side of a specific angle of a triangle.
1HypotenuseThe hypotenuse of a triangle.
2AdjacentThe adjacent side of a specific angle of a triangle.

Example

c#
// Get the adjacent side from the opposed side of a specific angle.
+Trigonometry.GetAdjacentSideFrom(TriangleSides.Opposed, 20);

Internet

StatusCodes

Definition

The StatusCodes enumeration represents the different kinds of status codes returned by a server after a request is made to it. The following status codes are available in this enumeration:

ValueNameMeaning
0InformationalInformational responses (100-199)
1SuccessSuccessful responses (200-299)
2RedirectionRedirection messages (300-399)
3ClientErrorClient error responses (400-499)
4ServerErrorServer error responses (500-599)

Example

c#
status = GetRequestStatus();
+
+switch (status)
+{
+    case StatusCodes.Informational:
+        Console.WriteLine("An information status code has been returned.");
+        break;
+    case StatusCodes.Success:
+        Console.WriteLine("An successful status code has been returned.");
+        break;
+    case StatusCodes.Redirection:
+        Console.WriteLine("An redirection status code has been returned.");
+        break;
+    case StatusCodes.ClientError:
+        Console.WriteLine("An client error status code has been returned.");
+        break;
+    case StatusCodes.ServerError:
+        Console.WriteLine("An server error status code has been returned.");
+        break;
+}

Password

PasswordPresets

Definition

The PasswordPresets enumeration represents all the of the presets available when generating a password using the Password class of PeyrSharp.Core. It has two values:

ValueNameMeaning
0SimpleThe Simple preset generates a password with simple characters.
1ComplexThe Complex preset generates a password with unusual, hard and complex characters.

Example

c#
private async void Main()
+{
+    string password = Password.GenerateAsync(10, PasswordPresets.Simple); // Generate a simple password
+}

PasswordStrength

Definition

The PasswordStrength enumeration represents different strength levels of a password; if it's a strong or weak password. It contains these values:

ValueNameMeaning
0LowThe password has a low strength; you shouldn't use it.
1MediumThe password has a medium strength; don't use it on important websites.
2GoodThe password has a good strength; you can safely use it.
3VeryGoodThe password has an excellent strength, meaning it will be hard for hackers to hack it.

Example

c#
internal async void Main()
+{
+    // Check if the generated password is complex
+    if (Password.GetStrength(await Password.GenerateAsync(15, PasswordPresets.Complex)) == PasswordStrength.Medium)
+    {
+        Console.WriteLine("The password isn't complex enough.");
+    }
+}

UserInterface

ControlAlignment

Definition

The ControlAlignment enumeration is here to help align a control when calling methods from the UiHelpers namespace. It has the following values:

ValueNameMeaning
0HorizontalThe control will be aligned/centered horizontally.
1VerticalThe control will be aligned/centered vertically.
2BothThe control will be aligned/centered horizontally and vertically.

Example

c#
using PeyrSharp.UiHelpers;
+
+namespace App
+{
+    public partial class MyForm : Form
+    {
+        private void button1_Click(object sender, EventArgs e)
+        {
+            WinFormsHelpers.CenterControl(button1, this, ControlAlignment.Horizontal);
+        }
+    }
+}
`,78),l=[o];function p(r,c,i,d,D,y){return e(),a("div",null,l)}const C=s(t,[["render",p]]);export{h as __pageData,C as default}; diff --git a/docs/assets/enumerations.md.228604bc.lean.js b/docs/assets/enumerations.md.228604bc.lean.js new file mode 100644 index 0000000..5d3fd7e --- /dev/null +++ b/docs/assets/enumerations.md.228604bc.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as e,R as n}from"./chunks/framework.bdd825cc.js";const h=JSON.parse('{"title":"Enumerations","description":"","frontmatter":{},"headers":[],"relativePath":"enumerations.md","filePath":"enumerations.md","lastUpdated":1680429306000}'),t={name:"enumerations.md"},o=n("",78),l=[o];function p(r,c,i,d,D,y){return e(),a("div",null,l)}const C=s(t,[["render",p]]);export{h as __pageData,C as default}; diff --git a/docs/assets/enumerations.md.3eb0b411.js b/docs/assets/enumerations.md.3eb0b411.js deleted file mode 100644 index e5f3c53..0000000 --- a/docs/assets/enumerations.md.3eb0b411.js +++ /dev/null @@ -1,79 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const h=JSON.parse('{"title":"Enumerations","description":"","frontmatter":{},"headers":[],"relativePath":"enumerations.md","lastUpdated":1680429306000}'),t={name:"enumerations.md"},o=n(`

Enumerations

This page is about the enumerations available in PeyrSharp.Enums. They are grouped by category.

Compatibility

Enumerations are part of the PeyrSharp.Enums module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Enums
Framework.NET 5.NET 6.NET 7
Enums

Converters

StorageUnits

Definition

The StorageUnits enumeration represents all possible numeric storage units. It contains the following values:

ValueNameMeaning
0ByteThe byte unit. (b)
1KilobyteThe kilobyte unit. (kb)
2MegabyteThe megabyte unit. (mb)
3GigabyteThe gigabyte unit. (gb)
4TerabyteThe terabyte unit. (tb)
5PetabyteThe petabyte unit. (pb)

Example

c#
public static double ToPetabyte(double value, StorageUnits unit)
-{
-    if (unit == StorageUnits.Terabyte)
-    {
-        return value / 1000d;
-    }
-}
-

TimeUnits

Definition

The TimeUnits enumeration represents all possible time units, such as seconds, minutes, etc. A more detailed table on all the values available:

ValueNameMeaning
0MillisecondsRepresents milliseconds.
1SecondsRepresents seconds.
2MinutesRepresents minutes.
3HoursRepresents hours.
4DaysRepresents days.

Example

c#
public static double ToSeconds(double value, TimeUnits unit)
-{
-    if (unit == TimeUnits.Minutes)
-    {
-        return value * 60;
-    }
-}
-

Environment

LogLevel

Definition

The LogLevel enumeration specifies the severity level of a log message. It contains several values:

ValueNameMeaning
0DebugDebug-level messages provide verbose information for debugging purposes.
1InfoInfo-level messages provide informational messages about the application's state.
2WarningWarning-level messages indicate a potential problem or non-critical issue.
3ErrorError-level messages indicate an error has occurred in the application.
4CriticalCritical-level messages indicate a critical error has occurred that requires immediate attention.
5MiscMisc-level messages are for miscellaneous use cases and are not defined in the logging specification.

Example

c#
using PeyrSharp.Enums;
-using PeyrSharp.Env;
-
-string message = "This is a log message.";
-string filePath = @"C:\\Logs\\log.txt";
-DateTime date = DateTime.Now;
-LogLevel logLevel = LogLevel.Warning;
-
-Logger.Log(message, filePath, date, logLevel);
-

More info here about the example

OperatingSystems

Definition

The OperatingSystems enumerations represents all possible operating systems that a .NET program could run on. It contains several values:

ValueNameMeaning
0WindowsThe Microsoft Windows Operating System.
1macOSThe Apple macOS Operating System.
2LinuxA Linux-based Operating System.
3UnknownAn unknown Operating System.

Example

c#
if (Env.CurrentOs == OperatingSystems.Windows)
-{
-    //Do something if the OS is Windows
-}
-

SystemThemes

Definition

The SystemThemes enumerations represents all themes available on a Windows device. It contains several values:

ValueNameMeaning
0DarkThe user is using dark theme.
1LightThe user is using light theme.
2UnknownThe current theme is unknown.

Example

c#
if (GetCurrentTheme() == SystemThemes.Dark)
-{
-    Console.WriteLine("You have dark theme enabled!");
-}
-

WindowsVersion

Definition

The WindowsVersion enumerations represents all possible Windows versions supported by .NET, which means all version from Windows 7 to 11. It contains several values:

ValueNameMeaning
0Windows7The Windows 7 (NT 6.1) Operating System.
1Windows8The Windows 8 (NT 6.2) Operating System.
2Windows81The Windows 8.1 (NT 6.3) Operating System.
3Windows10The Windows 10 (NT 10.0) Operating System.
4Windows11The Windows 11 (NT 10.0, Build 22000+) Operating System.

Example

c#
public bool DarkThemeAvailable => Env.CurrentWindowsVersion == WindowsVersion.Windows10 || Env.CurrentWindowsVersion == WindowsVersion.Windows11;
-

Geometry

TriangleSides

Definition

The TriangleSides enumeration represents the different sides of a triangle: hypotenuse, adjacent, and opposite. It contains these values:

ValueNameMeaning
0OpposedThe opposed side of a specific angle of a triangle.
1HypotenuseThe hypotenuse of a triangle.
2AdjacentThe adjacent side of a specific angle of a triangle.

Example

c#
// Get the adjacent side from the opposed side of a specific angle.
-Trigonometry.GetAdjacentSideFrom(TriangleSides.Opposed, 20);
-

Internet

StatusCodes

Definition

The StatusCodes enumeration represents the different kinds of status codes returned by a server after a request is made to it. The following status codes are available in this enumeration:

ValueNameMeaning
0InformationalInformational responses (100-199)
1SuccessSuccessful responses (200-299)
2RedirectionRedirection messages (300-399)
3ClientErrorClient error responses (400-499)
4ServerErrorServer error responses (500-599)

Example

c#
status = GetRequestStatus();
-
-switch (status)
-{
-    case StatusCodes.Informational:
-        Console.WriteLine("An information status code has been returned.");
-        break;
-    case StatusCodes.Success:
-        Console.WriteLine("An successful status code has been returned.");
-        break;
-    case StatusCodes.Redirection:
-        Console.WriteLine("An redirection status code has been returned.");
-        break;
-    case StatusCodes.ClientError:
-        Console.WriteLine("An client error status code has been returned.");
-        break;
-    case StatusCodes.ServerError:
-        Console.WriteLine("An server error status code has been returned.");
-        break;
-}
-

Password

PasswordPresets

Definition

The PasswordPresets enumeration represents all the of the presets available when generating a password using the Password class of PeyrSharp.Core. It has two values:

ValueNameMeaning
0SimpleThe Simple preset generates a password with simple characters.
1ComplexThe Complex preset generates a password with unusual, hard and complex characters.

Example

c#
private async void Main()
-{
-    string password = Password.GenerateAsync(10, PasswordPresets.Simple); // Generate a simple password
-}
-

PasswordStrength

Definition

The PasswordStrength enumeration represents different strength levels of a password; if it's a strong or weak password. It contains these values:

ValueNameMeaning
0LowThe password has a low strength; you shouldn't use it.
1MediumThe password has a medium strength; don't use it on important websites.
2GoodThe password has a good strength; you can safely use it.
3VeryGoodThe password has an excellent strength, meaning it will be hard for hackers to hack it.

Example

c#
internal async void Main()
-{
-    // Check if the generated password is complex
-    if (Password.GetStrength(await Password.GenerateAsync(15, PasswordPresets.Complex)) == PasswordStrength.Medium)
-    {
-        Console.WriteLine("The password isn't complex enough.");
-    }
-}
-

UserInterface

ControlAlignment

Definition

The ControlAlignment enumeration is here to help align a control when calling methods from the UiHelpers namespace. It has the following values:

ValueNameMeaning
0HorizontalThe control will be aligned/centered horizontally.
1VerticalThe control will be aligned/centered vertically.
2BothThe control will be aligned/centered horizontally and vertically.

Example

c#
using PeyrSharp.UiHelpers;
-
-namespace App
-{
-    public partial class MyForm : Form
-    {
-        private void button1_Click(object sender, EventArgs e)
-        {
-            WinFormsHelpers.CenterControl(button1, this, ControlAlignment.Horizontal);
-        }
-    }
-}
-
`,78),l=[o];function p(r,c,i,d,D,y){return e(),a("div",null,l)}const C=s(t,[["render",p]]);export{h as __pageData,C as default}; diff --git a/docs/assets/enumerations.md.3eb0b411.lean.js b/docs/assets/enumerations.md.3eb0b411.lean.js deleted file mode 100644 index bc57561..0000000 --- a/docs/assets/enumerations.md.3eb0b411.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const h=JSON.parse('{"title":"Enumerations","description":"","frontmatter":{},"headers":[],"relativePath":"enumerations.md","lastUpdated":1680429306000}'),t={name:"enumerations.md"},o=n("",78),l=[o];function p(r,c,i,d,D,y){return e(),a("div",null,l)}const C=s(t,[["render",p]]);export{h as __pageData,C as default}; diff --git a/docs/assets/env.md.94b1d70a.js b/docs/assets/env.md.94b1d70a.js deleted file mode 100644 index e631178..0000000 --- a/docs/assets/env.md.94b1d70a.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as a,Q as o}from"./chunks/framework.7addaa9c.js";const f=JSON.parse('{"title":"Env","description":"","frontmatter":{},"headers":[],"relativePath":"env.md","lastUpdated":1673089222000}'),s={name:"env.md"},r=o('

Env

This page is about the PeyrSharp.Env module.

Compatibility

The PeyrSharp.Env module is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env⚠️⚠️
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Classes

',8),l=[r];function d(i,n,h,c,m,p){return a(),e("div",null,l)}const v=t(s,[["render",d]]);export{f as __pageData,v as default}; diff --git a/docs/assets/env.md.94b1d70a.lean.js b/docs/assets/env.md.94b1d70a.lean.js deleted file mode 100644 index e4256e7..0000000 --- a/docs/assets/env.md.94b1d70a.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as a,Q as o}from"./chunks/framework.7addaa9c.js";const f=JSON.parse('{"title":"Env","description":"","frontmatter":{},"headers":[],"relativePath":"env.md","lastUpdated":1673089222000}'),s={name:"env.md"},r=o("",8),l=[r];function d(i,n,h,c,m,p){return a(),e("div",null,l)}const v=t(s,[["render",d]]);export{f as __pageData,v as default}; diff --git a/docs/assets/env.md.e3c69ff8.js b/docs/assets/env.md.e3c69ff8.js new file mode 100644 index 0000000..a604ea5 --- /dev/null +++ b/docs/assets/env.md.e3c69ff8.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as a,R as o}from"./chunks/framework.bdd825cc.js";const f=JSON.parse('{"title":"Env","description":"","frontmatter":{},"headers":[],"relativePath":"env.md","filePath":"env.md","lastUpdated":1673089222000}'),s={name:"env.md"},r=o('

Env

This page is about the PeyrSharp.Env module.

Compatibility

The PeyrSharp.Env module is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env⚠️⚠️
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Classes

',8),l=[r];function d(i,n,h,c,m,p){return a(),e("div",null,l)}const v=t(s,[["render",d]]);export{f as __pageData,v as default}; diff --git a/docs/assets/env.md.e3c69ff8.lean.js b/docs/assets/env.md.e3c69ff8.lean.js new file mode 100644 index 0000000..2a817ba --- /dev/null +++ b/docs/assets/env.md.e3c69ff8.lean.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as a,R as o}from"./chunks/framework.bdd825cc.js";const f=JSON.parse('{"title":"Env","description":"","frontmatter":{},"headers":[],"relativePath":"env.md","filePath":"env.md","lastUpdated":1673089222000}'),s={name:"env.md"},r=o("",8),l=[r];function d(i,n,h,c,m,p){return a(),e("div",null,l)}const v=t(s,[["render",d]]);export{f as __pageData,v as default}; diff --git a/docs/assets/env_filesys.md.396c4c37.js b/docs/assets/env_filesys.md.396c4c37.js deleted file mode 100644 index 7ce0a0b..0000000 --- a/docs/assets/env_filesys.md.396c4c37.js +++ /dev/null @@ -1,96 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"FileSys","description":"","frontmatter":{},"headers":[],"relativePath":"env/filesys.md","lastUpdated":1675590267000}'),t={name:"env/filesys.md"},o=n(`

FileSys

This page is about the FileSys class available in PeyrSharp.Env. You can find here all of its methods and properties.

INFO

This class is static.

Compatibility

The FileSys class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

GetAvailableSpace(drive, unit)

Definition

Gets the amount of available storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
stringdriveThe drive letter or name to get the amount of available space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
-using PeyrSharp.Env;
-
-double space = FileSys.GetAvailableSpace("C:/", StorageUnits.Gigabyte);
-

GetAvailableSpace(driveInfo, unit)

Definition

Gets the amount of available storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
DriveInfodriveInfoThe DriveInfo object to get the amount of available space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
-using PeyrSharp.Env;
-
-double space = FileSys.GetAvailableSpace(new DriveInfo("C:/"), StorageUnits.Gigabyte);
-

GetOccupiedSpace(drive, unit)

Definition

Gets the amount of occupied storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
stringdriveThe drive letter or name to get the amount of occupied space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
-using PeyrSharp.Env;
-
-double occupiedSpace = FileSys.GetOccupiedSpace("C:/", StorageUnits.Gigabyte);
-

GetOccupiedSpace(driveInfo, unit)

Definition

Gets the amount of occupied storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
DriveInfodriveInfoThe DriveInfo object to get the amount of occupied space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
-using PeyrSharp.Env;
-
-double occupiedSpace = FileSys.GetOccupiedSpace(new DriveInfo("C:/"), StorageUnits.Gigabyte);
-

GetTotalSpace(drive, unit)

Definition

Gets the total amount of space on a specified drive. It returns double.

Arguments

TypeNameMeaning
stringdriveThe drive letter or name to get the amount of total space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
-using PeyrSharp.Env;
-
-double occupiedSpace = FileSys.GetTotalSpace("C:/", StorageUnits.Gigabyte);
-

GetTotalSpace(driveInfo, unit)

Definition

Gets the total amount of space on a specified drive. It returns double.

Arguments

TypeNameMeaning
DriveInfodriveInfoThe DriveInfo object to get the amount of total space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
-using PeyrSharp.Env;
-
-double total = FileSys.GetTotalSpace(new DriveInfo("C:/"), StorageUnits.Gigabyte);
-

CountFileCharactersAsync(fileName)

Definition

Counts the number of characters in specified file asynchronously. It returns an int.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringfileNameThe file path of the file.

Usage

c#
using PeyrSharp.Env;
-
-public static async Task ExampleAsync()
-{
-    // Write some text in a file
-    string text = "Hello, World!";
-    await File.WriteAllTextAsync("Hello.txt", text);
-
-    // Count the number of characters
-    int chars = await FileSys.CountFileCharactersAsync("Hello.txt");
-
-    // chars = 13
-}
-

CanWriteFile(filePath)

Definition

Checks if your program has the permission to write a file in a specific directory. It returns a bool; true if you can write/edit the specified directory.

Arguments

TypeNameMeaning
stringfilePathThe path to the directory.

Usage

c#
using PeyrSharp.Env;
-
-if (FileSys.CanWriteFile(@"C:\\Windows"))
-{
-    Console.WriteLine("You have permission to edit in this folder.");
-}
-else
-{
-    Console.WriteLine("You do not have permission to edit in this folder.");
-}
-

IsDriveOpticalDrive(driveInfo)

Available in version 1.1 and higher.

Definition

Checks if the specified drive is an optical drive, such as CD-ROM or DVD. It returns a bool; true if the drive is an optical drive.

Arguments

TypeNameMeaning
stringdriveInfoThe drive to check.

Usage

c#
using PeyrSharp.Env;
-
-if (FileSys.IsOpticalDrive(new(@"E:\\")))
-{
-    Console.WriteLine("Drive E:/ is an optical drive")
-}
-

GetDriveStorageUnit(driveInfo)

Available in version 1.1 and higher.

Definition

Gets the appropriate StorageUnits to use depending of the total size of the drive. It returns a StorageUnits value.

Arguments

TypeNameMeaning
stringdriveInfoThe drive to get the unit of.

Usage

c#
using PeyrSharp.Env;
-
-var unit = FileSys.GetDriveStorageUnit(@"C:\\");
-
-string message = unit switch
-{
-    StorageUnits.Gigabyte => "The drive unit is in gigabytes",
-    StorageUnits.Terabyte => "The drive unit is in terabytes",
-    StorageUnits.Petabyte => "The drive unit is in petabytes",
-    _ => "Unknown size unit"
-}
-
-Console.WriteLine(message);
-

Properties

AppDataPath

Definition

c#
public static string AppDataPath { get; }
-

The AppDataPath property gets the %APPDATA% path. You can only get this property.

Usage

c#
using PeyrSharp.Env;
-
-string appdata = FileSys.AppDataPath;
-

CurrentAppDirectory

Available in version 1.1 and higher.

Definition

c#
public static string CurrentAppDirectory { get; }
-

The CurrentAppDirectory property gets the path where is located the executable file that is currently running. You can only get this property.

Usage

c#
using PeyrSharp.Env;
-
-string dir = FileSys.CurrentAppDirectory;
-

DriveWithHighestFreeSpace

Available in version 1.1 and higher.

Definition

c#
public static DriveInfo DriveWithHighestFreeSpace { get; }
-

The DriveWithHighestFreeSpace property gets the drive with the highest free space available. You can only get this property.

Usage

c#
using System.IO;
-using PeyrSharp.Env;
-
-DriveInfo highest = FileSys.DriveWithHighestFreeSpace;
-

DriveWithLowestFreeSpace

Available in version 1.1 and higher.

Definition

c#
public static DriveInfo DriveWithLowestFreeSpace { get; }
-

The DriveWithLowestFreeSpace property gets the drive with the lowest free space available. You can only get this property.

Usage

c#
using System.IO;
-using PeyrSharp.Env;
-
-DriveInfo lowest = FileSys.DriveWithLowestFreeSpace;
-

SystemDrive

Definition

c#
[SupportedOSPlatform("windows")]
-public static DriveInfo SystemDrive { get; }
-

The SystemDrive property gets the system drive, where Windows is installed. You can only get this property.

DANGER

This property only works on Windows! It will return a default value if you run it on a different platform.

Usage

c#
using PeyrSharp.Env;
-
-DriveInfo sys = FileSys.SystemDrive;
-

CurrentDirectory

Definition

Gets the current directory of the application. Returns a string representing the full path of the current directory.

Usage

c#
using PeyrSharp.Env;
-
-string currentDirectory = FileSys.CurrentDirectory;
-

ComputerName

Definition

Returns the name of the current computer as a string.

Usage

c#
using PeyrSharp.Env;
-
-string computerName = FileSys.ComputerName;
-
`,126),l=[o];function p(r,i,c,d,D,y){return e(),s("div",null,l)}const u=a(t,[["render",p]]);export{F as __pageData,u as default}; diff --git a/docs/assets/env_filesys.md.396c4c37.lean.js b/docs/assets/env_filesys.md.396c4c37.lean.js deleted file mode 100644 index 6ec5dca..0000000 --- a/docs/assets/env_filesys.md.396c4c37.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"FileSys","description":"","frontmatter":{},"headers":[],"relativePath":"env/filesys.md","lastUpdated":1675590267000}'),t={name:"env/filesys.md"},o=n("",126),l=[o];function p(r,i,c,d,D,y){return e(),s("div",null,l)}const u=a(t,[["render",p]]);export{F as __pageData,u as default}; diff --git a/docs/assets/env_filesys.md.f048a5fa.js b/docs/assets/env_filesys.md.f048a5fa.js new file mode 100644 index 0000000..1e3f962 --- /dev/null +++ b/docs/assets/env_filesys.md.f048a5fa.js @@ -0,0 +1,74 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"FileSys","description":"","frontmatter":{},"headers":[],"relativePath":"env/filesys.md","filePath":"env/filesys.md","lastUpdated":1675590267000}'),t={name:"env/filesys.md"},o=n(`

FileSys

This page is about the FileSys class available in PeyrSharp.Env. You can find here all of its methods and properties.

INFO

This class is static.

Compatibility

The FileSys class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

GetAvailableSpace(drive, unit)

Definition

Gets the amount of available storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
stringdriveThe drive letter or name to get the amount of available space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
+using PeyrSharp.Env;
+
+double space = FileSys.GetAvailableSpace("C:/", StorageUnits.Gigabyte);

GetAvailableSpace(driveInfo, unit)

Definition

Gets the amount of available storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
DriveInfodriveInfoThe DriveInfo object to get the amount of available space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
+using PeyrSharp.Env;
+
+double space = FileSys.GetAvailableSpace(new DriveInfo("C:/"), StorageUnits.Gigabyte);

GetOccupiedSpace(drive, unit)

Definition

Gets the amount of occupied storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
stringdriveThe drive letter or name to get the amount of occupied space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
+using PeyrSharp.Env;
+
+double occupiedSpace = FileSys.GetOccupiedSpace("C:/", StorageUnits.Gigabyte);

GetOccupiedSpace(driveInfo, unit)

Definition

Gets the amount of occupied storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
DriveInfodriveInfoThe DriveInfo object to get the amount of occupied space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
+using PeyrSharp.Env;
+
+double occupiedSpace = FileSys.GetOccupiedSpace(new DriveInfo("C:/"), StorageUnits.Gigabyte);

GetTotalSpace(drive, unit)

Definition

Gets the total amount of space on a specified drive. It returns double.

Arguments

TypeNameMeaning
stringdriveThe drive letter or name to get the amount of total space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
+using PeyrSharp.Env;
+
+double occupiedSpace = FileSys.GetTotalSpace("C:/", StorageUnits.Gigabyte);

GetTotalSpace(driveInfo, unit)

Definition

Gets the total amount of space on a specified drive. It returns double.

Arguments

TypeNameMeaning
DriveInfodriveInfoThe DriveInfo object to get the amount of total space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
+using PeyrSharp.Env;
+
+double total = FileSys.GetTotalSpace(new DriveInfo("C:/"), StorageUnits.Gigabyte);

CountFileCharactersAsync(fileName)

Definition

Counts the number of characters in specified file asynchronously. It returns an int.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringfileNameThe file path of the file.

Usage

c#
using PeyrSharp.Env;
+
+public static async Task ExampleAsync()
+{
+    // Write some text in a file
+    string text = "Hello, World!";
+    await File.WriteAllTextAsync("Hello.txt", text);
+
+    // Count the number of characters
+    int chars = await FileSys.CountFileCharactersAsync("Hello.txt");
+
+    // chars = 13
+}

CanWriteFile(filePath)

Definition

Checks if your program has the permission to write a file in a specific directory. It returns a bool; true if you can write/edit the specified directory.

Arguments

TypeNameMeaning
stringfilePathThe path to the directory.

Usage

c#
using PeyrSharp.Env;
+
+if (FileSys.CanWriteFile(@"C:\\Windows"))
+{
+    Console.WriteLine("You have permission to edit in this folder.");
+}
+else
+{
+    Console.WriteLine("You do not have permission to edit in this folder.");
+}

IsDriveOpticalDrive(driveInfo)

Available in version 1.1 and higher.

Definition

Checks if the specified drive is an optical drive, such as CD-ROM or DVD. It returns a bool; true if the drive is an optical drive.

Arguments

TypeNameMeaning
stringdriveInfoThe drive to check.

Usage

c#
using PeyrSharp.Env;
+
+if (FileSys.IsOpticalDrive(new(@"E:\\")))
+{
+    Console.WriteLine("Drive E:/ is an optical drive")
+}

GetDriveStorageUnit(driveInfo)

Available in version 1.1 and higher.

Definition

Gets the appropriate StorageUnits to use depending of the total size of the drive. It returns a StorageUnits value.

Arguments

TypeNameMeaning
stringdriveInfoThe drive to get the unit of.

Usage

c#
using PeyrSharp.Env;
+
+var unit = FileSys.GetDriveStorageUnit(@"C:\\");
+
+string message = unit switch
+{
+    StorageUnits.Gigabyte => "The drive unit is in gigabytes",
+    StorageUnits.Terabyte => "The drive unit is in terabytes",
+    StorageUnits.Petabyte => "The drive unit is in petabytes",
+    _ => "Unknown size unit"
+}
+
+Console.WriteLine(message);

Properties

AppDataPath

Definition

c#
public static string AppDataPath { get; }

The AppDataPath property gets the %APPDATA% path. You can only get this property.

Usage

c#
using PeyrSharp.Env;
+
+string appdata = FileSys.AppDataPath;

CurrentAppDirectory

Available in version 1.1 and higher.

Definition

c#
public static string CurrentAppDirectory { get; }

The CurrentAppDirectory property gets the path where is located the executable file that is currently running. You can only get this property.

Usage

c#
using PeyrSharp.Env;
+
+string dir = FileSys.CurrentAppDirectory;

DriveWithHighestFreeSpace

Available in version 1.1 and higher.

Definition

c#
public static DriveInfo DriveWithHighestFreeSpace { get; }

The DriveWithHighestFreeSpace property gets the drive with the highest free space available. You can only get this property.

Usage

c#
using System.IO;
+using PeyrSharp.Env;
+
+DriveInfo highest = FileSys.DriveWithHighestFreeSpace;

DriveWithLowestFreeSpace

Available in version 1.1 and higher.

Definition

c#
public static DriveInfo DriveWithLowestFreeSpace { get; }

The DriveWithLowestFreeSpace property gets the drive with the lowest free space available. You can only get this property.

Usage

c#
using System.IO;
+using PeyrSharp.Env;
+
+DriveInfo lowest = FileSys.DriveWithLowestFreeSpace;

SystemDrive

Definition

c#
[SupportedOSPlatform("windows")]
+public static DriveInfo SystemDrive { get; }

The SystemDrive property gets the system drive, where Windows is installed. You can only get this property.

DANGER

This property only works on Windows! It will return a default value if you run it on a different platform.

Usage

c#
using PeyrSharp.Env;
+
+DriveInfo sys = FileSys.SystemDrive;

CurrentDirectory

Definition

Gets the current directory of the application. Returns a string representing the full path of the current directory.

Usage

c#
using PeyrSharp.Env;
+
+string currentDirectory = FileSys.CurrentDirectory;

ComputerName

Definition

Returns the name of the current computer as a string.

Usage

c#
using PeyrSharp.Env;
+
+string computerName = FileSys.ComputerName;
`,126),l=[o];function p(r,i,c,d,D,y){return e(),s("div",null,l)}const u=a(t,[["render",p]]);export{F as __pageData,u as default}; diff --git a/docs/assets/env_filesys.md.f048a5fa.lean.js b/docs/assets/env_filesys.md.f048a5fa.lean.js new file mode 100644 index 0000000..2475e85 --- /dev/null +++ b/docs/assets/env_filesys.md.f048a5fa.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"FileSys","description":"","frontmatter":{},"headers":[],"relativePath":"env/filesys.md","filePath":"env/filesys.md","lastUpdated":1675590267000}'),t={name:"env/filesys.md"},o=n("",126),l=[o];function p(r,i,c,d,D,y){return e(),s("div",null,l)}const u=a(t,[["render",p]]);export{F as __pageData,u as default}; diff --git a/docs/assets/env_logger.md.9aea516b.js b/docs/assets/env_logger.md.9aea516b.js deleted file mode 100644 index fe0bd3c..0000000 --- a/docs/assets/env_logger.md.9aea516b.js +++ /dev/null @@ -1,22 +0,0 @@ -import{_ as a,c as s,o as e,Q as t}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"Logger","description":"","frontmatter":{},"headers":[],"relativePath":"env/logger.md","lastUpdated":1680429326000}'),o={name:"env/logger.md"},n=t(`

Logger

This page is about the Logger class available in PeyrSharp.Env. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Logger class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

Log(message, filePath, dateTime)

Definition

The Log() method logs a specific message alongside a timestamp into a file. This method does not return a value (void).

INFO

You can call this method multiple times on the same file and it will append the message to it.

Arguments

TypeNameMeaning
stringmessageThe message or text that needs to be logged.
stringfilePathThe path where the file should be written.
DateTimedateTimeThe timestamp of the log, the time when the log was made.

Usage

c#
using PeyrSharp.Env;
-
-Logger.Log("Hello", @"C:\\Logs\\log1.txt", DateTime.Now)
-// The line above will generate a file with the following content:
-// [10/31/2022 09:23:18] Hello
-

Log(message, filePath, formatString)

Definition

Logs a formatted message to a file. This method does not return a value.

Arguments

TypeNameMeaning
stringmessageThe log message to be written.
stringfilePathThe path to the log file. Must contain an extension.
object[]formatStringAn object array that contains zero or more objects to format.

Usage

c#
using PeyrSharp.Env;
-
-string message = "This is a log message. Date: {0}.";
-string filePath = @"C:\\Logs\\log.txt";
-DateTime date = DateTime.Now;
-
-Logger.Log(message, filePath, date);
-

Log(message, filePath, dateTime, logLevel)

Definition

Logs a message with the specified severity level, file path, and timestamp. This method does not return a value.

Arguments

TypeNameMeaning
stringmessageThe message to log.
stringfilePathThe path to the file where the message was logged.
DateTimedateTimeThe timestamp for the log message.
LogLevellogLevelThe severity level for the log message.

Usage

c#
using PeyrSharp.Enums;
-using PeyrSharp.Env;
-
-string message = "This is a log message.";
-string filePath = @"C:\\Logs\\log.txt";
-DateTime date = DateTime.Now;
-LogLevel logLevel = LogLevel.Warning;
-
-Logger.Log(message, filePath, date, logLevel);
-
`,30),l=[n];function p(r,c,i,d,h,g){return e(),s("div",null,l)}const m=a(o,[["render",p]]);export{y as __pageData,m as default}; diff --git a/docs/assets/env_logger.md.9aea516b.lean.js b/docs/assets/env_logger.md.9aea516b.lean.js deleted file mode 100644 index 0bab963..0000000 --- a/docs/assets/env_logger.md.9aea516b.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as e,Q as t}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"Logger","description":"","frontmatter":{},"headers":[],"relativePath":"env/logger.md","lastUpdated":1680429326000}'),o={name:"env/logger.md"},n=t("",30),l=[n];function p(r,c,i,d,h,g){return e(),s("div",null,l)}const m=a(o,[["render",p]]);export{y as __pageData,m as default}; diff --git a/docs/assets/env_logger.md.a36497ef.js b/docs/assets/env_logger.md.a36497ef.js new file mode 100644 index 0000000..06d703d --- /dev/null +++ b/docs/assets/env_logger.md.a36497ef.js @@ -0,0 +1,19 @@ +import{_ as a,c as s,o as e,R as t}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"Logger","description":"","frontmatter":{},"headers":[],"relativePath":"env/logger.md","filePath":"env/logger.md","lastUpdated":1680429326000}'),o={name:"env/logger.md"},n=t(`

Logger

This page is about the Logger class available in PeyrSharp.Env. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Logger class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

Log(message, filePath, dateTime)

Definition

The Log() method logs a specific message alongside a timestamp into a file. This method does not return a value (void).

INFO

You can call this method multiple times on the same file and it will append the message to it.

Arguments

TypeNameMeaning
stringmessageThe message or text that needs to be logged.
stringfilePathThe path where the file should be written.
DateTimedateTimeThe timestamp of the log, the time when the log was made.

Usage

c#
using PeyrSharp.Env;
+
+Logger.Log("Hello", @"C:\\Logs\\log1.txt", DateTime.Now)
+// The line above will generate a file with the following content:
+// [10/31/2022 09:23:18] Hello

Log(message, filePath, formatString)

Definition

Logs a formatted message to a file. This method does not return a value.

Arguments

TypeNameMeaning
stringmessageThe log message to be written.
stringfilePathThe path to the log file. Must contain an extension.
object[]formatStringAn object array that contains zero or more objects to format.

Usage

c#
using PeyrSharp.Env;
+
+string message = "This is a log message. Date: {0}.";
+string filePath = @"C:\\Logs\\log.txt";
+DateTime date = DateTime.Now;
+
+Logger.Log(message, filePath, date);

Log(message, filePath, dateTime, logLevel)

Definition

Logs a message with the specified severity level, file path, and timestamp. This method does not return a value.

Arguments

TypeNameMeaning
stringmessageThe message to log.
stringfilePathThe path to the file where the message was logged.
DateTimedateTimeThe timestamp for the log message.
LogLevellogLevelThe severity level for the log message.

Usage

c#
using PeyrSharp.Enums;
+using PeyrSharp.Env;
+
+string message = "This is a log message.";
+string filePath = @"C:\\Logs\\log.txt";
+DateTime date = DateTime.Now;
+LogLevel logLevel = LogLevel.Warning;
+
+Logger.Log(message, filePath, date, logLevel);
`,30),l=[n];function p(r,c,i,d,h,g){return e(),s("div",null,l)}const m=a(o,[["render",p]]);export{y as __pageData,m as default}; diff --git a/docs/assets/env_logger.md.a36497ef.lean.js b/docs/assets/env_logger.md.a36497ef.lean.js new file mode 100644 index 0000000..209fcce --- /dev/null +++ b/docs/assets/env_logger.md.a36497ef.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as t}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"Logger","description":"","frontmatter":{},"headers":[],"relativePath":"env/logger.md","filePath":"env/logger.md","lastUpdated":1680429326000}'),o={name:"env/logger.md"},n=t("",30),l=[n];function p(r,c,i,d,h,g){return e(),s("div",null,l)}const m=a(o,[["render",p]]);export{y as __pageData,m as default}; diff --git a/docs/assets/env_system.md.5701262b.js b/docs/assets/env_system.md.5701262b.js deleted file mode 100644 index 74d6895..0000000 --- a/docs/assets/env_system.md.5701262b.js +++ /dev/null @@ -1,85 +0,0 @@ -import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const h=JSON.parse('{"title":"Sys","description":"","frontmatter":{},"headers":[],"relativePath":"env/system.md","lastUpdated":1675590267000}'),o={name:"env/system.md"},l=e(`

Sys

This page is about the Sys class available in PeyrSharp.Env. You can find here all of its methods and properties.

INFO

This class is static.

Compatibility

The Sys class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env⚠️⚠️
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

ExecuteAsAdmin(process)

Definition

Executes a program in administrator mode.

WARNING

This method only works on Windows.

Arguments

TypeNameMeaning
ProcessprocessThe process to launch as admin.

Usage

c#
using PeyrSharp.Env;
-
-// Define a process
-Process p = new();
-p.StartInfo.FileName = "notepad.exe";
-
-Sys.ExecuteAsAdmin(p);
-

ExecuteAsAdmin(fileName)

Definition

Executes a program in administrator mode.

WARNING

This method only works on Windows.

Arguments

TypeNameMeaning
stringfileNameThe path to the program to launch in admin mode.

Usage

c#
using PeyrSharp.Env;
-
-Sys.ExecuteAsAdmin("notepad.exe");
-

LaunchUWPApp(packageFamilyName, applicationID)

Definition

This method allows you to launch an UWP app from its PackageFamilyName and its Application Id. You can find this information by running in Windows Powershell (admin) the following command:

powershell
Get-AppxPackage | Select PackageFamilyName, InstallLocation
-

You can find the Application Id in the AppxManifest.xml file in

txt
InstallLocation\\AppxManifest.xml
-

WARNING

This method only works on Windows.

Arguments

TypeNameMeaning
stringpackageFamilyNameThe PackageFamilyName property.
stringapplicationIDThe Application Id property in the UWP AppxManifest.xml file.

Usage

c#
using PeyrSharp.Env;
-
-Sys.LaunchUWPApp("Microsoft.MinecraftUWP_8wekyb3d8bbwe", "App"); // Launch Minecraft UWP
-

IsProcessRunning(processName)

Definition

Gets if a specified process name is currently running. Returns a bool value indicating whether the process is running (true) or not running (false).

Arguments

TypeNameMeaning
stringprocessNameThe process name to find.

Usage

c#
using PeyrSharp.Env;
-
-bool isNotepadRunning = Sys.IsProcessRunning("notepad");
-

TerminateProcess(processId)

Definition

Terminates a process with the specified process ID. Returns True if the process was successfully terminated, or False if no such process was found or if an error occurred while trying to terminate the process.

Arguments

TypeNameMeaning
intprocessIdThe ID of the process to terminate.

Usage

c#
using PeyrSharp.Env;
-
-int processId = 12345;
-
-bool result = Sys.TerminateProcess(processId);
-

Properties

CurrentOperatingSystem

Definition

c#
public static OperatingSystems CurrentOperatingSystem { get; }
-

Gets the current Operating system. Returns a OperatingSystems value. You can only get this property.

Usage

c#
using PeyrSharp.Env;
-
-if (Sys.CurrentOperatingSystem == OperatingSystems.Windows)
-{
-    Console.WriteLine("You are on Windows");
-}
-

CurrentWindowsVersion

Definition

c#
public static WindowsVersion CurrentWindowsVersion { get; }
-

Gets the current Windows version. Returns a WindowsVersion value. You can only get this property.

WARNING

This property only works on Windows.

DANGER

This property only works if you specify in the Application Manifest, in the compatibility section, that Windows 8, 8.1 and 10/11 are compatible with the software. Otherwise, it will return Windows8.

xml
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
-    <application>
-      <!-- Windows Vista -->
-      <!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
-
-      <!-- Windows 7 -->
-      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />
-
-      <!-- Windows 8 -->
-      <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />
-
-      <!-- Windows 8.1 -->
-      <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />
-
-      <!-- Windows 10 -->
-      <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
-    </application>
-</compatibility>
-

Usage

c#
using PeyrSharp.Env;
-
-if (Sys.CurrentWindowsVersion == WindowsVersion.Windows11)
-{
-    Console.WriteLine("You are on Windows 11");
-}
-

IsDarkThemeSupported

Definition

c#
public static bool IsDarkThemeSupported { get; }
-

Gets if the current Windows version supports dark theme. Returns a bool value. You can only get this property.

WARNING

This property only works on Windows.

Usage

c#
using PeyrSharp.Env;
-
-if (Sys.IsDarkThemeSupported)
-{
-    Console.WriteLine("You are running Windows 10 or higher.");
-}
-

RunningProcesses

Definition

c#
public static Process[] RunningProcesses { get; }
-

Gets the processes that are currently running. Returns a Process[] array. You can only get this property.

Usage

c#
using PeyrSharp.Env;
-
-Process[] procs = Sys.RunningProcesses;
-
-for (int i = 0; i < procs.Length; i++)
-{
-    Console.WriteLine(procs[i].ProcessName); // Print the name of all running processes
-}
-

RunningProcessesNames

Definition

c#
public static string[] RunningProcessesNames { get; }
-

Gets the names of the processes that are currently running. Returns a string[] array. You can only get this property.

Usage

c#
using PeyrSharp.Env;
-
-string[] procs = Sys.RunningProcessesNames;
-
-for (int i = 0; i < procs.Length; i++)
-{
-    Console.WriteLine(procs[i]); // Print the name of all running processes
-}
-

UnixTime

Definition

c#
public static int Unix { get; }
-

Gets the current UnixTime. Returns an int. You can only get this property.

Usage

c#
using PeyrSharp.Env;
-
-int unixTime = Sys.UnixTime;
-
`,90),t=[l];function p(c,r,i,y,d,D){return n(),a("div",null,t)}const C=s(o,[["render",p]]);export{h as __pageData,C as default}; diff --git a/docs/assets/env_system.md.5701262b.lean.js b/docs/assets/env_system.md.5701262b.lean.js deleted file mode 100644 index 331b0a7..0000000 --- a/docs/assets/env_system.md.5701262b.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const h=JSON.parse('{"title":"Sys","description":"","frontmatter":{},"headers":[],"relativePath":"env/system.md","lastUpdated":1675590267000}'),o={name:"env/system.md"},l=e("",90),t=[l];function p(c,r,i,y,d,D){return n(),a("div",null,t)}const C=s(o,[["render",p]]);export{h as __pageData,C as default}; diff --git a/docs/assets/env_system.md.fd2ed290.js b/docs/assets/env_system.md.fd2ed290.js new file mode 100644 index 0000000..64477c6 --- /dev/null +++ b/docs/assets/env_system.md.fd2ed290.js @@ -0,0 +1,65 @@ +import{_ as s,c as a,o as n,R as e}from"./chunks/framework.bdd825cc.js";const h=JSON.parse('{"title":"Sys","description":"","frontmatter":{},"headers":[],"relativePath":"env/system.md","filePath":"env/system.md","lastUpdated":1675590267000}'),o={name:"env/system.md"},l=e(`

Sys

This page is about the Sys class available in PeyrSharp.Env. You can find here all of its methods and properties.

INFO

This class is static.

Compatibility

The Sys class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env⚠️⚠️
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

ExecuteAsAdmin(process)

Definition

Executes a program in administrator mode.

WARNING

This method only works on Windows.

Arguments

TypeNameMeaning
ProcessprocessThe process to launch as admin.

Usage

c#
using PeyrSharp.Env;
+
+// Define a process
+Process p = new();
+p.StartInfo.FileName = "notepad.exe";
+
+Sys.ExecuteAsAdmin(p);

ExecuteAsAdmin(fileName)

Definition

Executes a program in administrator mode.

WARNING

This method only works on Windows.

Arguments

TypeNameMeaning
stringfileNameThe path to the program to launch in admin mode.

Usage

c#
using PeyrSharp.Env;
+
+Sys.ExecuteAsAdmin("notepad.exe");

LaunchUWPApp(packageFamilyName, applicationID)

Definition

This method allows you to launch an UWP app from its PackageFamilyName and its Application Id. You can find this information by running in Windows Powershell (admin) the following command:

powershell
Get-AppxPackage | Select PackageFamilyName, InstallLocation

You can find the Application Id in the AppxManifest.xml file in

txt
InstallLocation\\AppxManifest.xml

WARNING

This method only works on Windows.

Arguments

TypeNameMeaning
stringpackageFamilyNameThe PackageFamilyName property.
stringapplicationIDThe Application Id property in the UWP AppxManifest.xml file.

Usage

c#
using PeyrSharp.Env;
+
+Sys.LaunchUWPApp("Microsoft.MinecraftUWP_8wekyb3d8bbwe", "App"); // Launch Minecraft UWP

IsProcessRunning(processName)

Definition

Gets if a specified process name is currently running. Returns a bool value indicating whether the process is running (true) or not running (false).

Arguments

TypeNameMeaning
stringprocessNameThe process name to find.

Usage

c#
using PeyrSharp.Env;
+
+bool isNotepadRunning = Sys.IsProcessRunning("notepad");

TerminateProcess(processId)

Definition

Terminates a process with the specified process ID. Returns True if the process was successfully terminated, or False if no such process was found or if an error occurred while trying to terminate the process.

Arguments

TypeNameMeaning
intprocessIdThe ID of the process to terminate.

Usage

c#
using PeyrSharp.Env;
+
+int processId = 12345;
+
+bool result = Sys.TerminateProcess(processId);

Properties

CurrentOperatingSystem

Definition

c#
public static OperatingSystems CurrentOperatingSystem { get; }

Gets the current Operating system. Returns a OperatingSystems value. You can only get this property.

Usage

c#
using PeyrSharp.Env;
+
+if (Sys.CurrentOperatingSystem == OperatingSystems.Windows)
+{
+    Console.WriteLine("You are on Windows");
+}

CurrentWindowsVersion

Definition

c#
public static WindowsVersion CurrentWindowsVersion { get; }

Gets the current Windows version. Returns a WindowsVersion value. You can only get this property.

WARNING

This property only works on Windows.

DANGER

This property only works if you specify in the Application Manifest, in the compatibility section, that Windows 8, 8.1 and 10/11 are compatible with the software. Otherwise, it will return Windows8.

xml
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
+    <application>
+      <!-- Windows Vista -->
+      <!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
+
+      <!-- Windows 7 -->
+      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />
+
+      <!-- Windows 8 -->
+      <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />
+
+      <!-- Windows 8.1 -->
+      <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />
+
+      <!-- Windows 10 -->
+      <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
+    </application>
+</compatibility>

Usage

c#
using PeyrSharp.Env;
+
+if (Sys.CurrentWindowsVersion == WindowsVersion.Windows11)
+{
+    Console.WriteLine("You are on Windows 11");
+}

IsDarkThemeSupported

Definition

c#
public static bool IsDarkThemeSupported { get; }

Gets if the current Windows version supports dark theme. Returns a bool value. You can only get this property.

WARNING

This property only works on Windows.

Usage

c#
using PeyrSharp.Env;
+
+if (Sys.IsDarkThemeSupported)
+{
+    Console.WriteLine("You are running Windows 10 or higher.");
+}

RunningProcesses

Definition

c#
public static Process[] RunningProcesses { get; }

Gets the processes that are currently running. Returns a Process[] array. You can only get this property.

Usage

c#
using PeyrSharp.Env;
+
+Process[] procs = Sys.RunningProcesses;
+
+for (int i = 0; i < procs.Length; i++)
+{
+    Console.WriteLine(procs[i].ProcessName); // Print the name of all running processes
+}

RunningProcessesNames

Definition

c#
public static string[] RunningProcessesNames { get; }

Gets the names of the processes that are currently running. Returns a string[] array. You can only get this property.

Usage

c#
using PeyrSharp.Env;
+
+string[] procs = Sys.RunningProcessesNames;
+
+for (int i = 0; i < procs.Length; i++)
+{
+    Console.WriteLine(procs[i]); // Print the name of all running processes
+}

UnixTime

Definition

c#
public static int Unix { get; }

Gets the current UnixTime. Returns an int. You can only get this property.

Usage

c#
using PeyrSharp.Env;
+
+int unixTime = Sys.UnixTime;
`,90),t=[l];function p(c,r,i,y,d,D){return n(),a("div",null,t)}const C=s(o,[["render",p]]);export{h as __pageData,C as default}; diff --git a/docs/assets/env_system.md.fd2ed290.lean.js b/docs/assets/env_system.md.fd2ed290.lean.js new file mode 100644 index 0000000..7038723 --- /dev/null +++ b/docs/assets/env_system.md.fd2ed290.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as n,R as e}from"./chunks/framework.bdd825cc.js";const h=JSON.parse('{"title":"Sys","description":"","frontmatter":{},"headers":[],"relativePath":"env/system.md","filePath":"env/system.md","lastUpdated":1675590267000}'),o={name:"env/system.md"},l=e("",90),t=[l];function p(c,r,i,y,d,D){return n(),a("div",null,t)}const C=s(o,[["render",p]]);export{h as __pageData,C as default}; diff --git a/docs/assets/env_update.md.23d652b4.js b/docs/assets/env_update.md.23d652b4.js deleted file mode 100644 index a4108d9..0000000 --- a/docs/assets/env_update.md.23d652b4.js +++ /dev/null @@ -1,19 +0,0 @@ -import{_ as s,c as a,o as e,Q as t}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"Update","description":"","frontmatter":{},"headers":[],"relativePath":"env/update.md","lastUpdated":1673088608000}'),n={name:"env/update.md"},o=t(`

Update

This page is about the Update class available in PeyrSharp.Env. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Update class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

GetLastVersionAsync(url)

Definition

Downloads the content of remote file as string. The remote file should contain the last version text. Do not provide the URL of an HTML page.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlLink of the file where the latest version is stored.

Usage

c#
using PeyrSharp.Env;
-
-private async void Main()
-{
-    string lastVersion = await Update.GetLastVersionAsync("https://raw.githubusercontent.com/Leo-Corporation/LeoCorp-Docs/master/Liens/Update%20System/LABS%20Experimental%20Console/version.txt");
-    // lastVersion would be equal to the content of this text files
-}
-

IsAvailable(currentVersion, remoteVersion)

Definition

Compares two versions. Returns a bool.

INFO

It is recommended to use this method with the GetLastVersionAsync() one.

Arguments

TypeNameMeaning
stringcurrentVersionThe current version of the app.
stringremoveVersionThe latest version, stored remotely.

Usage

c#
using PeyrSharp.Env;
-
-private async void Main()
-{
-    string current = "1.0";
-    string last = await Update.GetLastVersionAsync("https://raw.githubusercontent.com/Leo-Corporation/LeoCorp-Docs/master/Liens/Update%20System/LABS%20Experimental%20Console/version.txt");
-
-    Console.WriteLine(Update.IsAvailable(current, last)
-        ? "Updates are available."
-        : "You are up-to-date.");
-}
-
`,24),l=[o];function p(r,c,i,d,h,y){return e(),a("div",null,l)}const u=s(n,[["render",p]]);export{F as __pageData,u as default}; diff --git a/docs/assets/env_update.md.23d652b4.lean.js b/docs/assets/env_update.md.23d652b4.lean.js deleted file mode 100644 index ff1b35b..0000000 --- a/docs/assets/env_update.md.23d652b4.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as e,Q as t}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"Update","description":"","frontmatter":{},"headers":[],"relativePath":"env/update.md","lastUpdated":1673088608000}'),n={name:"env/update.md"},o=t("",24),l=[o];function p(r,c,i,d,h,y){return e(),a("div",null,l)}const u=s(n,[["render",p]]);export{F as __pageData,u as default}; diff --git a/docs/assets/env_update.md.46901f56.js b/docs/assets/env_update.md.46901f56.js new file mode 100644 index 0000000..402ba97 --- /dev/null +++ b/docs/assets/env_update.md.46901f56.js @@ -0,0 +1,17 @@ +import{_ as s,c as a,o as e,R as t}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"Update","description":"","frontmatter":{},"headers":[],"relativePath":"env/update.md","filePath":"env/update.md","lastUpdated":1683354316000}'),n={name:"env/update.md"},o=t(`

Update

This page is about the Update class available in PeyrSharp.Env. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Update class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

GetLastVersionAsync(url)

Definition

Downloads the content of remote file as string. The remote file should contain the last version text. Do not provide the URL of an HTML page.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlLink of the file where the latest version is stored.

Usage

c#
using PeyrSharp.Env;
+
+private async void Main()
+{
+    string lastVersion = await Update.GetLastVersionAsync("https://raw.githubusercontent.com/DevyusCode/LeoCorp-Docs/master/Liens/Update%20System/LABS%20Experimental%20Console/version.txt");
+    // lastVersion would be equal to the content of this text files
+}

IsAvailable(currentVersion, remoteVersion)

Definition

Compares two versions. Returns a bool.

INFO

It is recommended to use this method with the GetLastVersionAsync() one.

Arguments

TypeNameMeaning
stringcurrentVersionThe current version of the app.
stringremoveVersionThe latest version, stored remotely.

Usage

c#
using PeyrSharp.Env;
+
+private async void Main()
+{
+    string current = "1.0";
+    string last = await Update.GetLastVersionAsync("https://raw.githubusercontent.com/DevyusCode/LeoCorp-Docs/master/Liens/Update%20System/LABS%20Experimental%20Console/version.txt");
+
+    Console.WriteLine(Update.IsAvailable(current, last)
+        ? "Updates are available."
+        : "You are up-to-date.");
+}
`,24),l=[o];function p(r,c,i,d,h,y){return e(),a("div",null,l)}const u=s(n,[["render",p]]);export{F as __pageData,u as default}; diff --git a/docs/assets/env_update.md.46901f56.lean.js b/docs/assets/env_update.md.46901f56.lean.js new file mode 100644 index 0000000..3de2a3e --- /dev/null +++ b/docs/assets/env_update.md.46901f56.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as e,R as t}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"Update","description":"","frontmatter":{},"headers":[],"relativePath":"env/update.md","filePath":"env/update.md","lastUpdated":1683354316000}'),n={name:"env/update.md"},o=t("",24),l=[o];function p(r,c,i,d,h,y){return e(),a("div",null,l)}const u=s(n,[["render",p]]);export{F as __pageData,u as default}; diff --git a/docs/assets/exceptions.md.bd52d342.js b/docs/assets/exceptions.md.bd52d342.js deleted file mode 100644 index 693841a..0000000 --- a/docs/assets/exceptions.md.bd52d342.js +++ /dev/null @@ -1,16 +0,0 @@ -import{_ as a,c as e,o as s,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Exceptions","description":"","frontmatter":{},"headers":[],"relativePath":"exceptions.md","lastUpdated":1665311928000}'),o={name:"exceptions.md"},t=n(`

Exceptions

This page is about the exceptions available in PeyrSharp.Exceptions. They are grouped by category.

Compatibility

Exceptions are part of the PeyrSharp.Exceptions module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Exceptions
Framework.NET 5.NET 6.NET 7
Exceptions

Converters

RGBInvalidValueException

Definition

The RGBInvalidValueException is an exception used in the Converters class when you provide an invalid value for a RGB color.

Usage

c#
using PeyrSharp.Exceptions;
-
-throw new RGBInvalidValueException("Please provide correct RGB values.");
-

HEXInvalidValueException

Definition

The HEXInvalidValueException is an exception used in the Converters class when you provide an invalid value for a HEX color.

Usage

c#
using PeyrSharp.Exceptions;
-
-throw new HEXInvalidValueException("Please provide a correct HEX value.");
-

Guid

InvalidGuidLengthException

Definition

The InvalidGuidLengthException is an exception used in the Guid class when you provide an invalid value for the length of the Guid. You should provide a length between 1-32.

Usage

c#
using PeyrSharp.Exceptions;
-
-// Guid length
-int length = 45; // Will throw an error
-
-if (length <= 0 || length > 32)
-{
-    throw new InvalidGuidLengthException("The length of a Guid must be between 1 and 32.");
-}
-
`,22),l=[t];function i(p,r,c,d,h,u){return s(),e("div",null,l)}const C=a(o,[["render",i]]);export{D as __pageData,C as default}; diff --git a/docs/assets/exceptions.md.bd52d342.lean.js b/docs/assets/exceptions.md.bd52d342.lean.js deleted file mode 100644 index 8578583..0000000 --- a/docs/assets/exceptions.md.bd52d342.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as e,o as s,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Exceptions","description":"","frontmatter":{},"headers":[],"relativePath":"exceptions.md","lastUpdated":1665311928000}'),o={name:"exceptions.md"},t=n("",22),l=[t];function i(p,r,c,d,h,u){return s(),e("div",null,l)}const C=a(o,[["render",i]]);export{D as __pageData,C as default}; diff --git a/docs/assets/exceptions.md.c550e4ad.js b/docs/assets/exceptions.md.c550e4ad.js new file mode 100644 index 0000000..e898ee2 --- /dev/null +++ b/docs/assets/exceptions.md.c550e4ad.js @@ -0,0 +1,13 @@ +import{_ as a,c as e,o as s,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Exceptions","description":"","frontmatter":{},"headers":[],"relativePath":"exceptions.md","filePath":"exceptions.md","lastUpdated":1665311928000}'),o={name:"exceptions.md"},t=n(`

Exceptions

This page is about the exceptions available in PeyrSharp.Exceptions. They are grouped by category.

Compatibility

Exceptions are part of the PeyrSharp.Exceptions module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Exceptions
Framework.NET 5.NET 6.NET 7
Exceptions

Converters

RGBInvalidValueException

Definition

The RGBInvalidValueException is an exception used in the Converters class when you provide an invalid value for a RGB color.

Usage

c#
using PeyrSharp.Exceptions;
+
+throw new RGBInvalidValueException("Please provide correct RGB values.");

HEXInvalidValueException

Definition

The HEXInvalidValueException is an exception used in the Converters class when you provide an invalid value for a HEX color.

Usage

c#
using PeyrSharp.Exceptions;
+
+throw new HEXInvalidValueException("Please provide a correct HEX value.");

Guid

InvalidGuidLengthException

Definition

The InvalidGuidLengthException is an exception used in the Guid class when you provide an invalid value for the length of the Guid. You should provide a length between 1-32.

Usage

c#
using PeyrSharp.Exceptions;
+
+// Guid length
+int length = 45; // Will throw an error
+
+if (length <= 0 || length > 32)
+{
+    throw new InvalidGuidLengthException("The length of a Guid must be between 1 and 32.");
+}
`,22),l=[t];function i(p,r,c,d,h,u){return s(),e("div",null,l)}const C=a(o,[["render",i]]);export{D as __pageData,C as default}; diff --git a/docs/assets/exceptions.md.c550e4ad.lean.js b/docs/assets/exceptions.md.c550e4ad.lean.js new file mode 100644 index 0000000..f9c99a7 --- /dev/null +++ b/docs/assets/exceptions.md.c550e4ad.lean.js @@ -0,0 +1 @@ +import{_ as a,c as e,o as s,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Exceptions","description":"","frontmatter":{},"headers":[],"relativePath":"exceptions.md","filePath":"exceptions.md","lastUpdated":1665311928000}'),o={name:"exceptions.md"},t=n("",22),l=[t];function i(p,r,c,d,h,u){return s(),e("div",null,l)}const C=a(o,[["render",i]]);export{D as __pageData,C as default}; diff --git a/docs/assets/extensions.md.5525e03e.js b/docs/assets/extensions.md.5525e03e.js new file mode 100644 index 0000000..dd4748f --- /dev/null +++ b/docs/assets/extensions.md.5525e03e.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as a,R as s}from"./chunks/framework.bdd825cc.js";const x=JSON.parse('{"title":"Extensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions.md","filePath":"extensions.md","lastUpdated":1667468707000}'),o={name:"extensions.md"},n=s('

Extensions

This page is about the PeyrSharp.Extensions module.

Compatibility

The PeyrSharp.Extensions module is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Classes

',7),i=[n];function r(d,l,h,c,m,_){return a(),e("div",null,i)}const f=t(o,[["render",r]]);export{x as __pageData,f as default}; diff --git a/docs/assets/extensions.md.5525e03e.lean.js b/docs/assets/extensions.md.5525e03e.lean.js new file mode 100644 index 0000000..86f05b5 --- /dev/null +++ b/docs/assets/extensions.md.5525e03e.lean.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as a,R as s}from"./chunks/framework.bdd825cc.js";const x=JSON.parse('{"title":"Extensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions.md","filePath":"extensions.md","lastUpdated":1667468707000}'),o={name:"extensions.md"},n=s("",7),i=[n];function r(d,l,h,c,m,_){return a(),e("div",null,i)}const f=t(o,[["render",r]]);export{x as __pageData,f as default}; diff --git a/docs/assets/extensions.md.617fb60c.js b/docs/assets/extensions.md.617fb60c.js deleted file mode 100644 index 835b625..0000000 --- a/docs/assets/extensions.md.617fb60c.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as a,Q as s}from"./chunks/framework.7addaa9c.js";const x=JSON.parse('{"title":"Extensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions.md","lastUpdated":1667468707000}'),o={name:"extensions.md"},n=s('

Extensions

This page is about the PeyrSharp.Extensions module.

Compatibility

The PeyrSharp.Extensions module is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Classes

',7),r=[n];function i(d,l,h,c,m,_){return a(),e("div",null,r)}const u=t(o,[["render",i]]);export{x as __pageData,u as default}; diff --git a/docs/assets/extensions.md.617fb60c.lean.js b/docs/assets/extensions.md.617fb60c.lean.js deleted file mode 100644 index a5f854f..0000000 --- a/docs/assets/extensions.md.617fb60c.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as a,Q as s}from"./chunks/framework.7addaa9c.js";const x=JSON.parse('{"title":"Extensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions.md","lastUpdated":1667468707000}'),o={name:"extensions.md"},n=s("",7),r=[n];function i(d,l,h,c,m,_){return a(),e("div",null,r)}const u=t(o,[["render",i]]);export{x as __pageData,u as default}; diff --git a/docs/assets/extensions_array.md.76dbee0c.js b/docs/assets/extensions_array.md.76dbee0c.js deleted file mode 100644 index 43d3efd..0000000 --- a/docs/assets/extensions_array.md.76dbee0c.js +++ /dev/null @@ -1,26 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"ArrayExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/array.md","lastUpdated":1673177468000}'),t={name:"extensions/array.md"},o=n(`

ArrayExtensions

This page is about the ArrayExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The ArrayExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

Append(item)

Definition

The Append<T>() method adds an item to an existing array of any type. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
TitemThe item to append in the array.

Usage

c#
using PeyrSharp.Extensions;
-
-int[] numbers = { 1, 2, 3, 4 };
-int[] appendNumbers = numbers.Append(5);
-// appendNumbers: { 1, 2, 3, 4, 5 }
-

Append(items)

Definition

The Append<T>() method adds multiple items to an existing array of any type. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
params T[]itemsThe items to append in the array.

Usage

c#
using PeyrSharp.Extensions;
-
-int[] numbers = { 1, 2, 3, 4 };
-int[] appendNumbers = numbers.Append(5, 6);
-// appendNumbers: { 1, 2, 3, 4, 5, 6 }
-

RemoveElement(item)

Definition

The RemoveElement<T>() method removes an item from an array. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
TitemThe item to remove from the array.

Usage

c#
using PeyrSharp.Extensions;
-
-int[] numbers = { 1, 2, 3, 4, 5 };
-int[] remove = numbers.RemoveItem(5);
-// remove: { 1, 2, 3, 4 }
-

RemoveElement(items)

Definition

The RemoveElement<T>() method removes multiple items from an array. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
params T[]itemsThe items to remove from the array.

Usage

c#
using PeyrSharp.Extensions;
-
-int[] numbers = { 1, 2, 3, 4, 5 };
-int[] remove = numbers.RemoveItem(5);
-// remove: { 1, 2, 3, 4 }
-

UnSplit(array, separator)

Definition

Concatenates the elements of a string array, using the specified separator between each element. Return a string that consists of the elements of array delimited by the separator string. If array has no elements, the method returns an empty string.

Arguments

TypeNameMeaning
stringarrayThe array of strings to concatenate.
stringseparatorThe string to use as a separator.

Usage

c#
using PeyrSharp.Extensions;
-
-string[] array = { "a", "b", "c", "d" };
-string final = array.UnSplit(", "); // Concatenate the elements of the array with a comma and a space as a separator
-// final = "a, b, c, d"
-
`,42),l=[o];function p(r,c,i,d,y,h){return e(),a("div",null,l)}const C=s(t,[["render",p]]);export{F as __pageData,C as default}; diff --git a/docs/assets/extensions_array.md.76dbee0c.lean.js b/docs/assets/extensions_array.md.76dbee0c.lean.js deleted file mode 100644 index 20db1a9..0000000 --- a/docs/assets/extensions_array.md.76dbee0c.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const F=JSON.parse('{"title":"ArrayExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/array.md","lastUpdated":1673177468000}'),t={name:"extensions/array.md"},o=n("",42),l=[o];function p(r,c,i,d,y,h){return e(),a("div",null,l)}const C=s(t,[["render",p]]);export{F as __pageData,C as default}; diff --git a/docs/assets/extensions_array.md.82fdc73c.js b/docs/assets/extensions_array.md.82fdc73c.js new file mode 100644 index 0000000..a4ea63f --- /dev/null +++ b/docs/assets/extensions_array.md.82fdc73c.js @@ -0,0 +1,21 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"ArrayExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/array.md","filePath":"extensions/array.md","lastUpdated":1673177468000}'),t={name:"extensions/array.md"},o=n(`

ArrayExtensions

This page is about the ArrayExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The ArrayExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

Append(item)

Definition

The Append<T>() method adds an item to an existing array of any type. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
TitemThe item to append in the array.

Usage

c#
using PeyrSharp.Extensions;
+
+int[] numbers = { 1, 2, 3, 4 };
+int[] appendNumbers = numbers.Append(5);
+// appendNumbers: { 1, 2, 3, 4, 5 }

Append(items)

Definition

The Append<T>() method adds multiple items to an existing array of any type. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
params T[]itemsThe items to append in the array.

Usage

c#
using PeyrSharp.Extensions;
+
+int[] numbers = { 1, 2, 3, 4 };
+int[] appendNumbers = numbers.Append(5, 6);
+// appendNumbers: { 1, 2, 3, 4, 5, 6 }

RemoveElement(item)

Definition

The RemoveElement<T>() method removes an item from an array. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
TitemThe item to remove from the array.

Usage

c#
using PeyrSharp.Extensions;
+
+int[] numbers = { 1, 2, 3, 4, 5 };
+int[] remove = numbers.RemoveItem(5);
+// remove: { 1, 2, 3, 4 }

RemoveElement(items)

Definition

The RemoveElement<T>() method removes multiple items from an array. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
params T[]itemsThe items to remove from the array.

Usage

c#
using PeyrSharp.Extensions;
+
+int[] numbers = { 1, 2, 3, 4, 5 };
+int[] remove = numbers.RemoveItem(5);
+// remove: { 1, 2, 3, 4 }

UnSplit(array, separator)

Definition

Concatenates the elements of a string array, using the specified separator between each element. Return a string that consists of the elements of array delimited by the separator string. If array has no elements, the method returns an empty string.

Arguments

TypeNameMeaning
stringarrayThe array of strings to concatenate.
stringseparatorThe string to use as a separator.

Usage

c#
using PeyrSharp.Extensions;
+
+string[] array = { "a", "b", "c", "d" };
+string final = array.UnSplit(", "); // Concatenate the elements of the array with a comma and a space as a separator
+// final = "a, b, c, d"
`,42),l=[o];function p(r,c,i,d,y,h){return e(),s("div",null,l)}const C=a(t,[["render",p]]);export{F as __pageData,C as default}; diff --git a/docs/assets/extensions_array.md.82fdc73c.lean.js b/docs/assets/extensions_array.md.82fdc73c.lean.js new file mode 100644 index 0000000..04249a1 --- /dev/null +++ b/docs/assets/extensions_array.md.82fdc73c.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as n}from"./chunks/framework.bdd825cc.js";const F=JSON.parse('{"title":"ArrayExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/array.md","filePath":"extensions/array.md","lastUpdated":1673177468000}'),t={name:"extensions/array.md"},o=n("",42),l=[o];function p(r,c,i,d,y,h){return e(),s("div",null,l)}const C=a(t,[["render",p]]);export{F as __pageData,C as default}; diff --git a/docs/assets/extensions_double.md.7091e6c6.js b/docs/assets/extensions_double.md.7091e6c6.js new file mode 100644 index 0000000..995f627 --- /dev/null +++ b/docs/assets/extensions_double.md.7091e6c6.js @@ -0,0 +1,51 @@ +import{_ as a,c as s,o as e,R as t}from"./chunks/framework.bdd825cc.js";const C=JSON.parse('{"title":"DoubleExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/double.md","filePath":"extensions/double.md","lastUpdated":1680429319000}'),n={name:"extensions/double.md"},o=t(`

DoubleExtensions

This page is about the DoubleExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The DoubleExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

Mean(values)

Definition

Calculates the mean (average) of a dataset. Returns the mean of the dataset as double.

Exceptions

TypeCondition
System.ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
+
+double[] data = new double[] { 1.0, 2.0, 3.0, 4.0, 5.0 };
+double mean = data.Mean(); // 5

Median(values)

Definition

Calculates the median of a dataset. Returns the median of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
+
+double[] data = new double[] { 1.2, 3.4, 2.5, 6.8, 5.7 };
+double median = data.Median();
+
+Console.WriteLine($"The median of the dataset is {median}"); // 3.4

Mode(values)

Definition

Calculates the mode of a dataset. Returns the mode of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
+
+double[] data = new double[] { 1.2, 3.4, 2.5, 6.8, 5.7 };
+double mode = data.Mode();
+
+Console.WriteLine($"The mode of the dataset is {mode}"); // 1.2

ToInt()

Definition

Converts a double value to an int. To achieve it, it uses the Math.Round() method.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Extensions;
+
+int n = 45.6.ToInt();
+// n = 46

ToSeconds(timeUnits)

Definition

Converts a specified time unit value to seconds. For instance, you can convert days, hours or minutes to seconds. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
+using PeyrSharp.Extensions;
+
+double seconds = 5.ToSeconds(TimeUnits.Minutes);
+// seconds = 300

ToMinutes(timeUnits)

Definition

Converts a specified time unit value to minutes. For instance, you can convert days, hours or seconds to minutes. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
+using PeyrSharp.Extensions;
+
+double min = 120.ToMinutes(TimeUnits.Seconds);
+// min = 2

ToHours(timeUnits)

Definition

Converts a specified time unit value to hours. For instance, you can convert days, minutes or seconds to hours. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
+using PeyrSharp.Extensions;
+
+double hours = 1.ToHours(TimeUnits.Days);
+// hours = 24

ToDays(timeUnits)

Definition

Converts a specified time unit value to days. For instance, you can convert hours, minutes or seconds to days. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
+using PeyrSharp.Extensions;
+
+double days = 72.ToDays(TimeUnits.Hours);
+// days = 3

ToByte(storageUnit)

Definition

Converts a size (kb, mb, ...) to byte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+
+double byte = Storage.1(StorageUnits.Kilobyte);
+// byte = 1000

ToKilobyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to kilobyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: byte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+
+double kilobyte = 2000.ToKilobyte(StorageUnits.Byte);
+// kilobyte = 2

ToMegabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to megabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+
+double megabyte = 1500.ToMegabyte(StorageUnits.Kilobyte);
+// megabyte = 1.5

ToGigabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to gigabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, megabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+
+double gigabyte = 1000.ToGigabyte(StorageUnits.Megabyte);
+// gigabyte = 1

ToTerabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to terabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+
+double terabyte = 1.ToTerabyte(StorageUnits.Petabyte);
+// terabyte = 1000

ToPetabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to petabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+
+double petabyte = 1000.ToPetabyte(StorageUnits.Terabyte);
+// petabyte = 1
`,115),l=[o];function r(p,i,c,d,h,y){return e(),s("div",null,l)}const D=a(n,[["render",r]]);export{C as __pageData,D as default}; diff --git a/docs/assets/extensions_double.md.7091e6c6.lean.js b/docs/assets/extensions_double.md.7091e6c6.lean.js new file mode 100644 index 0000000..c20670a --- /dev/null +++ b/docs/assets/extensions_double.md.7091e6c6.lean.js @@ -0,0 +1 @@ +import{_ as a,c as s,o as e,R as t}from"./chunks/framework.bdd825cc.js";const C=JSON.parse('{"title":"DoubleExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/double.md","filePath":"extensions/double.md","lastUpdated":1680429319000}'),n={name:"extensions/double.md"},o=t("",115),l=[o];function r(p,i,c,d,h,y){return e(),s("div",null,l)}const D=a(n,[["render",r]]);export{C as __pageData,D as default}; diff --git a/docs/assets/extensions_double.md.b0e69aa8.js b/docs/assets/extensions_double.md.b0e69aa8.js deleted file mode 100644 index 0dd89e8..0000000 --- a/docs/assets/extensions_double.md.b0e69aa8.js +++ /dev/null @@ -1,65 +0,0 @@ -import{_ as a,c as s,o as e,Q as t}from"./chunks/framework.7addaa9c.js";const C=JSON.parse('{"title":"DoubleExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/double.md","lastUpdated":1680429319000}'),n={name:"extensions/double.md"},o=t(`

DoubleExtensions

This page is about the DoubleExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The DoubleExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

Mean(values)

Definition

Calculates the mean (average) of a dataset. Returns the mean of the dataset as double.

Exceptions

TypeCondition
System.ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
-
-double[] data = new double[] { 1.0, 2.0, 3.0, 4.0, 5.0 };
-double mean = data.Mean(); // 5
-

Median(values)

Definition

Calculates the median of a dataset. Returns the median of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
-
-double[] data = new double[] { 1.2, 3.4, 2.5, 6.8, 5.7 };
-double median = data.Median();
-
-Console.WriteLine($"The median of the dataset is {median}"); // 3.4
-

Mode(values)

Definition

Calculates the mode of a dataset. Returns the mode of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
-
-double[] data = new double[] { 1.2, 3.4, 2.5, 6.8, 5.7 };
-double mode = data.Mode();
-
-Console.WriteLine($"The mode of the dataset is {mode}"); // 1.2
-

ToInt()

Definition

Converts a double value to an int. To achieve it, it uses the Math.Round() method.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Extensions;
-
-int n = 45.6.ToInt();
-// n = 46
-

ToSeconds(timeUnits)

Definition

Converts a specified time unit value to seconds. For instance, you can convert days, hours or minutes to seconds. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
-using PeyrSharp.Extensions;
-
-double seconds = 5.ToSeconds(TimeUnits.Minutes);
-// seconds = 300
-

ToMinutes(timeUnits)

Definition

Converts a specified time unit value to minutes. For instance, you can convert days, hours or seconds to minutes. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
-using PeyrSharp.Extensions;
-
-double min = 120.ToMinutes(TimeUnits.Seconds);
-// min = 2
-

ToHours(timeUnits)

Definition

Converts a specified time unit value to hours. For instance, you can convert days, minutes or seconds to hours. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
-using PeyrSharp.Extensions;
-
-double hours = 1.ToHours(TimeUnits.Days);
-// hours = 24
-

ToDays(timeUnits)

Definition

Converts a specified time unit value to days. For instance, you can convert hours, minutes or seconds to days. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
-using PeyrSharp.Extensions;
-
-double days = 72.ToDays(TimeUnits.Hours);
-// days = 3
-

ToByte(storageUnit)

Definition

Converts a size (kb, mb, ...) to byte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
-
-double byte = Storage.1(StorageUnits.Kilobyte);
-// byte = 1000
-

ToKilobyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to kilobyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: byte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
-
-double kilobyte = 2000.ToKilobyte(StorageUnits.Byte);
-// kilobyte = 2
-

ToMegabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to megabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
-
-double megabyte = 1500.ToMegabyte(StorageUnits.Kilobyte);
-// megabyte = 1.5
-

ToGigabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to gigabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, megabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
-
-double gigabyte = 1000.ToGigabyte(StorageUnits.Megabyte);
-// gigabyte = 1
-

ToTerabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to terabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
-
-double terabyte = 1.ToTerabyte(StorageUnits.Petabyte);
-// terabyte = 1000
-

ToPetabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to petabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
-
-double petabyte = 1000.ToPetabyte(StorageUnits.Terabyte);
-// petabyte = 1
-
`,115),l=[o];function r(p,i,c,d,h,y){return e(),s("div",null,l)}const D=a(n,[["render",r]]);export{C as __pageData,D as default}; diff --git a/docs/assets/extensions_double.md.b0e69aa8.lean.js b/docs/assets/extensions_double.md.b0e69aa8.lean.js deleted file mode 100644 index 20b3b00..0000000 --- a/docs/assets/extensions_double.md.b0e69aa8.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as e,Q as t}from"./chunks/framework.7addaa9c.js";const C=JSON.parse('{"title":"DoubleExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/double.md","lastUpdated":1680429319000}'),n={name:"extensions/double.md"},o=t("",115),l=[o];function r(p,i,c,d,h,y){return e(),s("div",null,l)}const D=a(n,[["render",r]]);export{C as __pageData,D as default}; diff --git a/docs/assets/extensions_int.md.0637f1d4.js b/docs/assets/extensions_int.md.0637f1d4.js new file mode 100644 index 0000000..6de0978 --- /dev/null +++ b/docs/assets/extensions_int.md.0637f1d4.js @@ -0,0 +1,20 @@ +import{_ as s,c as a,o as n,R as e}from"./chunks/framework.bdd825cc.js";const C=JSON.parse('{"title":"IntExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/int.md","filePath":"extensions/int.md","lastUpdated":1680429319000}'),o={name:"extensions/int.md"},t=e(`

IntExtensions

This page is about the IntExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The IntExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

GetDivisors()

Definition

Gets all divisors of a specific number. Returns an array of int[].

Arguments

This method does not have any arguments.

Usage

c#
using PeyrSharp.Extensions;
+
+int[] divs = 16.GetDivisors(); // { 1, 2, 4, 8, 16 }

IsEven()

Definition

Checks if the number is even. Returns a bool.

Arguments

This method does not have any arguments.

Usage

c#
using PeyrSharp.Extensions;
+
+int[] divs = 16.IsEven(); // true

Mean(values)

Definition

Calculates the mean (average) of a dataset. Returns the mean of the dataset as double.

Exceptions

TypeCondition
System.ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
+
+int[] data = new int[] { 1, 2, 3, 4, 5 };
+double mean = data.Mean(); // 5

Median(values)

Definition

Calculates the median of a dataset. Returns the median of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
+
+int[] data = new int[] { 1, 2, 3, 5 };
+double median = data.Median();
+
+Console.WriteLine($"The median of the dataset is {median}"); // 2

Mode(values)

Definition

Calculates the mode of a dataset. Returns the mode of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
+
+int[] data = new int[] { 1, 2, 3, 5 };
+double mode = data.Mode();
+
+Console.WriteLine($"The mode of the dataset is {mode}"); // 1

ToDouble()

Definition

Converts an int to double.

Arguments

This method does not have any arguments.

Usage

c#
using PeyrSharp.Extensions;
+
+double d = 16.ToDouble(); // 16.0d
`,49),l=[t];function p(r,i,c,d,h,y){return n(),a("div",null,l)}const F=s(o,[["render",p]]);export{C as __pageData,F as default}; diff --git a/docs/assets/extensions_int.md.0637f1d4.lean.js b/docs/assets/extensions_int.md.0637f1d4.lean.js new file mode 100644 index 0000000..9612fce --- /dev/null +++ b/docs/assets/extensions_int.md.0637f1d4.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as n,R as e}from"./chunks/framework.bdd825cc.js";const C=JSON.parse('{"title":"IntExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/int.md","filePath":"extensions/int.md","lastUpdated":1680429319000}'),o={name:"extensions/int.md"},t=e("",49),l=[t];function p(r,i,c,d,h,y){return n(),a("div",null,l)}const F=s(o,[["render",p]]);export{C as __pageData,F as default}; diff --git a/docs/assets/extensions_int.md.e3682c4d.js b/docs/assets/extensions_int.md.e3682c4d.js deleted file mode 100644 index 78aea09..0000000 --- a/docs/assets/extensions_int.md.e3682c4d.js +++ /dev/null @@ -1,26 +0,0 @@ -import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const C=JSON.parse('{"title":"IntExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/int.md","lastUpdated":1680429319000}'),o={name:"extensions/int.md"},t=e(`

IntExtensions

This page is about the IntExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The IntExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

GetDivisors()

Definition

Gets all divisors of a specific number. Returns an array of int[].

Arguments

This method does not have any arguments.

Usage

c#
using PeyrSharp.Extensions;
-
-int[] divs = 16.GetDivisors(); // { 1, 2, 4, 8, 16 }
-

IsEven()

Definition

Checks if the number is even. Returns a bool.

Arguments

This method does not have any arguments.

Usage

c#
using PeyrSharp.Extensions;
-
-int[] divs = 16.IsEven(); // true
-

Mean(values)

Definition

Calculates the mean (average) of a dataset. Returns the mean of the dataset as double.

Exceptions

TypeCondition
System.ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
-
-int[] data = new int[] { 1, 2, 3, 4, 5 };
-double mean = data.Mean(); // 5
-

Median(values)

Definition

Calculates the median of a dataset. Returns the median of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
-
-int[] data = new int[] { 1, 2, 3, 5 };
-double median = data.Median();
-
-Console.WriteLine($"The median of the dataset is {median}"); // 2
-

Mode(values)

Definition

Calculates the mode of a dataset. Returns the mode of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
-
-int[] data = new int[] { 1, 2, 3, 5 };
-double mode = data.Mode();
-
-Console.WriteLine($"The mode of the dataset is {mode}"); // 1
-

ToDouble()

Definition

Converts an int to double.

Arguments

This method does not have any arguments.

Usage

c#
using PeyrSharp.Extensions;
-
-double d = 16.ToDouble(); // 16.0d
-
`,49),l=[t];function p(r,i,c,d,h,y){return n(),a("div",null,l)}const F=s(o,[["render",p]]);export{C as __pageData,F as default}; diff --git a/docs/assets/extensions_int.md.e3682c4d.lean.js b/docs/assets/extensions_int.md.e3682c4d.lean.js deleted file mode 100644 index 6c2f71e..0000000 --- a/docs/assets/extensions_int.md.e3682c4d.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const C=JSON.parse('{"title":"IntExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/int.md","lastUpdated":1680429319000}'),o={name:"extensions/int.md"},t=e("",49),l=[t];function p(r,i,c,d,h,y){return n(),a("div",null,l)}const F=s(o,[["render",p]]);export{C as __pageData,F as default}; diff --git a/docs/assets/extensions_string.md.0660789f.js b/docs/assets/extensions_string.md.0660789f.js deleted file mode 100644 index 35687da..0000000 --- a/docs/assets/extensions_string.md.0660789f.js +++ /dev/null @@ -1,51 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"StringExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/string.md","lastUpdated":1678016378000}'),t={name:"extensions/string.md"},o=n(`

StringExtensions

This page is about the StringExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The StringExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

CountWords()

Definition

Counts the number of words in a string. Returns int.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Extensions;
-
-int numberOfWords = "Hello, this is a test sentence!".CountWords();
-// numberOfWords = 6
-

CountWords(wordSeparator)

Definition

Counts the number of words in a string, with specified word separators. By default, the method uses those (if you don't pass any argument to it): , ,, ;, ., :, !, ?. Returns int.

Arguments

TypeNameMeaning
string[]wordSeparatorThe separator of the words.

Usage

c#
using PeyrSharp.Extensions;
-
-string[] wordSeparator = { " ", ",", ":", "!", "?", ";", "." };
-int numberOfWords = "Hello, this is a test sentence!".CountWords(wordSeparator);
-// numberOfWords = 6
-

EndsWithSamePunctuation(stringToCheck)

Definition

Checks if a string is ending with the same punctuation than an other one. Returns a bool; true if it is the case.

Arguments

TypeNameMeaning
stringstringToCheckThe string to compare.

Usage

c#
using PeyrSharp.Extensions;
-
-string a = "This is a test sentence.";
-string b = "This is an another test sentence.";
-
-a.EndsWithSamePunctuation(b); // true
-

EndsWithSamePunctuation(stringToCheck, punctuationToCheck)

Definition

Checks if a string is ending with the same specified punctuation than an other one. Returns a bool; true if it is the case.

Arguments

TypeNameMeaning
stringstringToCheckThe string to compare.
stringpunctuationToCheckThe punctuation sign to check for.

Usage

c#
using PeyrSharp.Extensions;
-
-string a = "This is a test sentence.";
-string b = "This is an another test sentence.";
-
-a.EndsWithSamePunctuation(b, "."); // true
-

EncryptAes(key)

Definitions

Encrypts a string using AES encryption. Returns the encrypted content as a string as well.

Arguments

TypeNameMeaning
stringkeyThe encryption key. This is the same key that will be used to decrypt the text.

Usage

c#
using PeyrSharp.Core;
-
-string encrypted = "Hello!".EncryptAes("password");
-// encrypted = 6NvvTBntd2PdFxXzVbccLw==
-

DecryptAes(key)

Definitions

Decrypts a string using AES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
stringkeyThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
-
-string text = "6NvvTBntd2PdFxXzVbccLw==".DecryptAes("password");
-// text = Hello!
-

HasRepeatedCharacters()

Definition

Checks if a letter or character is being repeated in a string. Returns bool.

INFO

Only returns true if a character is repeated more than three times. For instance, "11" will return false, whereas "aaaa" will return true.

Arguments

This methods has no arguments.

Usage

c#
using PeyrSharp.Extensions;
-
-"111".HasRepeatedCharacters(); // true
-

SplitLines()

Definition

Splits a string lines to an array. Returns string[].

INFO

The method uses the string.Split() method under the hood, which means that it is providing it the following separators: \\n, \\r, \\r\\n.

Arguments

This methods has no arguments.

Usage

c#
using PeyrSharp.Extensions;
-
-string[] lines = "Hello\\nWorld".SplitLines();
-// lines = { "Hello", "World" }
-

ToUpperAt(str, r)

Definition

Returns a new string in which the characters in a specified range of the current string are converted to uppercase. Returns a string that is equivalent to the current string, but with the characters in the specified range converted to uppercase.

Arguments

TypeNameMeaning
stringstrThe string to modify.
RangerThe range of characters to convert to uppercase.

Usage

c#
using PeyrSharp.Extensions;
-
-string str = "aBcDeFgHiJ";
-string upper = str.ToUpperAt(2..6); // Convert the characters at indexes 2 to 6 (inclusive) to uppercase
-// upper = "aBCDEFGhij"
-

ToUpperAt(s)

Definition

Uppercases the first letter of a string. Returns a string with the first letter uppercased.

Arguments

TypeNameMeaning
stringsThe string to capitalize.

Usage

c#
using PeyrSharp.Extensions;
-
-string str = "test";
-string upper = str.ToUpperAt(); // Uppercase the first letter of the string
-// upper = "Test"
-

Reverse(input)

Definition

Reverses a string.

Arguments

TypeNameDescription
stringinputThe string to reverse.

Returns

A string representing the reversed input.

Usage

c#
using PeyrSharp.Extensions;
-
-string reversed = "Hello, world!".Reverse();
-// Output: "!dlrow ,olleH"
-
`,88),l=[o];function r(p,c,i,d,h,u){return e(),a("div",null,l)}const F=s(t,[["render",r]]);export{D as __pageData,F as default}; diff --git a/docs/assets/extensions_string.md.0660789f.lean.js b/docs/assets/extensions_string.md.0660789f.lean.js deleted file mode 100644 index a4dc999..0000000 --- a/docs/assets/extensions_string.md.0660789f.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as e,Q as n}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"StringExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/string.md","lastUpdated":1678016378000}'),t={name:"extensions/string.md"},o=n("",88),l=[o];function r(p,c,i,d,h,u){return e(),a("div",null,l)}const F=s(t,[["render",r]]);export{D as __pageData,F as default}; diff --git a/docs/assets/extensions_string.md.18eff540.js b/docs/assets/extensions_string.md.18eff540.js new file mode 100644 index 0000000..0a24aee --- /dev/null +++ b/docs/assets/extensions_string.md.18eff540.js @@ -0,0 +1,40 @@ +import{_ as s,c as a,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"StringExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/string.md","filePath":"extensions/string.md","lastUpdated":1678016378000}'),t={name:"extensions/string.md"},o=n(`

StringExtensions

This page is about the StringExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The StringExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

CountWords()

Definition

Counts the number of words in a string. Returns int.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Extensions;
+
+int numberOfWords = "Hello, this is a test sentence!".CountWords();
+// numberOfWords = 6

CountWords(wordSeparator)

Definition

Counts the number of words in a string, with specified word separators. By default, the method uses those (if you don't pass any argument to it): , ,, ;, ., :, !, ?. Returns int.

Arguments

TypeNameMeaning
string[]wordSeparatorThe separator of the words.

Usage

c#
using PeyrSharp.Extensions;
+
+string[] wordSeparator = { " ", ",", ":", "!", "?", ";", "." };
+int numberOfWords = "Hello, this is a test sentence!".CountWords(wordSeparator);
+// numberOfWords = 6

EndsWithSamePunctuation(stringToCheck)

Definition

Checks if a string is ending with the same punctuation than an other one. Returns a bool; true if it is the case.

Arguments

TypeNameMeaning
stringstringToCheckThe string to compare.

Usage

c#
using PeyrSharp.Extensions;
+
+string a = "This is a test sentence.";
+string b = "This is an another test sentence.";
+
+a.EndsWithSamePunctuation(b); // true

EndsWithSamePunctuation(stringToCheck, punctuationToCheck)

Definition

Checks if a string is ending with the same specified punctuation than an other one. Returns a bool; true if it is the case.

Arguments

TypeNameMeaning
stringstringToCheckThe string to compare.
stringpunctuationToCheckThe punctuation sign to check for.

Usage

c#
using PeyrSharp.Extensions;
+
+string a = "This is a test sentence.";
+string b = "This is an another test sentence.";
+
+a.EndsWithSamePunctuation(b, "."); // true

EncryptAes(key)

Definitions

Encrypts a string using AES encryption. Returns the encrypted content as a string as well.

Arguments

TypeNameMeaning
stringkeyThe encryption key. This is the same key that will be used to decrypt the text.

Usage

c#
using PeyrSharp.Core;
+
+string encrypted = "Hello!".EncryptAes("password");
+// encrypted = 6NvvTBntd2PdFxXzVbccLw==

DecryptAes(key)

Definitions

Decrypts a string using AES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
stringkeyThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
+
+string text = "6NvvTBntd2PdFxXzVbccLw==".DecryptAes("password");
+// text = Hello!

HasRepeatedCharacters()

Definition

Checks if a letter or character is being repeated in a string. Returns bool.

INFO

Only returns true if a character is repeated more than three times. For instance, "11" will return false, whereas "aaaa" will return true.

Arguments

This methods has no arguments.

Usage

c#
using PeyrSharp.Extensions;
+
+"111".HasRepeatedCharacters(); // true

SplitLines()

Definition

Splits a string lines to an array. Returns string[].

INFO

The method uses the string.Split() method under the hood, which means that it is providing it the following separators: \\n, \\r, \\r\\n.

Arguments

This methods has no arguments.

Usage

c#
using PeyrSharp.Extensions;
+
+string[] lines = "Hello\\nWorld".SplitLines();
+// lines = { "Hello", "World" }

ToUpperAt(str, r)

Definition

Returns a new string in which the characters in a specified range of the current string are converted to uppercase. Returns a string that is equivalent to the current string, but with the characters in the specified range converted to uppercase.

Arguments

TypeNameMeaning
stringstrThe string to modify.
RangerThe range of characters to convert to uppercase.

Usage

c#
using PeyrSharp.Extensions;
+
+string str = "aBcDeFgHiJ";
+string upper = str.ToUpperAt(2..6); // Convert the characters at indexes 2 to 6 (inclusive) to uppercase
+// upper = "aBCDEFGhij"

ToUpperAt(s)

Definition

Uppercases the first letter of a string. Returns a string with the first letter uppercased.

Arguments

TypeNameMeaning
stringsThe string to capitalize.

Usage

c#
using PeyrSharp.Extensions;
+
+string str = "test";
+string upper = str.ToUpperAt(); // Uppercase the first letter of the string
+// upper = "Test"

Reverse(input)

Definition

Reverses a string.

Arguments

TypeNameDescription
stringinputThe string to reverse.

Returns

A string representing the reversed input.

Usage

c#
using PeyrSharp.Extensions;
+
+string reversed = "Hello, world!".Reverse();
+// Output: "!dlrow ,olleH"
`,88),l=[o];function r(p,c,i,d,h,u){return e(),a("div",null,l)}const F=s(t,[["render",r]]);export{D as __pageData,F as default}; diff --git a/docs/assets/extensions_string.md.18eff540.lean.js b/docs/assets/extensions_string.md.18eff540.lean.js new file mode 100644 index 0000000..7999502 --- /dev/null +++ b/docs/assets/extensions_string.md.18eff540.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as e,R as n}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"StringExtensions","description":"","frontmatter":{},"headers":[],"relativePath":"extensions/string.md","filePath":"extensions/string.md","lastUpdated":1678016378000}'),t={name:"extensions/string.md"},o=n("",88),l=[o];function r(p,c,i,d,h,u){return e(),a("div",null,l)}const F=s(t,[["render",r]]);export{D as __pageData,F as default}; diff --git a/docs/assets/get-started.md.ac86dbb2.js b/docs/assets/get-started.md.ac86dbb2.js new file mode 100644 index 0000000..10d3ab9 --- /dev/null +++ b/docs/assets/get-started.md.ac86dbb2.js @@ -0,0 +1,6 @@ +import{_ as a,c as e,o as s,R as t}from"./chunks/framework.bdd825cc.js";const m=JSON.parse('{"title":"Get Started","description":"","frontmatter":{},"headers":[],"relativePath":"get-started.md","filePath":"get-started.md","lastUpdated":1683355029000}'),l={name:"get-started.md"},o=t(`

Get Started

Packages and modules

Before installing PeyrSharp, you may want to consider what features you will actually need to use in your project. Indeed, PeyrSharp is divided in multiple modules and packages.

If you think you need all the features of PeyrSharp, you can directly install the PeyrSharp NuGet package. However, you can also install the packages that you only need in your project. Here's a list of all the packages and their features:

PeyrSharp, the main package, that contains all of the followings:

PeyrSharp.Core, the basic methods and features of C#
  • Maths
  • Password
  • Guid
  • Converters
  • Internet
  • Crypt
PeyrSharp.Env, methods related to the file system and to the current execution environment.
  • FileSys
  • Logger
  • Update
  • System
PeyrSharp.Enums, all enumerations used by PeyrSharp
  • LogLevel
  • WindowsVersion
  • TimeUnits
  • SystemThemes
  • OperatingSystems
  • StorageUnits
  • ControlAlignment
  • PasswordPresets
  • PasswordStrength
PeyrSharp.Exceptions, all exceptions used by PeyrSharp
  • RGBInvalidValueException
  • HEXInvalidValueException
  • InvalidGuidLengthException
PeyrSharp.Extensions, extension methods, that extends basic types, such as string, int, double or arrays (T[]).
  • String
  • Int
  • Double
  • Array (T[])
PeyrSharp.UiHelpers, methods related to Windows Forms or to the Windows Presentation Framework (WPF).
  • WinForms
  • Screen
  • WPF

Compatibility

Platforms

Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platforms.

Package/PlatformWindowsmacOSLinux + others
Core
Env⚠️⚠️
Enums
Exceptions
Extensions
UiHelpers

Caption:

  • ✅ Full Support
  • ⚠️ Partial Support
  • ❌ Unsupported platform

Frameworks

PeyrSharp is available in the following frameworks

  • .NET 5
  • .NET 6
  • .NET 7

INFO

.NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported.

Installation methods

PeyrShall is available on NuGet, you can install it by running the following command:

.NET CLI

You can add PeyrSharp to your project the .NET CLI.

powershell
dotnet add package PeyrSharp --version 1.0.0.2211

Package Manager

sh
NuGet\\Install-Package PeyrSharp -Version 1.0.0.2211

Package Reference

You can specify in your project file that it is dependent on PeyrSharp.

xml
<PackageReference Include="PeyrSharp" Version="1.0.0.2211" />

Start coding

To call methods and classes included in PeyrSharp, you will need to add the corresponding using directives in your code file.

c#
using PeyrSharp.Core;
+using PeyrSharp.Env;
+using PeyrSharp.Enums;
+using PeyrSharp.Exceptions;
+using PeyrSharp.Extensions;
+using PeyrSharp.UiHelpers; // Windows only

For more information, you can check the reference

`,35),n=[o];function r(i,p,c,d,h,u){return s(),e("div",null,n)}const g=a(l,[["render",r]]);export{m as __pageData,g as default}; diff --git a/docs/assets/get-started.md.ac86dbb2.lean.js b/docs/assets/get-started.md.ac86dbb2.lean.js new file mode 100644 index 0000000..41b6f2d --- /dev/null +++ b/docs/assets/get-started.md.ac86dbb2.lean.js @@ -0,0 +1 @@ +import{_ as a,c as e,o as s,R as t}from"./chunks/framework.bdd825cc.js";const m=JSON.parse('{"title":"Get Started","description":"","frontmatter":{},"headers":[],"relativePath":"get-started.md","filePath":"get-started.md","lastUpdated":1683355029000}'),l={name:"get-started.md"},o=t("",35),n=[o];function r(i,p,c,d,h,u){return s(),e("div",null,n)}const g=a(l,[["render",r]]);export{m as __pageData,g as default}; diff --git a/docs/assets/get-started.md.d3385ee5.js b/docs/assets/get-started.md.d3385ee5.js deleted file mode 100644 index 8ba0775..0000000 --- a/docs/assets/get-started.md.d3385ee5.js +++ /dev/null @@ -1,10 +0,0 @@ -import{_ as a,c as e,o as s,Q as t}from"./chunks/framework.7addaa9c.js";const m=JSON.parse('{"title":"Get Started","description":"","frontmatter":{},"headers":[],"relativePath":"get-started.md","lastUpdated":1680429306000}'),l={name:"get-started.md"},n=t(`

Get Started

Packages and modules

Before installing PeyrSharp, you may want to consider what features you will actually need to use in your project. Indeed, PeyrSharp is divided in multiple modules and packages.

If you think you need all the features of PeyrSharp, you can directly install the PeyrSharp NuGet package. However, you can also install the packages that you only need in your project. Here's a list of all the packages and their features:

PeyrSharp, the main package, that contains all of the followings:

PeyrSharp.Core, the basic methods and features of C#
  • Maths
  • Password
  • Guid
  • Converters
  • Internet
  • Crypt
PeyrSharp.Env, methods related to the file system and to the current execution environment.
  • FileSys
  • Logger
  • Update
  • System
PeyrSharp.Enums, all enumerations used by PeyrSharp
  • LogLevel
  • WindowsVersion
  • TimeUnits
  • SystemThemes
  • OperatingSystems
  • StorageUnits
  • ControlAlignment
  • PasswordPresets
  • PasswordStrength
PeyrSharp.Exceptions, all exceptions used by PeyrSharp
  • RGBInvalidValueException
  • HEXInvalidValueException
  • InvalidGuidLengthException
PeyrSharp.Extensions, extension methods, that extends basic types, such as string, int, double or arrays (T[]).
  • String
  • Int
  • Double
  • Array (T[])
PeyrSharp.UiHelpers, methods related to Windows Forms or to the Windows Presentation Framework (WPF).
  • WinForms
  • Screen
  • WPF

Compatibility

Platforms

Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platforms.

Package/PlatformWindowsmacOSLinux + others
Core
Env⚠️⚠️
Enums
Exceptions
Extensions
UiHelpers

Caption:

  • ✅ Full Support
  • ⚠️ Partial Support
  • ❌ Unsupported platform

Frameworks

PeyrSharp is available in the following frameworks

  • .NET 5
  • .NET 6
  • .NET 7 (soon)

INFO

.NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported.

Installation methods

PeyrShall is available on NuGet, you can install it by running the following command:

.NET CLI

You can add PeyrSharp to your project the .NET CLI.

powershell
dotnet add package PeyrSharp --version 1.0.0.2211
-

Package Manager

sh
NuGet\\Install-Package PeyrSharp -Version 1.0.0.2211
-

Package Reference

You can specify in your project file that it is dependent on PeyrSharp.

xml
<PackageReference Include="PeyrSharp" Version="1.0.0.2211" />
-

Start coding

To call methods and classes included in PeyrSharp, you will need to add the corresponding using directives in your code file.

c#
using PeyrSharp.Core;
-using PeyrSharp.Env;
-using PeyrSharp.Enums;
-using PeyrSharp.Exceptions;
-using PeyrSharp.Extensions;
-using PeyrSharp.UiHelpers; // Windows only
-

For more information, you can check the reference

`,35),o=[n];function r(i,p,c,d,h,u){return s(),e("div",null,o)}const g=a(l,[["render",r]]);export{m as __pageData,g as default}; diff --git a/docs/assets/get-started.md.d3385ee5.lean.js b/docs/assets/get-started.md.d3385ee5.lean.js deleted file mode 100644 index c54170b..0000000 --- a/docs/assets/get-started.md.d3385ee5.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as e,o as s,Q as t}from"./chunks/framework.7addaa9c.js";const m=JSON.parse('{"title":"Get Started","description":"","frontmatter":{},"headers":[],"relativePath":"get-started.md","lastUpdated":1680429306000}'),l={name:"get-started.md"},n=t("",35),o=[n];function r(i,p,c,d,h,u){return s(),e("div",null,o)}const g=a(l,[["render",r]]);export{m as __pageData,g as default}; diff --git a/docs/assets/index.md.25b4b320.js b/docs/assets/index.md.3e538f10.js similarity index 78% rename from docs/assets/index.md.25b4b320.js rename to docs/assets/index.md.3e538f10.js index 4cfb8f5..f80c4fe 100644 --- a/docs/assets/index.md.25b4b320.js +++ b/docs/assets/index.md.3e538f10.js @@ -1 +1 @@ -import{_ as e,c as t,o as a}from"./chunks/framework.7addaa9c.js";const m=JSON.parse(`{"title":"PeyrSharp","titleTemplate":"A C# library designed to make developers' job easier.","description":"","frontmatter":{"layout":"home","title":"PeyrSharp","titleTemplate":"A C# library designed to make developers' job easier.","hero":{"name":"PeyrSharp","text":"Made for you.","tagline":"A C# library designed to make developers' job easier.","image":{"src":"/logo.png","alt":"PeyrSharp"},"actions":[{"theme":"brand","text":"Get Started","link":"/get-started"},{"theme":"alt","text":"Reference","link":"/reference"}]},"features":[{"title":"Easy-to-use","details":"Using PeyrSharp in a project is very easy and intuitive.","icon":"✅"},{"title":".NET Powered","details":"PeyrSharp is built using C# and .NET. It's available for projects targeting .NET 5 and higher.","icon":"🚀"},{"title":"Cross-Platform","details":"PeyrSharp is compatible with every operating systems that .NET supports.","icon":"🖥️"}]},"headers":[],"relativePath":"index.md","lastUpdated":1665305917000}`),r={name:"index.md"};function i(s,o,n,l,d,p){return a(),t("div")}const h=e(r,[["render",i]]);export{m as __pageData,h as default}; +import{_ as e,c as t,o as a}from"./chunks/framework.bdd825cc.js";const m=JSON.parse(`{"title":"PeyrSharp","titleTemplate":"A C# library designed to make developers' job easier.","description":"","frontmatter":{"layout":"home","title":"PeyrSharp","titleTemplate":"A C# library designed to make developers' job easier.","hero":{"name":"PeyrSharp","text":"Made for you.","tagline":"A C# library designed to make developers' job easier.","image":{"src":"/logo.png","alt":"PeyrSharp"},"actions":[{"theme":"brand","text":"Get Started","link":"/get-started"},{"theme":"alt","text":"Reference","link":"/reference"}]},"features":[{"title":"Easy-to-use","details":"Using PeyrSharp in a project is very easy and intuitive.","icon":"✅"},{"title":".NET Powered","details":"PeyrSharp is built using C# and .NET. It's available for projects targeting .NET 5 and higher.","icon":"🚀"},{"title":"Cross-Platform","details":"PeyrSharp is compatible with every operating systems that .NET supports.","icon":"🖥️"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1665305917000}`),r={name:"index.md"};function i(s,o,n,l,d,p){return a(),t("div")}const h=e(r,[["render",i]]);export{m as __pageData,h as default}; diff --git a/docs/assets/index.md.25b4b320.lean.js b/docs/assets/index.md.3e538f10.lean.js similarity index 78% rename from docs/assets/index.md.25b4b320.lean.js rename to docs/assets/index.md.3e538f10.lean.js index 4cfb8f5..f80c4fe 100644 --- a/docs/assets/index.md.25b4b320.lean.js +++ b/docs/assets/index.md.3e538f10.lean.js @@ -1 +1 @@ -import{_ as e,c as t,o as a}from"./chunks/framework.7addaa9c.js";const m=JSON.parse(`{"title":"PeyrSharp","titleTemplate":"A C# library designed to make developers' job easier.","description":"","frontmatter":{"layout":"home","title":"PeyrSharp","titleTemplate":"A C# library designed to make developers' job easier.","hero":{"name":"PeyrSharp","text":"Made for you.","tagline":"A C# library designed to make developers' job easier.","image":{"src":"/logo.png","alt":"PeyrSharp"},"actions":[{"theme":"brand","text":"Get Started","link":"/get-started"},{"theme":"alt","text":"Reference","link":"/reference"}]},"features":[{"title":"Easy-to-use","details":"Using PeyrSharp in a project is very easy and intuitive.","icon":"✅"},{"title":".NET Powered","details":"PeyrSharp is built using C# and .NET. It's available for projects targeting .NET 5 and higher.","icon":"🚀"},{"title":"Cross-Platform","details":"PeyrSharp is compatible with every operating systems that .NET supports.","icon":"🖥️"}]},"headers":[],"relativePath":"index.md","lastUpdated":1665305917000}`),r={name:"index.md"};function i(s,o,n,l,d,p){return a(),t("div")}const h=e(r,[["render",i]]);export{m as __pageData,h as default}; +import{_ as e,c as t,o as a}from"./chunks/framework.bdd825cc.js";const m=JSON.parse(`{"title":"PeyrSharp","titleTemplate":"A C# library designed to make developers' job easier.","description":"","frontmatter":{"layout":"home","title":"PeyrSharp","titleTemplate":"A C# library designed to make developers' job easier.","hero":{"name":"PeyrSharp","text":"Made for you.","tagline":"A C# library designed to make developers' job easier.","image":{"src":"/logo.png","alt":"PeyrSharp"},"actions":[{"theme":"brand","text":"Get Started","link":"/get-started"},{"theme":"alt","text":"Reference","link":"/reference"}]},"features":[{"title":"Easy-to-use","details":"Using PeyrSharp in a project is very easy and intuitive.","icon":"✅"},{"title":".NET Powered","details":"PeyrSharp is built using C# and .NET. It's available for projects targeting .NET 5 and higher.","icon":"🚀"},{"title":"Cross-Platform","details":"PeyrSharp is compatible with every operating systems that .NET supports.","icon":"🖥️"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1665305917000}`),r={name:"index.md"};function i(s,o,n,l,d,p){return a(),t("div")}const h=e(r,[["render",i]]);export{m as __pageData,h as default}; diff --git a/docs/assets/intro.md.ea6d8c4a.js b/docs/assets/intro.md.ea6d8c4a.js new file mode 100644 index 0000000..8065285 --- /dev/null +++ b/docs/assets/intro.md.ea6d8c4a.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as a,R as r}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"Introduction","description":"","frontmatter":{},"headers":[],"relativePath":"intro.md","filePath":"intro.md","lastUpdated":1683355029000}'),i={name:"intro.md"},o=r('

Introduction

The roots

In March 2020, we published LeoCorpLibrary, which was also a C# library that contains useful methods. When we started the development of it, we didn't know where the project will go yet. Over the releases, we've added more and more methods and new features. However, the meaning and the purpose of LeoCorpLibrary was becoming less clear for everyone; it was becoming a mess. This is why we decided to rather not release v5, but instead, we decided to make a brand new .NET Library, PeyrSharp.

Our next product

PeyrSharp is a C# written library designed to make developers' life easier. We've all written code that we wish we hadn't. PeyrSharp is here to respond to this need; by implementing useful methods in various domains: Mathematics, Web/HTTP requests, unit converters, extensions, environment-related operations, and more!

Modules

PeyrSharp is divided in multiple packages:

PeyrSharp, the main package, that contains all of the followings:

PeyrSharp.Core, the basic methods and features of C#
  • Maths
  • Password
  • Guid
  • Converters
  • Internet
  • Crypt
PeyrSharp.Env, methods related to the file system and to the current execution environment.
  • FileSys
  • Logger
  • Update
  • System
PeyrSharp.Enums, all enumerations used by PeyrSharp
  • WindowsVersion
  • TimeUnits
  • SystemThemes
  • OperatingSystems
  • StorageUnits
  • ControlAlignment
  • PasswordPresets
  • PasswordStrength
PeyrSharp.Exceptions, all exceptions used by PeyrSharp
  • RGBInvalidValueException
  • HEXInvalidValueException
  • InvalidGuidLengthException
PeyrSharp.Extensions, extension methods, that extends basic types, such as string, int, double or arrays (T[]).
  • String
  • Int
  • Double
  • Array (T[])
PeyrSharp.UiHelpers, methods related to Windows Forms or to the Windows Presentation Framework (WPF).
  • WinForms
  • Screen
  • WPF

Compatibility

Platforms

Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platform.

Package/PlatformWindowsmacOSLinux + others
Core
Env⚠️⚠️
Enums
Exceptions
Extensions
UiHelpers

Caption:

  • ✅ Full Support
  • ⚠️ Partial Support
  • ❌ Unsupported platform

Frameworks

PeyrSharp is available in the following frameworks

  • .NET 5
  • .NET 6
  • .NET 7

NOTE

.NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported.

',24),s=[o];function l(d,n,h,c,m,u){return a(),e("div",null,s)}const b=t(i,[["render",l]]);export{y as __pageData,b as default}; diff --git a/docs/assets/intro.md.ea6d8c4a.lean.js b/docs/assets/intro.md.ea6d8c4a.lean.js new file mode 100644 index 0000000..a64b971 --- /dev/null +++ b/docs/assets/intro.md.ea6d8c4a.lean.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as a,R as r}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"Introduction","description":"","frontmatter":{},"headers":[],"relativePath":"intro.md","filePath":"intro.md","lastUpdated":1683355029000}'),i={name:"intro.md"},o=r("",24),s=[o];function l(d,n,h,c,m,u){return a(),e("div",null,s)}const b=t(i,[["render",l]]);export{y as __pageData,b as default}; diff --git a/docs/assets/intro.md.ecc1f751.js b/docs/assets/intro.md.ecc1f751.js deleted file mode 100644 index fe85192..0000000 --- a/docs/assets/intro.md.ecc1f751.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as a,Q as r}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"Introduction","description":"","frontmatter":{},"headers":[],"relativePath":"intro.md","lastUpdated":1665225647000}'),i={name:"intro.md"},o=r('

Introduction

The roots

In March 2020, we published LeoCorpLibrary, which was also a C# library that contains useful methods. When we started the development of it, we didn't know where the project will go yet. Over the releases, we've added more and more methods and new features. However, the meaning and the purpose of LeoCorpLibrary was becoming less clear for everyone; it was becoming a mess. This is why we decided to rather not release v5, but instead, we decided to make a brand new .NET Library, PeyrSharp.

Our next product

PeyrSharp is a C# written library designed to make developers' life easier. We've all written code that we wish we hadn't. PeyrSharp is here to respond to this need; by implementing useful methods in various domains: Mathematics, Web/HTTP requests, unit converters, extensions, environment-related operations, and more!

Modules

PeyrSharp is divided in multiple packages:

PeyrSharp, the main package, that contains all of the followings:

PeyrSharp.Core, the basic methods and features of C#
  • Maths
  • Password
  • Guid
  • Converters
  • Internet
  • Crypt
PeyrSharp.Env, methods related to the file system and to the current execution environment.
  • FileSys
  • Logger
  • Update
  • System
PeyrSharp.Enums, all enumerations used by PeyrSharp
  • WindowsVersion
  • TimeUnits
  • SystemThemes
  • OperatingSystems
  • StorageUnits
  • ControlAlignment
  • PasswordPresets
  • PasswordStrength
PeyrSharp.Exceptions, all exceptions used by PeyrSharp
  • RGBInvalidValueException
  • HEXInvalidValueException
  • InvalidGuidLengthException
PeyrSharp.Extensions, extension methods, that extends basic types, such as string, int, double or arrays (T[]).
  • String
  • Int
  • Double
  • Array (T[])
PeyrSharp.UiHelpers, methods related to Windows Forms or to the Windows Presentation Framework (WPF).
  • WinForms
  • Screen
  • WPF

Compatibility

Platforms

Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platform.

Package/PlatformWindowsmacOSLinux + others
Core
Env⚠️⚠️
Enums
Exceptions
Extensions
UiHelpers

Caption:

  • ✅ Full Support
  • ⚠️ Partial Support
  • ❌ Unsupported platform

Frameworks

PeyrSharp is available in the following frameworks

  • .NET 5
  • .NET 6
  • .NET 7 (soon)

NOTE

.NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported.

',24),s=[o];function l(d,n,h,c,m,u){return a(),e("div",null,s)}const b=t(i,[["render",l]]);export{y as __pageData,b as default}; diff --git a/docs/assets/intro.md.ecc1f751.lean.js b/docs/assets/intro.md.ecc1f751.lean.js deleted file mode 100644 index 7927693..0000000 --- a/docs/assets/intro.md.ecc1f751.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as a,Q as r}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"Introduction","description":"","frontmatter":{},"headers":[],"relativePath":"intro.md","lastUpdated":1665225647000}'),i={name:"intro.md"},o=r("",24),s=[o];function l(d,n,h,c,m,u){return a(),e("div",null,s)}const b=t(i,[["render",l]]);export{y as __pageData,b as default}; diff --git a/docs/assets/reference.md.169cc3bf.js b/docs/assets/reference.md.169cc3bf.js deleted file mode 100644 index a78a737..0000000 --- a/docs/assets/reference.md.169cc3bf.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as r,o as a,Q as l}from"./chunks/framework.7addaa9c.js";const d=JSON.parse('{"title":"Reference","description":"","frontmatter":{},"headers":[],"relativePath":"reference.md","lastUpdated":1678016378000}'),t={name:"reference.md"},i=l('

Reference

The reference of PeyrSharp.

PeyrSharp.Core

PeyrSharp.Env

PeyrSharp.Enums

PeyrSharp.Exceptions

PeyrSharp.Extensions

PeyrSharp.UiHelpers

',14),h=[i];function o(s,n,m,c,p,f){return a(),r("div",null,h)}const y=e(t,[["render",o]]);export{d as __pageData,y as default}; diff --git a/docs/assets/reference.md.169cc3bf.lean.js b/docs/assets/reference.md.169cc3bf.lean.js deleted file mode 100644 index ac5db2a..0000000 --- a/docs/assets/reference.md.169cc3bf.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as r,o as a,Q as l}from"./chunks/framework.7addaa9c.js";const d=JSON.parse('{"title":"Reference","description":"","frontmatter":{},"headers":[],"relativePath":"reference.md","lastUpdated":1678016378000}'),t={name:"reference.md"},i=l("",14),h=[i];function o(s,n,m,c,p,f){return a(),r("div",null,h)}const y=e(t,[["render",o]]);export{d as __pageData,y as default}; diff --git a/docs/assets/reference.md.a5f4f274.js b/docs/assets/reference.md.a5f4f274.js new file mode 100644 index 0000000..3d1047f --- /dev/null +++ b/docs/assets/reference.md.a5f4f274.js @@ -0,0 +1 @@ +import{_ as e,c as r,o as a,R as l}from"./chunks/framework.bdd825cc.js";const d=JSON.parse('{"title":"Reference","description":"","frontmatter":{},"headers":[],"relativePath":"reference.md","filePath":"reference.md","lastUpdated":1683446294000}'),t={name:"reference.md"},i=l('

Reference

The reference of PeyrSharp.

PeyrSharp.Core

PeyrSharp.Env

PeyrSharp.Enums

PeyrSharp.Exceptions

PeyrSharp.Extensions

PeyrSharp.UiHelpers

',14),h=[i];function o(s,n,m,c,f,p){return a(),r("div",null,h)}const y=e(t,[["render",o]]);export{d as __pageData,y as default}; diff --git a/docs/assets/reference.md.a5f4f274.lean.js b/docs/assets/reference.md.a5f4f274.lean.js new file mode 100644 index 0000000..eaf3df7 --- /dev/null +++ b/docs/assets/reference.md.a5f4f274.lean.js @@ -0,0 +1 @@ +import{_ as e,c as r,o as a,R as l}from"./chunks/framework.bdd825cc.js";const d=JSON.parse('{"title":"Reference","description":"","frontmatter":{},"headers":[],"relativePath":"reference.md","filePath":"reference.md","lastUpdated":1683446294000}'),t={name:"reference.md"},i=l("",14),h=[i];function o(s,n,m,c,f,p){return a(),r("div",null,h)}const y=e(t,[["render",o]]);export{d as __pageData,y as default}; diff --git a/docs/assets/style.3a77d139.css b/docs/assets/style.3a77d139.css new file mode 100644 index 0000000..b962cd7 --- /dev/null +++ b/docs/assets/style.3a77d139.css @@ -0,0 +1 @@ +@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-cyrillic.5f2c6c8c.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-cyrillic-ext.e75737ce.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-greek.d5a6d92a.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-greek-ext.ab0619bc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-latin.2ed14f66.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-latin-ext.0030eebd.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-vietnamese.14ce25a6.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-cyrillic.ea42a392.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-cyrillic-ext.33bd5a8e.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-greek.8f4463c4.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-greek-ext.4fbe9427.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-latin.bd3b6f56.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-latin-ext.bd8920cc.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-vietnamese.6ce511fb.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Chinese Quotes;src:local("PingFang SC Regular"),local("PingFang SC"),local("SimHei"),local("Source Han Sans SC");unicode-range:U+2018,U+2019,U+201C,U+201D}:root{--vp-c-white: #ffffff;--vp-c-black: #000000;--vp-c-gray: #8e8e93;--vp-c-text-light-1: rgba(60, 60, 67);--vp-c-text-light-2: rgba(60, 60, 67, .75);--vp-c-text-light-3: rgba(60, 60, 67, .33);--vp-c-text-dark-1: rgba(255, 255, 245, .86);--vp-c-text-dark-2: rgba(235, 235, 245, .6);--vp-c-text-dark-3: rgba(235, 235, 245, .38);--vp-c-green: #10b981;--vp-c-green-light: #34d399;--vp-c-green-lighter: #6ee7b7;--vp-c-green-dark: #059669;--vp-c-green-darker: #047857;--vp-c-green-dimm-1: rgba(16, 185, 129, .05);--vp-c-green-dimm-2: rgba(16, 185, 129, .2);--vp-c-green-dimm-3: rgba(16, 185, 129, .5);--vp-c-yellow: #d97706;--vp-c-yellow-light: #f59e0b;--vp-c-yellow-lighter: #fbbf24;--vp-c-yellow-dark: #b45309;--vp-c-yellow-darker: #92400e;--vp-c-yellow-dimm-1: rgba(234, 179, 8, .05);--vp-c-yellow-dimm-2: rgba(234, 179, 8, .2);--vp-c-yellow-dimm-3: rgba(234, 179, 8, .5);--vp-c-red: #f43f5e;--vp-c-red-light: #fb7185;--vp-c-red-lighter: #fda4af;--vp-c-red-dark: #e11d48;--vp-c-red-darker: #be123c;--vp-c-red-dimm-1: rgba(244, 63, 94, .05);--vp-c-red-dimm-2: rgba(244, 63, 94, .2);--vp-c-red-dimm-3: rgba(244, 63, 94, .5);--vp-c-sponsor: #db2777}:root{--vp-c-bg: #ffffff;--vp-c-bg-elv: #ffffff;--vp-c-bg-elv-up: #ffffff;--vp-c-bg-elv-down: #f6f6f7;--vp-c-bg-elv-mute: #f6f6f7;--vp-c-bg-soft: #f6f6f7;--vp-c-bg-soft-up: #f9f9fa;--vp-c-bg-soft-down: #e3e3e5;--vp-c-bg-soft-mute: #e3e3e5;--vp-c-bg-alt: #f6f6f7;--vp-c-border: rgba(60, 60, 67, .29);--vp-c-divider: rgba(60, 60, 67, .12);--vp-c-gutter: rgba(60, 60, 67, .12);--vp-c-neutral: var(--vp-c-black);--vp-c-neutral-inverse: var(--vp-c-white);--vp-c-text-1: var(--vp-c-text-light-1);--vp-c-text-2: var(--vp-c-text-light-2);--vp-c-text-3: var(--vp-c-text-light-3);--vp-c-text-inverse-1: var(--vp-c-text-dark-1);--vp-c-text-inverse-2: var(--vp-c-text-dark-2);--vp-c-text-inverse-3: var(--vp-c-text-dark-3);--vp-c-text-code: #476582;--vp-c-brand: var(--vp-c-green);--vp-c-brand-light: var(--vp-c-green-light);--vp-c-brand-lighter: var(--vp-c-green-lighter);--vp-c-brand-dark: var(--vp-c-green-dark);--vp-c-brand-darker: var(--vp-c-green-darker);--vp-c-mute: #f6f6f7;--vp-c-mute-light: #f9f9fc;--vp-c-mute-lighter: #ffffff;--vp-c-mute-dark: #e3e3e5;--vp-c-mute-darker: #d7d7d9}.dark{--vp-c-bg: #1e1e20;--vp-c-bg-elv: #252529;--vp-c-bg-elv-up: #313136;--vp-c-bg-elv-down: #1e1e20;--vp-c-bg-elv-mute: #313136;--vp-c-bg-soft: #252529;--vp-c-bg-soft-up: #313136;--vp-c-bg-soft-down: #1e1e20;--vp-c-bg-soft-mute: #313136;--vp-c-bg-alt: #161618;--vp-c-border: rgba(82, 82, 89, .68);--vp-c-divider: rgba(82, 82, 89, .32);--vp-c-gutter: #000000;--vp-c-neutral: var(--vp-c-white);--vp-c-neutral-inverse: var(--vp-c-black);--vp-c-text-1: var(--vp-c-text-dark-1);--vp-c-text-2: var(--vp-c-text-dark-2);--vp-c-text-3: var(--vp-c-text-dark-3);--vp-c-text-inverse-1: var(--vp-c-text-light-1);--vp-c-text-inverse-2: var(--vp-c-text-light-2);--vp-c-text-inverse-3: var(--vp-c-text-light-3);--vp-c-text-code: #c9def1;--vp-c-mute: #313136;--vp-c-mute-light: #3a3a3c;--vp-c-mute-lighter: #505053;--vp-c-mute-dark: #2c2c30;--vp-c-mute-darker: #252529}:root{--vp-font-family-base: "Chinese Quotes", "Inter var", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}:root{--vp-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .07);--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .08);--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, .12), 0 3px 9px rgba(0, 0, 0, .12);--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, .16), 0 4px 12px rgba(0, 0, 0, .16)}:root{--vp-z-index-local-nav: 10;--vp-z-index-nav: 20;--vp-z-index-layout-top: 30;--vp-z-index-backdrop: 40;--vp-z-index-sidebar: 50;--vp-z-index-footer: 60}:root{--vp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2'/%3E%3C/svg%3E");--vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-6 9 2 2 4-4'/%3E%3C/svg%3E")}:root{--vp-layout-max-width: 1440px}:root{--vp-header-anchor-symbol: "#"}:root{--vp-code-line-height: 1.7;--vp-code-font-size: .875em;--vp-c-code-dimm: var(--vp-c-text-dark-3);--vp-code-block-color: var(--vp-c-text-dark-1);--vp-code-block-bg: #292b30;--vp-code-block-bg-light: #1e1e20;--vp-code-block-divider-color: #000000;--vp-code-line-highlight-color: rgba(0, 0, 0, .5);--vp-code-line-number-color: var(--vp-c-code-dimm);--vp-code-line-diff-add-color: var(--vp-c-green-dimm-2);--vp-code-line-diff-add-symbol-color: var(--vp-c-green);--vp-code-line-diff-remove-color: var(--vp-c-red-dimm-2);--vp-code-line-diff-remove-symbol-color: var(--vp-c-red);--vp-code-line-warning-color: var(--vp-c-yellow-dimm-2);--vp-code-line-error-color: var(--vp-c-red-dimm-2);--vp-code-copy-code-border-color: transparent;--vp-code-copy-code-bg: var(--vp-code-block-bg-light);--vp-code-copy-code-hover-border-color: var(--vp-c-divider);--vp-code-copy-code-hover-bg: var(--vp-code-block-bg-light);--vp-code-copy-code-active-text: var(--vp-c-text-dark-2);--vp-code-tab-divider: var(--vp-code-block-divider-color);--vp-code-tab-text-color: var(--vp-c-text-dark-2);--vp-code-tab-bg: var(--vp-code-block-bg);--vp-code-tab-hover-text-color: var(--vp-c-text-dark-1);--vp-code-tab-active-text-color: var(--vp-c-text-dark-1);--vp-code-tab-active-bar-color: var(--vp-c-brand)}.dark{--vp-code-block-bg: #161618}:root:not(.dark) .vp-adaptive-theme{--vp-c-code-dimm: var(--vp-c-text-2);--vp-code-block-color: var(--vp-c-text-1);--vp-code-block-bg: #f8f8f8;--vp-code-block-divider-color: var(--vp-c-divider);--vp-code-line-highlight-color: #ececec;--vp-code-line-number-color: var(--vp-c-code-dimm);--vp-code-copy-code-bg: #e2e2e2;--vp-code-copy-code-hover-bg: #dcdcdc;--vp-code-copy-code-active-text: var(--vp-c-text-2);--vp-code-tab-divider: var(--vp-c-divider);--vp-code-tab-text-color: var(--vp-c-text-2);--vp-code-tab-bg: var(--vp-code-block-bg);--vp-code-tab-hover-text-color: var(--vp-c-text-1);--vp-code-tab-active-text-color: var(--vp-c-text-1)}:root{--vp-button-brand-border: var(--vp-c-brand-lighter);--vp-button-brand-text: var(--vp-c-white);--vp-button-brand-bg: var(--vp-c-brand);--vp-button-brand-hover-border: var(--vp-c-brand-lighter);--vp-button-brand-hover-text: var(--vp-c-white);--vp-button-brand-hover-bg: var(--vp-c-brand-dark);--vp-button-brand-active-border: var(--vp-c-brand-lighter);--vp-button-brand-active-text: var(--vp-c-white);--vp-button-brand-active-bg: var(--vp-c-brand-darker);--vp-button-alt-border: var(--vp-c-border);--vp-button-alt-text: var(--vp-c-neutral);--vp-button-alt-bg: var(--vp-c-mute);--vp-button-alt-hover-border: var(--vp-c-border);--vp-button-alt-hover-text: var(--vp-c-neutral);--vp-button-alt-hover-bg: var(--vp-c-mute-dark);--vp-button-alt-active-border: var(--vp-c-border);--vp-button-alt-active-text: var(--vp-c-neutral);--vp-button-alt-active-bg: var(--vp-c-mute-darker);--vp-button-sponsor-border: var(--vp-c-gray-light-3);--vp-button-sponsor-text: var(--vp-c-text-light-2);--vp-button-sponsor-bg: transparent;--vp-button-sponsor-hover-border: var(--vp-c-sponsor);--vp-button-sponsor-hover-text: var(--vp-c-sponsor);--vp-button-sponsor-hover-bg: transparent;--vp-button-sponsor-active-border: var(--vp-c-sponsor);--vp-button-sponsor-active-text: var(--vp-c-sponsor);--vp-button-sponsor-active-bg: transparent}.dark{--vp-button-sponsor-border: var(--vp-c-gray-dark-1);--vp-button-sponsor-text: var(--vp-c-text-dark-2)}:root{--vp-custom-block-font-size: 14px;--vp-custom-block-code-font-size: 13px;--vp-custom-block-info-border: var(--vp-c-border);--vp-custom-block-info-text: var(--vp-c-text-2);--vp-custom-block-info-bg: var(--vp-c-bg-soft-up);--vp-custom-block-info-code-bg: var(--vp-c-bg-soft);--vp-custom-block-tip-border: var(--vp-c-green);--vp-custom-block-tip-text: var(--vp-c-green-dark);--vp-custom-block-tip-bg: var(--vp-c-bg-soft-up);--vp-custom-block-tip-code-bg: var(--vp-c-bg-soft);--vp-custom-block-warning-border: var(--vp-c-yellow);--vp-custom-block-warning-text: var(--vp-c-yellow);--vp-custom-block-warning-bg: var(--vp-c-bg-soft-up);--vp-custom-block-warning-code-bg: var(--vp-c-bg-soft);--vp-custom-block-danger-border: var(--vp-c-red);--vp-custom-block-danger-text: var(--vp-c-red);--vp-custom-block-danger-bg: var(--vp-c-bg-soft-up);--vp-custom-block-danger-code-bg: var(--vp-c-bg-soft);--vp-custom-block-details-border: var(--vp-custom-block-info-border);--vp-custom-block-details-text: var(--vp-custom-block-info-text);--vp-custom-block-details-bg: var(--vp-custom-block-info-bg);--vp-custom-block-details-code-bg: var(--vp-custom-block-details-bg)}:root{--vp-input-border-color: var(--vp-c-border);--vp-input-bg-color: var(--vp-c-bg-alt);--vp-input-hover-border-color: var(--vp-c-gray);--vp-input-switch-bg-color: var(--vp-c-mute)}:root{--vp-nav-height: 64px;--vp-nav-bg-color: var(--vp-c-bg);--vp-nav-screen-bg-color: var(--vp-c-bg)}:root{--vp-local-nav-bg-color: var(--vp-c-bg)}:root{--vp-sidebar-width: 272px;--vp-sidebar-bg-color: var(--vp-c-bg-alt)}:root{--vp-backdrop-bg-color: rgba(0, 0, 0, .6)}:root{--vp-home-hero-name-color: var(--vp-c-brand);--vp-home-hero-name-background: transparent;--vp-home-hero-image-background-image: none;--vp-home-hero-image-filter: none}:root{--vp-badge-info-border: var(--vp-c-border);--vp-badge-info-text: var(--vp-c-text-2);--vp-badge-info-bg: var(--vp-c-bg-soft-up);--vp-badge-tip-border: var(--vp-c-green-dark);--vp-badge-tip-text: var(--vp-c-green);--vp-badge-tip-bg: var(--vp-c-green-dimm-1);--vp-badge-warning-border: var(--vp-c-yellow-dark);--vp-badge-warning-text: var(--vp-c-yellow);--vp-badge-warning-bg: var(--vp-c-yellow-dimm-1);--vp-badge-danger-border: var(--vp-c-red-dark);--vp-badge-danger-text: var(--vp-c-red);--vp-badge-danger-bg: var(--vp-c-red-dimm-1)}:root{--vp-carbon-ads-text-color: var(--vp-c-text-1);--vp-carbon-ads-poweredby-color: var(--vp-c-text-2);--vp-carbon-ads-bg-color: var(--vp-c-bg-soft);--vp-carbon-ads-hover-text-color: var(--vp-c-brand);--vp-carbon-ads-hover-poweredby-color: var(--vp-c-text-1)}:root{--vp-local-search-bg: var(--vp-c-bg);--vp-local-search-result-bg: var(--vp-c-bg);--vp-local-search-result-border: var(--vp-c-divider);--vp-local-search-result-selected-bg: var(--vp-c-bg);--vp-local-search-result-selected-border: var(--vp-c-brand);--vp-local-search-highlight-bg: var(--vp-c-green-lighter);--vp-local-search-highlight-text: var(--vp-c-black)}*,:before,:after{box-sizing:border-box}html{line-height:1.4;font-size:16px;-webkit-text-size-adjust:100%}html.dark{color-scheme:dark}body{margin:0;width:100%;min-width:320px;min-height:100vh;line-height:24px;font-family:var(--vp-font-family-base);font-size:16px;font-weight:400;color:var(--vp-c-text-1);background-color:var(--vp-c-bg);direction:ltr;font-synthesis:style;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin:0;line-height:24px;font-size:16px;font-weight:400}p{margin:0}strong,b{font-weight:600}a,area,button,[role=button],input,label,select,summary,textarea{touch-action:manipulation}a{color:inherit;text-decoration:inherit}ol,ul{list-style:none;margin:0;padding:0}blockquote{margin:0}pre,code,kbd,samp{font-family:var(--vp-font-family-mono)}img,svg,video,canvas,audio,iframe,embed,object{display:block}figure{margin:0}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{border:0;padding:0;line-height:inherit;color:inherit}button{padding:0;font-family:inherit;background-color:transparent;background-image:none}button:enabled,[role=button]:enabled{cursor:pointer}button:focus,button:focus-visible{outline:1px dotted;outline:4px auto -webkit-focus-ring-color}button:focus:not(:focus-visible){outline:none!important}input:focus,textarea:focus,select:focus{outline:none}table{border-collapse:collapse}input{background-color:transparent}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:var(--vp-c-text-3)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:var(--vp-c-text-3)}input::placeholder,textarea::placeholder{color:var(--vp-c-text-3)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}textarea{resize:vertical}select{-webkit-appearance:none}fieldset{margin:0;padding:0}h1,h2,h3,h4,h5,h6,li,p{overflow-wrap:break-word}vite-error-overlay{z-index:9999}.visually-hidden{position:absolute;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden}.custom-block{border:1px solid transparent;border-radius:8px;padding:16px 16px 8px;line-height:24px;font-size:var(--vp-custom-block-font-size);color:var(--vp-c-text-2)}.custom-block.info{border-color:var(--vp-custom-block-info-border);color:var(--vp-custom-block-info-text);background-color:var(--vp-custom-block-info-bg)}.custom-block.custom-block th,.custom-block.custom-block blockquote>p{font-size:var(--vp-custom-block-font-size);color:inherit}.custom-block.info code{background-color:var(--vp-custom-block-info-code-bg)}.custom-block.tip{border-color:var(--vp-custom-block-tip-border);color:var(--vp-custom-block-tip-text);background-color:var(--vp-custom-block-tip-bg)}.custom-block.tip code{background-color:var(--vp-custom-block-tip-code-bg)}.custom-block.warning{border-color:var(--vp-custom-block-warning-border);color:var(--vp-custom-block-warning-text);background-color:var(--vp-custom-block-warning-bg)}.custom-block.warning code{background-color:var(--vp-custom-block-warning-code-bg)}.custom-block.danger{border-color:var(--vp-custom-block-danger-border);color:var(--vp-custom-block-danger-text);background-color:var(--vp-custom-block-danger-bg)}.custom-block.danger code{background-color:var(--vp-custom-block-danger-code-bg)}.custom-block.details{border-color:var(--vp-custom-block-details-border);color:var(--vp-custom-block-details-text);background-color:var(--vp-custom-block-details-bg)}.custom-block.details code{background-color:var(--vp-custom-block-details-code-bg)}.custom-block-title{font-weight:600}.custom-block p+p{margin:8px 0}.custom-block.details summary{margin:0 0 8px;font-weight:700;cursor:pointer}.custom-block.details summary+p{margin:8px 0}.custom-block a{color:inherit;font-weight:600}.custom-block a:hover{text-decoration:underline}.custom-block code{font-size:var(--vp-custom-block-code-font-size)}.dark .vp-code-light{display:none}html:not(.dark) .vp-code-dark{display:none}.vp-code-group{margin-top:16px}.vp-code-group .tabs{position:relative;display:flex;margin-right:-24px;margin-left:-24px;padding:0 12px;background-color:var(--vp-code-tab-bg);overflow-x:auto;overflow-y:hidden}.vp-code-group .tabs:after{position:absolute;right:0;bottom:0;left:0;height:1px;background-color:var(--vp-code-tab-divider);content:""}@media (min-width: 640px){.vp-code-group .tabs{margin-right:0;margin-left:0;border-radius:8px 8px 0 0}}.vp-code-group .tabs input{position:absolute;opacity:0;pointer-events:none}.vp-code-group .tabs label{position:relative;display:inline-block;border-bottom:1px solid transparent;padding:0 12px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-code-tab-text-color);white-space:nowrap;cursor:pointer;transition:color .25s}.vp-code-group .tabs label:after{position:absolute;right:8px;bottom:-1px;left:8px;z-index:10;height:1px;content:"";background-color:transparent;transition:background-color .25s}.vp-code-group label:hover{color:var(--vp-code-tab-hover-text-color)}.vp-code-group input:checked+label{color:var(--vp-code-tab-active-text-color)}.vp-code-group input:checked+label:after{background-color:var(--vp-code-tab-active-bar-color)}.vp-code-group div[class*=language-]{display:none;margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.vp-code-group div[class*=language-].active{display:block}.vp-doc h1,.vp-doc h2,.vp-doc h3,.vp-doc h4,.vp-doc h5,.vp-doc h6{position:relative;font-weight:600;outline:none}.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:28px}.vp-doc h2{margin:48px 0 16px;border-top:1px solid var(--vp-c-divider);padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.vp-doc h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.vp-doc .header-anchor{float:left;margin-left:-.87em;padding-right:.23em;font-weight:500;user-select:none;opacity:0;transition:color .25s,opacity .25s}.vp-doc .header-anchor:before{content:var(--vp-header-anchor-symbol)}.vp-doc h1:hover .header-anchor,.vp-doc h1 .header-anchor:focus,.vp-doc h2:hover .header-anchor,.vp-doc h2 .header-anchor:focus,.vp-doc h3:hover .header-anchor,.vp-doc h3 .header-anchor:focus,.vp-doc h4:hover .header-anchor,.vp-doc h4 .header-anchor:focus,.vp-doc h5:hover .header-anchor,.vp-doc h5 .header-anchor:focus,.vp-doc h6:hover .header-anchor,.vp-doc h6 .header-anchor:focus{opacity:1}@media (min-width: 768px){.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:32px}}.vp-doc p,.vp-doc summary{margin:16px 0}.vp-doc p{line-height:28px}.vp-doc blockquote{margin:16px 0;border-left:2px solid var(--vp-c-divider);padding-left:16px;transition:border-color .5s}.vp-doc blockquote>p{margin:0;font-size:16px;color:var(--vp-c-text-2);transition:color .5s}.vp-doc a{font-weight:500;color:var(--vp-c-brand);text-decoration-style:dotted;transition:color .25s}.vp-doc a:hover{text-decoration:underline}.vp-doc strong{font-weight:600}.vp-doc ul,.vp-doc ol{padding-left:1.25rem;margin:16px 0}.vp-doc ul{list-style:disc}.vp-doc ol{list-style:decimal}.vp-doc li+li{margin-top:8px}.vp-doc li>ol,.vp-doc li>ul{margin:8px 0 0}.vp-doc table{display:block;border-collapse:collapse;margin:20px 0;overflow-x:auto}.vp-doc tr{border-top:1px solid var(--vp-c-divider);transition:background-color .5s}.vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}.vp-doc th,.vp-doc td{border:1px solid var(--vp-c-divider);padding:8px 16px}.vp-doc th{text-align:left;font-size:14px;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-doc td{font-size:14px}.vp-doc hr{margin:16px 0;border:none;border-top:1px solid var(--vp-c-divider)}.vp-doc .custom-block{margin:16px 0}.vp-doc .custom-block p{margin:8px 0;line-height:24px}.vp-doc .custom-block p:first-child{margin:0}.vp-doc .custom-block a{color:inherit;font-weight:600}.vp-doc .custom-block a:hover{text-decoration:underline}.vp-doc .custom-block code{font-size:var(--vp-custom-block-code-font-size);font-weight:700;color:inherit}.vp-doc .custom-block div[class*=language-]{margin:8px 0}.vp-doc .custom-block div[class*=language-] code{font-weight:400;background-color:transparent}.vp-doc :not(pre,h1,h2,h3,h4,h5,h6)>code{font-size:var(--vp-code-font-size)}.vp-doc :not(pre)>code{border-radius:4px;padding:3px 6px;color:var(--vp-c-text-code);background-color:var(--vp-c-mute);transition:color .5s,background-color .5s}.vp-doc h1>code,.vp-doc h2>code,.vp-doc h3>code{font-size:.9em}.vp-doc a>code{color:var(--vp-c-brand);transition:color .25s}.vp-doc a:hover>code{color:var(--vp-c-brand-dark)}.vp-doc div[class*=language-]{position:relative;margin:16px -24px;background-color:var(--vp-code-block-bg);overflow-x:auto;transition:background-color .5s}@media (min-width: 640px){.vp-doc div[class*=language-]{border-radius:8px;margin:16px 0}}@media (max-width: 639px){.vp-doc li div[class*=language-]{border-radius:8px 0 0 8px}}.vp-doc div[class*=language-]+div[class*=language-],.vp-doc div[class$=-api]+div[class*=language-],.vp-doc div[class*=language-]+div[class$=-api]>div[class*=language-]{margin-top:-8px}.vp-doc [class*=language-] pre,.vp-doc [class*=language-] code{direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.vp-doc [class*=language-] pre{position:relative;z-index:1;margin:0;padding:20px 0;background:transparent;overflow-x:auto}.vp-doc [class*=language-] code{display:block;padding:0 24px;width:fit-content;min-width:100%;line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-block-color);transition:color .5s}.vp-doc [class*=language-] code .highlighted{background-color:var(--vp-code-line-highlight-color);transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .highlighted.error{background-color:var(--vp-code-line-error-color)}.vp-doc [class*=language-] code .highlighted.warning{background-color:var(--vp-code-line-warning-color)}.vp-doc [class*=language-] code .diff{transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .diff:before{position:absolute;left:10px}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){filter:blur(.095rem);opacity:.4;transition:filter .35s,opacity .35s}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){opacity:.7;transition:filter .35s,opacity .35s}.vp-doc [class*=language-]:hover .has-focused-lines .line:not(.has-focus){filter:blur(0);opacity:1}.vp-doc [class*=language-] code .diff.remove{background-color:var(--vp-code-line-diff-remove-color);opacity:.7}.vp-doc [class*=language-] code .diff.remove:before{content:"-";color:var(--vp-code-line-diff-remove-symbol-color)}.vp-doc [class*=language-] code .diff.add{background-color:var(--vp-code-line-diff-add-color)}.vp-doc [class*=language-] code .diff.add:before{content:"+";color:var(--vp-code-line-diff-add-symbol-color)}.vp-doc div[class*=language-].line-numbers-mode{padding-left:32px}.vp-doc .line-numbers-wrapper{position:absolute;top:0;bottom:0;left:0;z-index:3;border-right:1px solid var(--vp-code-block-divider-color);padding-top:20px;width:32px;text-align:center;font-family:var(--vp-font-family-mono);line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-line-number-color);transition:border-color .5s,color .5s}.vp-doc [class*=language-]>button.copy{direction:ltr;position:absolute;top:12px;right:12px;z-index:3;border:1px solid var(--vp-code-copy-code-border-color);border-radius:4px;width:40px;height:40px;background-color:var(--vp-code-copy-code-bg);opacity:0;cursor:pointer;background-image:var(--vp-icon-copy);background-position:50%;background-size:20px;background-repeat:no-repeat;transition:border-color .25s,background-color .25s,opacity .25s}.vp-doc [class*=language-]:hover>button.copy,.vp-doc [class*=language-]>button.copy:focus{opacity:1}.vp-doc [class*=language-]>button.copy:hover,.vp-doc [class*=language-]>button.copy.copied{border-color:var(--vp-code-copy-code-hover-border-color);background-color:var(--vp-code-copy-code-hover-bg)}.vp-doc [class*=language-]>button.copy.copied,.vp-doc [class*=language-]>button.copy:hover.copied{border-radius:0 4px 4px 0;background-color:var(--vp-code-copy-code-hover-bg);background-image:var(--vp-icon-copied)}.vp-doc [class*=language-]>button.copy.copied:before,.vp-doc [class*=language-]>button.copy:hover.copied:before{position:relative;top:-1px;left:-65px;display:flex;justify-content:center;align-items:center;border:1px solid var(--vp-code-copy-code-hover-border-color);border-right:0;border-radius:4px 0 0 4px;width:64px;height:40px;text-align:center;font-size:12px;font-weight:500;color:var(--vp-code-copy-code-active-text);background-color:var(--vp-code-copy-code-hover-bg);white-space:nowrap;content:"Copied"}.vp-doc [class*=language-]>span.lang{position:absolute;top:2px;right:8px;z-index:2;font-size:12px;font-weight:500;color:var(--vp-c-code-dimm);transition:color .4s,opacity .4s}.vp-doc [class*=language-]:hover>button.copy+span.lang,.vp-doc [class*=language-]>button.copy:focus+span.lang{opacity:0}.vp-doc .VPTeamMembers{margin-top:24px}.vp-doc .VPTeamMembers.small.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-doc .VPTeamMembers.small.count-2 .container,.vp-doc .VPTeamMembers.small.count-3 .container{max-width:100%!important}.vp-doc .VPTeamMembers.medium.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-sponsor{border-radius:16px;overflow:hidden}.vp-sponsor.aside{border-radius:12px}.vp-sponsor-section+.vp-sponsor-section{margin-top:4px}.vp-sponsor-tier{margin-bottom:4px;text-align:center;letter-spacing:1px;line-height:24px;width:100%;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-sponsor.normal .vp-sponsor-tier{padding:13px 0 11px;font-size:14px}.vp-sponsor.aside .vp-sponsor-tier{padding:9px 0 7px;font-size:12px}.vp-sponsor-grid+.vp-sponsor-tier{margin-top:4px}.vp-sponsor-grid{display:flex;flex-wrap:wrap;gap:4px}.vp-sponsor-grid.xmini .vp-sponsor-grid-link{height:64px}.vp-sponsor-grid.xmini .vp-sponsor-grid-image{max-width:64px;max-height:22px}.vp-sponsor-grid.mini .vp-sponsor-grid-link{height:72px}.vp-sponsor-grid.mini .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.small .vp-sponsor-grid-link{height:96px}.vp-sponsor-grid.small .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.medium .vp-sponsor-grid-link{height:112px}.vp-sponsor-grid.medium .vp-sponsor-grid-image{max-width:120px;max-height:36px}.vp-sponsor-grid.big .vp-sponsor-grid-link{height:184px}.vp-sponsor-grid.big .vp-sponsor-grid-image{max-width:192px;max-height:56px}.vp-sponsor-grid[data-vp-grid="2"] .vp-sponsor-grid-item{width:calc((100% - 4px)/2)}.vp-sponsor-grid[data-vp-grid="3"] .vp-sponsor-grid-item{width:calc((100% - 4px * 2) / 3)}.vp-sponsor-grid[data-vp-grid="4"] .vp-sponsor-grid-item{width:calc((100% - 12px)/4)}.vp-sponsor-grid[data-vp-grid="5"] .vp-sponsor-grid-item{width:calc((100% - 16px)/5)}.vp-sponsor-grid[data-vp-grid="6"] .vp-sponsor-grid-item{width:calc((100% - 4px * 5) / 6)}.vp-sponsor-grid-item{flex-shrink:0;width:100%;background-color:var(--vp-c-bg-soft);transition:background-color .25s}.vp-sponsor-grid-item:hover{background-color:var(--vp-c-bg-soft-down)}.vp-sponsor-grid-item:hover .vp-sponsor-grid-image{filter:grayscale(0) invert(0)}.vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.dark .vp-sponsor-grid-item:hover{background-color:var(--vp-c-white)}.dark .vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.vp-sponsor-grid-link{display:flex}.vp-sponsor-grid-box{display:flex;justify-content:center;align-items:center;width:100%}.vp-sponsor-grid-image{max-width:100%;filter:grayscale(1);transition:filter .25s}.dark .vp-sponsor-grid-image{filter:grayscale(1) invert(1)}.VPBadge[data-v-ce917cfb]{display:inline-block;margin-left:2px;border:1px solid transparent;border-radius:10px;padding:0 8px;line-height:18px;font-size:12px;font-weight:600;transform:translateY(-2px)}h1 .VPBadge[data-v-ce917cfb],h2 .VPBadge[data-v-ce917cfb],h3 .VPBadge[data-v-ce917cfb],h4 .VPBadge[data-v-ce917cfb],h5 .VPBadge[data-v-ce917cfb],h6 .VPBadge[data-v-ce917cfb]{vertical-align:top}h2 .VPBadge[data-v-ce917cfb]{border-radius:11px;line-height:20px}.VPBadge.info[data-v-ce917cfb]{border-color:var(--vp-badge-info-border);color:var(--vp-badge-info-text);background-color:var(--vp-badge-info-bg)}.VPBadge.tip[data-v-ce917cfb]{border-color:var(--vp-badge-tip-border);color:var(--vp-badge-tip-text);background-color:var(--vp-badge-tip-bg)}.VPBadge.warning[data-v-ce917cfb]{border-color:var(--vp-badge-warning-border);color:var(--vp-badge-warning-text);background-color:var(--vp-badge-warning-bg)}.VPBadge.danger[data-v-ce917cfb]{border-color:var(--vp-badge-danger-border);color:var(--vp-badge-danger-text);background-color:var(--vp-badge-danger-bg)}.VPSkipLink[data-v-73e3a132]{top:8px;left:8px;padding:8px 16px;z-index:999;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;color:var(--vp-c-brand);box-shadow:var(--vp-shadow-3);background-color:var(--vp-c-bg)}.VPSkipLink[data-v-73e3a132]:focus{height:auto;width:auto;clip:auto;clip-path:none}.dark .VPSkipLink[data-v-73e3a132]{color:var(--vp-c-green)}@media (min-width: 1280px){.VPSkipLink[data-v-73e3a132]{top:14px;left:16px}}.VPBackdrop[data-v-54a304ca]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vp-z-index-backdrop);background:var(--vp-backdrop-bg-color);transition:opacity .5s}.VPBackdrop.fade-enter-from[data-v-54a304ca],.VPBackdrop.fade-leave-to[data-v-54a304ca]{opacity:0}.VPBackdrop.fade-leave-active[data-v-54a304ca]{transition-duration:.25s}@media (min-width: 1280px){.VPBackdrop[data-v-54a304ca]{display:none}}html:not(.dark) .VPImage.dark[data-v-dc109a54]{display:none}.dark .VPImage.light[data-v-dc109a54]{display:none}.title[data-v-1ab7b21f]{display:flex;align-items:center;border-bottom:1px solid transparent;width:100%;height:var(--vp-nav-height);font-size:16px;font-weight:600;color:var(--vp-c-text-1);transition:opacity .25s}.title[data-v-1ab7b21f]:hover{opacity:.6}@media (min-width: 960px){.title[data-v-1ab7b21f]{flex-shrink:0}.VPNavBarTitle.has-sidebar .title[data-v-1ab7b21f]{border-bottom-color:var(--vp-c-divider)}}[data-v-1ab7b21f] .logo{margin-right:8px;height:24px}/*! @docsearch/css 3.3.4 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */:root{--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:rgba(101,108,133,.8);--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 hsla(0,0%,100%,.5),0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,.4);--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,.12)}html[data-theme=dark]{--docsearch-text-color:#f5f6f7;--docsearch-container-background:rgba(9,10,17,.8);--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 rgba(3,4,9,.3);--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 rgba(73,76,106,.5),0 -4px 8px 0 rgba(0,0,0,.2);--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}.DocSearch-Button{align-items:center;background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;display:flex;font-weight:500;height:36px;justify-content:space-between;margin:0 0 0 16px;padding:0 8px;user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:none}.DocSearch-Button-Container{align-items:center;display:flex}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;position:relative;padding:0 0 2px;border:0;top:-1px;width:20px}@media (max-width:768px){.DocSearch-Button-Keys,.DocSearch-Button-Placeholder{display:none}}.DocSearch--active{overflow:hidden!important}.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Container a{text-decoration:none}.DocSearch-Link{appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;font:inherit;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{appearance:none;background:transparent;border:0;color:var(--docsearch-text-color);flex:1;font:inherit;font-size:1.2em;height:100%;outline:none;padding:0 0 0 8px;width:80%}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator{display:none}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{animation:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0;stroke-width:var(--docsearch-icon-stroke-width)}}.DocSearch-Reset{animation:fade-in .1s ease-in forwards;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;padding:2px;right:0;stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Cancel{display:none}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:transparent}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Help{font-size:.9em;margin:0;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{color:var(--docsearch-muted-color);display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--deleting{transition:none}}.DocSearch-Hit--deleting{opacity:0;transition:all .25s linear}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--favoriting{transition:none}}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:all .25s linear;transition-delay:.25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;stroke-width:var(--docsearch-icon-stroke-width);width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit[aria-selected=true] mark{text-decoration:underline}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color);stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{appearance:none;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer;padding:2px}svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:rgba(0,0,0,.2);transition:background-color .1s ease-in}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{transition:none}}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:rgba(0,0,0,.2);transition:none}}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"» "}.DocSearch-Prefill{appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:none;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;user-select:none;width:100%;z-index:300}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li{align-items:center;display:flex}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:2px;box-shadow:var(--docsearch-key-shadow);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;color:var(--docsearch-muted-color);border:0;width:20px}@media (max-width:768px){:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Dropdown{max-height:calc(var(--docsearch-vh, 1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Cancel{appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:none;overflow:hidden;padding:0;user-select:none;white-space:nowrap}.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.DocSearch{--docsearch-primary-color: var(--vp-c-brand);--docsearch-highlight-color: var(--docsearch-primary-color);--docsearch-text-color: var(--vp-c-text-1);--docsearch-muted-color: var(--vp-c-text-2);--docsearch-searchbox-shadow: none;--docsearch-searchbox-focus-background: transparent;--docsearch-key-gradient: transparent;--docsearch-key-shadow: none;--docsearch-modal-background: var(--vp-c-bg-soft);--docsearch-footer-background: var(--vp-c-bg)}.dark .DocSearch{--docsearch-modal-shadow: none;--docsearch-footer-shadow: none;--docsearch-logo-color: var(--vp-c-text-2);--docsearch-hit-background: var(--vp-c-bg-soft-mute);--docsearch-hit-color: var(--vp-c-text-2);--docsearch-hit-shadow: none}.DocSearch-Button{display:flex;justify-content:center;align-items:center;margin:0;padding:0;width:32px;height:55px;background:transparent;transition:border-color .25s}.DocSearch-Button:hover{background:transparent}.DocSearch-Button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.DocSearch-Button:focus:not(:focus-visible){outline:none!important}@media (min-width: 768px){.DocSearch-Button{justify-content:flex-start;border:1px solid transparent;border-radius:8px;padding:0 10px 0 12px;width:100%;height:40px;background-color:var(--vp-c-bg-alt)}.DocSearch-Button:hover{border-color:var(--vp-c-brand);background:var(--vp-c-bg-alt)}}.DocSearch-Button .DocSearch-Button-Container{display:flex;align-items:center}.DocSearch-Button .DocSearch-Search-Icon{position:relative;width:16px;height:16px;color:var(--vp-c-text-1);fill:currentColor;transition:color .5s}.DocSearch-Button:hover .DocSearch-Search-Icon{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Search-Icon{top:1px;margin-right:8px;width:14px;height:14px;color:var(--vp-c-text-2)}}.DocSearch-Button .DocSearch-Button-Placeholder{display:none;margin-top:2px;padding:0 16px 0 0;font-size:13px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.DocSearch-Button:hover .DocSearch-Button-Placeholder{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Placeholder{display:inline-block}}.DocSearch-Button .DocSearch-Button-Keys{direction:ltr;display:none;min-width:auto}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Keys{display:flex;align-items:center}}.DocSearch-Button .DocSearch-Button-Key{display:block;margin:2px 0 0;border:1px solid var(--vp-c-divider);border-right:none;border-radius:4px 0 0 4px;padding-left:6px;min-width:0;width:auto;height:22px;line-height:22px;font-family:var(--vp-font-family-base);font-size:12px;font-weight:500;transition:color .5s,border-color .5s}.DocSearch-Button .DocSearch-Button-Key+.DocSearch-Button-Key{border-right:1px solid var(--vp-c-divider);border-left:none;border-radius:0 4px 4px 0;padding-left:2px;padding-right:6px}.DocSearch-Button .DocSearch-Button-Key:first-child{font-size:1px;letter-spacing:-12px;color:transparent}.DocSearch-Button .DocSearch-Button-Key:first-child:after{content:var(--vp-meta-key);font-size:12px;letter-spacing:normal;color:var(--docsearch-muted-color)}.DocSearch-Button .DocSearch-Button-Key:first-child>*{display:none}.VPNavBarSearch{display:flex;align-items:center}@media (min-width: 768px){.VPNavBarSearch{flex-grow:1;padding-left:24px}}@media (min-width: 960px){.VPNavBarSearch{padding-left:32px}}.dark .DocSearch-Footer{border-top:1px solid var(--vp-c-divider)}.DocSearch-Form{border:1px solid var(--vp-c-brand);background-color:var(--vp-c-white)}.dark .DocSearch-Form{background-color:var(--vp-c-bg-soft-mute)}.DocSearch-Screen-Icon>svg{margin:auto}.icon[data-v-f3ed0000]{display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;fill:var(--vp-c-text-3);transition:fill .25s;flex-shrink:0}.VPNavBarMenuLink[data-v-b7aed9c7]{display:flex;align-items:center;padding:0 12px;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.VPNavBarMenuLink.active[data-v-b7aed9c7],.VPNavBarMenuLink[data-v-b7aed9c7]:hover{color:var(--vp-c-brand)}.VPMenuGroup+.VPMenuLink[data-v-fd8d5e7a]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.link[data-v-fd8d5e7a]{display:block;border-radius:6px;padding:0 12px;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);white-space:nowrap;transition:background-color .25s,color .25s}.link[data-v-fd8d5e7a]:hover{color:var(--vp-c-brand);background-color:var(--vp-c-bg-elv-mute)}.link.active[data-v-fd8d5e7a]{color:var(--vp-c-brand)}.VPMenuGroup[data-v-a6b0397c]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.VPMenuGroup[data-v-a6b0397c]:first-child{margin-top:0;border-top:0;padding-top:0}.VPMenuGroup+.VPMenuGroup[data-v-a6b0397c]{margin-top:12px;border-top:1px solid var(--vp-c-divider)}.title[data-v-a6b0397c]{padding:0 12px;line-height:32px;font-size:14px;font-weight:600;color:var(--vp-c-text-2);white-space:nowrap;transition:color .25s}.VPMenu[data-v-e42ed9b3]{border-radius:12px;padding:12px;min-width:128px;border:1px solid var(--vp-c-divider);background-color:var(--vp-c-bg-elv);box-shadow:var(--vp-shadow-3);transition:background-color .5s;max-height:calc(100vh - var(--vp-nav-height));overflow-y:auto}.VPMenu[data-v-e42ed9b3] .group{margin:0 -12px;padding:0 12px 12px}.VPMenu[data-v-e42ed9b3] .group+.group{border-top:1px solid var(--vp-c-divider);padding:11px 12px 12px}.VPMenu[data-v-e42ed9b3] .group:last-child{padding-bottom:0}.VPMenu[data-v-e42ed9b3] .group+.item{border-top:1px solid var(--vp-c-divider);padding:11px 16px 0}.VPMenu[data-v-e42ed9b3] .item{padding:0 16px;white-space:nowrap}.VPMenu[data-v-e42ed9b3] .label{flex-grow:1;line-height:28px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.VPMenu[data-v-e42ed9b3] .action{padding-left:24px}.VPFlyout[data-v-6afe904b]{position:relative}.VPFlyout[data-v-6afe904b]:hover{color:var(--vp-c-brand);transition:color .25s}.VPFlyout:hover .text[data-v-6afe904b]{color:var(--vp-c-text-2)}.VPFlyout:hover .icon[data-v-6afe904b]{fill:var(--vp-c-text-2)}.VPFlyout.active .text[data-v-6afe904b]{color:var(--vp-c-brand)}.VPFlyout.active:hover .text[data-v-6afe904b]{color:var(--vp-c-brand-dark)}.VPFlyout:hover .menu[data-v-6afe904b],.button[aria-expanded=true]+.menu[data-v-6afe904b]{opacity:1;visibility:visible;transform:translateY(0)}.button[data-v-6afe904b]{display:flex;align-items:center;padding:0 12px;height:var(--vp-nav-height);color:var(--vp-c-text-1);transition:color .5s}.text[data-v-6afe904b]{display:flex;align-items:center;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.option-icon[data-v-6afe904b]{margin-right:0;width:16px;height:16px;fill:currentColor}.text-icon[data-v-6afe904b]{margin-left:4px;width:14px;height:14px;fill:currentColor}.icon[data-v-6afe904b]{width:20px;height:20px;fill:currentColor;transition:fill .25s}.menu[data-v-6afe904b]{position:absolute;top:calc(var(--vp-nav-height) / 2 + 20px);right:0;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,transform .25s}.VPNavBarMenu[data-v-f732b5d0]{display:none}@media (min-width: 768px){.VPNavBarMenu[data-v-f732b5d0]{display:flex}}.VPNavBarTranslations[data-v-ff4524ae]{display:none}@media (min-width: 1280px){.VPNavBarTranslations[data-v-ff4524ae]{display:flex;align-items:center}}.title[data-v-ff4524ae]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.VPSwitch[data-v-92d8f6fb]{position:relative;border-radius:11px;display:block;width:40px;height:22px;flex-shrink:0;border:1px solid var(--vp-input-border-color);background-color:var(--vp-input-switch-bg-color);transition:border-color .25s}.VPSwitch[data-v-92d8f6fb]:hover{border-color:var(--vp-input-hover-border-color)}.check[data-v-92d8f6fb]{position:absolute;top:1px;left:1px;width:18px;height:18px;border-radius:50%;background-color:var(--vp-c-neutral-inverse);box-shadow:var(--vp-shadow-1);transition:transform .25s}.icon[data-v-92d8f6fb]{position:relative;display:block;width:18px;height:18px;border-radius:50%;overflow:hidden}.icon[data-v-92d8f6fb] svg{position:absolute;top:3px;left:3px;width:12px;height:12px;fill:var(--vp-c-text-2)}.dark .icon[data-v-92d8f6fb] svg{fill:var(--vp-c-text-1);transition:opacity .25s}.sun[data-v-67878c63]{opacity:1}.moon[data-v-67878c63],.dark .sun[data-v-67878c63]{opacity:0}.dark .moon[data-v-67878c63]{opacity:1}.dark .VPSwitchAppearance[data-v-67878c63] .check{transform:translate(18px)}.VPNavBarAppearance[data-v-5e9f0637]{display:none}@media (min-width: 1280px){.VPNavBarAppearance[data-v-5e9f0637]{display:flex;align-items:center}}.VPSocialLink[data-v-dbecf575]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;color:var(--vp-c-text-2);transition:color .5s}.VPSocialLink[data-v-dbecf575]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPSocialLink[data-v-dbecf575]>svg{width:20px;height:20px;fill:currentColor}.VPSocialLinks[data-v-b8f6762d]{display:flex;flex-wrap:wrap;justify-content:center}.VPNavBarSocialLinks[data-v-ef6192dc]{display:none}@media (min-width: 1280px){.VPNavBarSocialLinks[data-v-ef6192dc]{display:flex;align-items:center}}.VPNavBarExtra[data-v-c8c2ae4b]{display:none;margin-right:-12px}@media (min-width: 768px){.VPNavBarExtra[data-v-c8c2ae4b]{display:block}}@media (min-width: 1280px){.VPNavBarExtra[data-v-c8c2ae4b]{display:none}}.trans-title[data-v-c8c2ae4b]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.item.appearance[data-v-c8c2ae4b],.item.social-links[data-v-c8c2ae4b]{display:flex;align-items:center;padding:0 12px}.item.appearance[data-v-c8c2ae4b]{min-width:176px}.appearance-action[data-v-c8c2ae4b]{margin-right:-2px}.social-links-list[data-v-c8c2ae4b]{margin:-4px -8px}.VPNavBarHamburger[data-v-6bee1efd]{display:flex;justify-content:center;align-items:center;width:48px;height:var(--vp-nav-height)}@media (min-width: 768px){.VPNavBarHamburger[data-v-6bee1efd]{display:none}}.container[data-v-6bee1efd]{position:relative;width:16px;height:14px;overflow:hidden}.VPNavBarHamburger:hover .top[data-v-6bee1efd]{top:0;left:0;transform:translate(4px)}.VPNavBarHamburger:hover .middle[data-v-6bee1efd]{top:6px;left:0;transform:translate(0)}.VPNavBarHamburger:hover .bottom[data-v-6bee1efd]{top:12px;left:0;transform:translate(8px)}.VPNavBarHamburger.active .top[data-v-6bee1efd]{top:6px;transform:translate(0) rotate(225deg)}.VPNavBarHamburger.active .middle[data-v-6bee1efd]{top:6px;transform:translate(16px)}.VPNavBarHamburger.active .bottom[data-v-6bee1efd]{top:6px;transform:translate(0) rotate(135deg)}.VPNavBarHamburger.active:hover .top[data-v-6bee1efd],.VPNavBarHamburger.active:hover .middle[data-v-6bee1efd],.VPNavBarHamburger.active:hover .bottom[data-v-6bee1efd]{background-color:var(--vp-c-text-2);transition:top .25s,background-color .25s,transform .25s}.top[data-v-6bee1efd],.middle[data-v-6bee1efd],.bottom[data-v-6bee1efd]{position:absolute;width:16px;height:2px;background-color:var(--vp-c-text-1);transition:top .25s,background-color .5s,transform .25s}.top[data-v-6bee1efd]{top:0;left:0;transform:translate(0)}.middle[data-v-6bee1efd]{top:6px;left:0;transform:translate(8px)}.bottom[data-v-6bee1efd]{top:12px;left:0;transform:translate(4px)}.VPNavBar[data-v-c388e33c]{position:relative;border-bottom:1px solid transparent;padding:0 8px 0 24px;height:var(--vp-nav-height);transition:border-color .5s,background-color .5s;pointer-events:none;white-space:nowrap}.VPNavBar.has-sidebar[data-v-c388e33c]{border-bottom-color:var(--vp-c-gutter)}@media (min-width: 768px){.VPNavBar[data-v-c388e33c]{padding:0 32px}}@media (min-width: 960px){.VPNavBar.has-sidebar[data-v-c388e33c]{border-bottom-color:transparent;padding:0}.VPNavBar.fill[data-v-c388e33c]:not(.has-sidebar){border-bottom-color:var(--vp-c-gutter);background-color:var(--vp-nav-bg-color)}}.container[data-v-c388e33c]{display:flex;justify-content:space-between;margin:0 auto;max-width:calc(var(--vp-layout-max-width) - 64px);height:var(--vp-nav-height);pointer-events:none}.container>.title[data-v-c388e33c],.container>.content[data-v-c388e33c]{pointer-events:none}.container[data-v-c388e33c] *{pointer-events:auto}@media (min-width: 960px){.VPNavBar.has-sidebar .container[data-v-c388e33c]{max-width:100%}}.title[data-v-c388e33c]{flex-shrink:0;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .title[data-v-c388e33c]{position:absolute;top:0;left:0;z-index:2;padding:0 32px;width:var(--vp-sidebar-width);height:var(--vp-nav-height);background-color:transparent}}@media (min-width: 1440px){.VPNavBar.has-sidebar .title[data-v-c388e33c]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}.content[data-v-c388e33c]{flex-grow:1}@media (min-width: 960px){.VPNavBar.has-sidebar .content[data-v-c388e33c]{position:relative;z-index:1;padding-right:32px;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .content[data-v-c388e33c]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2 + 32px);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.content-body[data-v-c388e33c]{display:flex;justify-content:flex-end;align-items:center;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .content-body[data-v-c388e33c],.VPNavBar.fill .content-body[data-v-c388e33c]{position:relative;background-color:var(--vp-nav-bg-color)}}.menu+.translations[data-v-c388e33c]:before,.menu+.appearance[data-v-c388e33c]:before,.menu+.social-links[data-v-c388e33c]:before,.translations+.appearance[data-v-c388e33c]:before,.appearance+.social-links[data-v-c388e33c]:before{margin-right:8px;margin-left:8px;width:1px;height:24px;background-color:var(--vp-c-divider);content:""}.menu+.appearance[data-v-c388e33c]:before,.translations+.appearance[data-v-c388e33c]:before{margin-right:16px}.appearance+.social-links[data-v-c388e33c]:before{margin-left:16px}.social-links[data-v-c388e33c]{margin-right:-8px}@media (min-width: 960px){.VPNavBar.has-sidebar .curtain[data-v-c388e33c]{position:absolute;right:0;bottom:-31px;width:calc(100% - var(--vp-sidebar-width));height:32px}.VPNavBar.has-sidebar .curtain[data-v-c388e33c]:before{display:block;width:100%;height:32px;background:linear-gradient(var(--vp-c-bg),transparent 70%);content:""}}@media (min-width: 1440px){.VPNavBar.has-sidebar .curtain[data-v-c388e33c]{width:calc(100% - ((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width)))}}.VPNavScreenMenuLink[data-v-a3572c96]{display:block;border-bottom:1px solid var(--vp-c-divider);padding:12px 0 11px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:border-color .25s,color .25s}.VPNavScreenMenuLink[data-v-a3572c96]:hover{color:var(--vp-c-brand)}.VPNavScreenMenuGroupLink[data-v-d67c9e09]{display:block;margin-left:12px;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-1);transition:color .25s}.VPNavScreenMenuGroupLink[data-v-d67c9e09]:hover{color:var(--vp-c-brand)}.VPNavScreenMenuGroupSection[data-v-1f191989]{display:block}.title[data-v-1f191989]{line-height:32px;font-size:13px;font-weight:700;color:var(--vp-c-text-2);transition:color .25s}.VPNavScreenMenuGroup[data-v-76b97020]{border-bottom:1px solid var(--vp-c-divider);height:48px;overflow:hidden;transition:border-color .5s}.VPNavScreenMenuGroup .items[data-v-76b97020]{visibility:hidden}.VPNavScreenMenuGroup.open .items[data-v-76b97020]{visibility:visible}.VPNavScreenMenuGroup.open[data-v-76b97020]{padding-bottom:10px;height:auto}.VPNavScreenMenuGroup.open .button[data-v-76b97020]{padding-bottom:6px;color:var(--vp-c-brand)}.VPNavScreenMenuGroup.open .button-icon[data-v-76b97020]{transform:rotate(45deg)}.button[data-v-76b97020]{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 11px 0;width:100%;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.button[data-v-76b97020]:hover{color:var(--vp-c-brand)}.button-icon[data-v-76b97020]{width:14px;height:14px;fill:var(--vp-c-text-2);transition:fill .5s,transform .25s}.group[data-v-76b97020]:first-child{padding-top:0}.group+.group[data-v-76b97020],.group+.item[data-v-76b97020]{padding-top:4px}.VPNavScreenAppearance[data-v-0dc5cf49]{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:12px 14px 12px 16px;background-color:var(--vp-c-bg-soft)}.text[data-v-0dc5cf49]{line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.VPNavScreenTranslations[data-v-41505286]{height:24px;overflow:hidden}.VPNavScreenTranslations.open[data-v-41505286]{height:auto}.title[data-v-41505286]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-text-1)}.icon[data-v-41505286]{width:16px;height:16px;fill:currentColor}.icon.lang[data-v-41505286]{margin-right:8px}.icon.chevron[data-v-41505286]{margin-left:4px}.list[data-v-41505286]{padding:4px 0 0 24px}.link[data-v-41505286]{line-height:32px;font-size:13px;color:var(--vp-c-text-1)}.VPNavScreen[data-v-183ec3ec]{position:fixed;top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 1px);right:0;bottom:0;left:0;padding:0 32px;width:100%;background-color:var(--vp-nav-screen-bg-color);overflow-y:auto;transition:background-color .5s;pointer-events:auto}.VPNavScreen.fade-enter-active[data-v-183ec3ec],.VPNavScreen.fade-leave-active[data-v-183ec3ec]{transition:opacity .25s}.VPNavScreen.fade-enter-active .container[data-v-183ec3ec],.VPNavScreen.fade-leave-active .container[data-v-183ec3ec]{transition:transform .25s ease}.VPNavScreen.fade-enter-from[data-v-183ec3ec],.VPNavScreen.fade-leave-to[data-v-183ec3ec]{opacity:0}.VPNavScreen.fade-enter-from .container[data-v-183ec3ec],.VPNavScreen.fade-leave-to .container[data-v-183ec3ec]{transform:translateY(-8px)}@media (min-width: 768px){.VPNavScreen[data-v-183ec3ec]{display:none}}.container[data-v-183ec3ec]{margin:0 auto;padding:24px 0 96px;max-width:288px}.menu+.translations[data-v-183ec3ec],.menu+.appearance[data-v-183ec3ec],.translations+.appearance[data-v-183ec3ec]{margin-top:24px}.menu+.social-links[data-v-183ec3ec]{margin-top:16px}.appearance+.social-links[data-v-183ec3ec]{margin-top:16px}.VPNav[data-v-5bdc5df3]{position:relative;top:var(--vp-layout-top-height, 0px);left:0;z-index:var(--vp-z-index-nav);width:100%;pointer-events:none;transition:background-color .5s}@media (min-width: 960px){.VPNav[data-v-5bdc5df3]{position:fixed}}.root[data-v-a379eb72]{position:relative;z-index:1}.nested[data-v-a379eb72]{padding-left:13px}.outline-link[data-v-a379eb72]{display:block;line-height:28px;color:var(--vp-c-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .5s;font-weight:500}.outline-link[data-v-a379eb72]:hover,.outline-link.active[data-v-a379eb72]{color:var(--vp-c-text-1);transition:color .25s}.outline-link.nested[data-v-a379eb72]{padding-left:13px}.VPLocalNavOutlineDropdown[data-v-fb63c957]{padding:12px 20px 11px}.VPLocalNavOutlineDropdown button[data-v-fb63c957]{display:block;font-size:12px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;position:relative}.VPLocalNavOutlineDropdown button[data-v-fb63c957]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPLocalNavOutlineDropdown button.open[data-v-fb63c957]{color:var(--vp-c-text-1)}.icon[data-v-fb63c957]{display:inline-block;vertical-align:middle;margin-left:2px;width:14px;height:14px;fill:currentColor}[data-v-fb63c957] .outline-link{font-size:14px;padding:2px 0}.open>.icon[data-v-fb63c957]{transform:rotate(90deg)}.items[data-v-fb63c957]{position:absolute;left:20px;right:20px;top:64px;background-color:var(--vp-local-nav-bg-color);padding:4px 10px 16px;border:1px solid var(--vp-c-divider);border-radius:8px;max-height:calc(var(--vp-vh, 100vh) - 86px);overflow:hidden auto;box-shadow:var(--vp-shadow-3)}.top-link[data-v-fb63c957]{display:block;color:var(--vp-c-brand);font-size:13px;font-weight:500;padding:6px 0;margin:0 13px 10px;border-bottom:1px solid var(--vp-c-divider)}.flyout-enter-active[data-v-fb63c957]{transition:all .2s ease-out}.flyout-leave-active[data-v-fb63c957]{transition:all .15s ease-in}.flyout-enter-from[data-v-fb63c957],.flyout-leave-to[data-v-fb63c957]{opacity:0;transform:translateY(-16px)}.VPLocalNav[data-v-d1e27b08]{position:sticky;top:0;left:0;z-index:var(--vp-z-index-local-nav);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--vp-c-gutter);padding-top:var(--vp-layout-top-height, 0px);width:100%;background-color:var(--vp-local-nav-bg-color);transition:border-color .5s,background-color .5s}@media (min-width: 960px){.VPLocalNav[data-v-d1e27b08]{display:none}}.menu[data-v-d1e27b08]{display:flex;align-items:center;padding:12px 24px 11px;line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.menu[data-v-d1e27b08]:hover{color:var(--vp-c-text-1);transition:color .25s}@media (min-width: 768px){.menu[data-v-d1e27b08]{padding:0 32px}}.menu-icon[data-v-d1e27b08]{margin-right:8px;width:16px;height:16px;fill:currentColor}.VPOutlineDropdown[data-v-d1e27b08]{padding:12px 24px 11px}@media (min-width: 768px){.VPOutlineDropdown[data-v-d1e27b08]{padding:12px 32px 11px}}.VPSidebarItem.level-0[data-v-0bb349fd]{padding-bottom:24px}.VPSidebarItem.collapsed.level-0[data-v-0bb349fd]{padding-bottom:10px}.item[data-v-0bb349fd]{position:relative;display:flex;width:100%}.VPSidebarItem.collapsible>.item[data-v-0bb349fd]{cursor:pointer}.indicator[data-v-0bb349fd]{position:absolute;top:6px;bottom:6px;left:-17px;width:1px;transition:background-color .25s}.VPSidebarItem.level-2.is-active>.item>.indicator[data-v-0bb349fd],.VPSidebarItem.level-3.is-active>.item>.indicator[data-v-0bb349fd],.VPSidebarItem.level-4.is-active>.item>.indicator[data-v-0bb349fd],.VPSidebarItem.level-5.is-active>.item>.indicator[data-v-0bb349fd]{background-color:var(--vp-c-brand)}.link[data-v-0bb349fd]{display:flex;align-items:center;flex-grow:1}.text[data-v-0bb349fd]{flex-grow:1;padding:4px 0;line-height:24px;font-size:14px;transition:color .25s}.VPSidebarItem.level-0 .text[data-v-0bb349fd]{font-weight:700;color:var(--vp-c-text-1)}.VPSidebarItem.level-1 .text[data-v-0bb349fd],.VPSidebarItem.level-2 .text[data-v-0bb349fd],.VPSidebarItem.level-3 .text[data-v-0bb349fd],.VPSidebarItem.level-4 .text[data-v-0bb349fd],.VPSidebarItem.level-5 .text[data-v-0bb349fd]{font-weight:500;color:var(--vp-c-text-2)}.VPSidebarItem.level-0.is-link>.item>.link:hover .text[data-v-0bb349fd],.VPSidebarItem.level-1.is-link>.item>.link:hover .text[data-v-0bb349fd],.VPSidebarItem.level-2.is-link>.item>.link:hover .text[data-v-0bb349fd],.VPSidebarItem.level-3.is-link>.item>.link:hover .text[data-v-0bb349fd],.VPSidebarItem.level-4.is-link>.item>.link:hover .text[data-v-0bb349fd],.VPSidebarItem.level-5.is-link>.item>.link:hover .text[data-v-0bb349fd]{color:var(--vp-c-brand)}.VPSidebarItem.level-0.has-active>.item>.link>.text[data-v-0bb349fd],.VPSidebarItem.level-1.has-active>.item>.link>.text[data-v-0bb349fd],.VPSidebarItem.level-2.has-active>.item>.link>.text[data-v-0bb349fd],.VPSidebarItem.level-3.has-active>.item>.link>.text[data-v-0bb349fd],.VPSidebarItem.level-4.has-active>.item>.link>.text[data-v-0bb349fd],.VPSidebarItem.level-5.has-active>.item>.link>.text[data-v-0bb349fd]{color:var(--vp-c-text-1)}.VPSidebarItem.level-0.is-active>.item .link>.text[data-v-0bb349fd],.VPSidebarItem.level-1.is-active>.item .link>.text[data-v-0bb349fd],.VPSidebarItem.level-2.is-active>.item .link>.text[data-v-0bb349fd],.VPSidebarItem.level-3.is-active>.item .link>.text[data-v-0bb349fd],.VPSidebarItem.level-4.is-active>.item .link>.text[data-v-0bb349fd],.VPSidebarItem.level-5.is-active>.item .link>.text[data-v-0bb349fd]{color:var(--vp-c-brand)}.caret[data-v-0bb349fd]{display:flex;justify-content:center;align-items:center;margin-right:-7px;width:32px;height:32px;color:var(--vp-c-text-3);cursor:pointer;transition:color .25s}.item:hover .caret[data-v-0bb349fd]{color:var(--vp-c-text-2)}.item:hover .caret[data-v-0bb349fd]:hover{color:var(--vp-c-text-1)}.caret-icon[data-v-0bb349fd]{width:18px;height:18px;fill:currentColor;transform:rotate(90deg);transition:transform .25s}.VPSidebarItem.collapsed .caret-icon[data-v-0bb349fd]{transform:rotate(0)}.VPSidebarItem.level-1 .items[data-v-0bb349fd],.VPSidebarItem.level-2 .items[data-v-0bb349fd],.VPSidebarItem.level-3 .items[data-v-0bb349fd],.VPSidebarItem.level-4 .items[data-v-0bb349fd],.VPSidebarItem.level-5 .items[data-v-0bb349fd]{border-left:1px solid var(--vp-c-divider);padding-left:16px}.VPSidebarItem.collapsed .items[data-v-0bb349fd]{display:none}.VPSidebar[data-v-fe05da0a]{position:fixed;top:var(--vp-layout-top-height, 0px);bottom:0;left:0;z-index:var(--vp-z-index-sidebar);padding:32px 32px 96px;width:calc(100vw - 64px);max-width:320px;background-color:var(--vp-sidebar-bg-color);opacity:0;box-shadow:var(--vp-c-shadow-3);overflow-x:hidden;overflow-y:auto;transform:translate(-100%);transition:opacity .5s,transform .25s ease;overscroll-behavior:contain}.VPSidebar.open[data-v-fe05da0a]{opacity:1;visibility:visible;transform:translate(0);transition:opacity .25s,transform .5s cubic-bezier(.19,1,.22,1)}.dark .VPSidebar[data-v-fe05da0a]{box-shadow:var(--vp-shadow-1)}@media (min-width: 960px){.VPSidebar[data-v-fe05da0a]{z-index:1;padding-top:var(--vp-nav-height);padding-bottom:128px;width:var(--vp-sidebar-width);max-width:100%;background-color:var(--vp-sidebar-bg-color);opacity:1;visibility:visible;box-shadow:none;transform:translate(0)}}@media (min-width: 1440px){.VPSidebar[data-v-fe05da0a]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}@media (min-width: 960px){.curtain[data-v-fe05da0a]{position:sticky;top:-64px;left:0;z-index:1;margin-top:calc(var(--vp-nav-height) * -1);margin-right:-32px;margin-left:-32px;height:var(--vp-nav-height);background-color:var(--vp-sidebar-bg-color)}}.nav[data-v-fe05da0a]{outline:0}.group+.group[data-v-fe05da0a]{border-top:1px solid var(--vp-c-divider);padding-top:10px}@media (min-width: 960px){.group[data-v-fe05da0a]{padding-top:10px;width:calc(var(--vp-sidebar-width) - 64px)}}.VPButton[data-v-fa1633a1]{display:inline-block;border:1px solid transparent;text-align:center;font-weight:600;white-space:nowrap;transition:color .25s,border-color .25s,background-color .25s}.VPButton[data-v-fa1633a1]:active{transition:color .1s,border-color .1s,background-color .1s}.VPButton.medium[data-v-fa1633a1]{border-radius:20px;padding:0 20px;line-height:38px;font-size:14px}.VPButton.big[data-v-fa1633a1]{border-radius:24px;padding:0 24px;line-height:46px;font-size:16px}.VPButton.brand[data-v-fa1633a1]{border-color:var(--vp-button-brand-border);color:var(--vp-button-brand-text);background-color:var(--vp-button-brand-bg)}.VPButton.brand[data-v-fa1633a1]:hover{border-color:var(--vp-button-brand-hover-border);color:var(--vp-button-brand-hover-text);background-color:var(--vp-button-brand-hover-bg)}.VPButton.brand[data-v-fa1633a1]:active{border-color:var(--vp-button-brand-active-border);color:var(--vp-button-brand-active-text);background-color:var(--vp-button-brand-active-bg)}.VPButton.alt[data-v-fa1633a1]{border-color:var(--vp-button-alt-border);color:var(--vp-button-alt-text);background-color:var(--vp-button-alt-bg)}.VPButton.alt[data-v-fa1633a1]:hover{border-color:var(--vp-button-alt-hover-border);color:var(--vp-button-alt-hover-text);background-color:var(--vp-button-alt-hover-bg)}.VPButton.alt[data-v-fa1633a1]:active{border-color:var(--vp-button-alt-active-border);color:var(--vp-button-alt-active-text);background-color:var(--vp-button-alt-active-bg)}.VPButton.sponsor[data-v-fa1633a1]{border-color:var(--vp-button-sponsor-border);color:var(--vp-button-sponsor-text);background-color:var(--vp-button-sponsor-bg)}.VPButton.sponsor[data-v-fa1633a1]:hover{border-color:var(--vp-button-sponsor-hover-border);color:var(--vp-button-sponsor-hover-text);background-color:var(--vp-button-sponsor-hover-bg)}.VPButton.sponsor[data-v-fa1633a1]:active{border-color:var(--vp-button-sponsor-active-border);color:var(--vp-button-sponsor-active-text);background-color:var(--vp-button-sponsor-active-bg)}.VPHero[data-v-73fffaef]{margin-top:calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px}@media (min-width: 640px){.VPHero[data-v-73fffaef]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px}}@media (min-width: 960px){.VPHero[data-v-73fffaef]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px}}.container[data-v-73fffaef]{display:flex;flex-direction:column;margin:0 auto;max-width:1152px}@media (min-width: 960px){.container[data-v-73fffaef]{flex-direction:row}}.main[data-v-73fffaef]{position:relative;z-index:10;order:2;flex-grow:1;flex-shrink:0}.VPHero.has-image .container[data-v-73fffaef]{text-align:center}@media (min-width: 960px){.VPHero.has-image .container[data-v-73fffaef]{text-align:left}}@media (min-width: 960px){.main[data-v-73fffaef]{order:1;width:calc((100% / 3) * 2)}.VPHero.has-image .main[data-v-73fffaef]{max-width:592px}}.name[data-v-73fffaef],.text[data-v-73fffaef]{max-width:392px;letter-spacing:-.4px;line-height:40px;font-size:32px;font-weight:700;white-space:pre-wrap}.VPHero.has-image .name[data-v-73fffaef],.VPHero.has-image .text[data-v-73fffaef]{margin:0 auto}.name[data-v-73fffaef]{color:var(--vp-home-hero-name-color)}.clip[data-v-73fffaef]{background:var(--vp-home-hero-name-background);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--vp-home-hero-name-color)}@media (min-width: 640px){.name[data-v-73fffaef],.text[data-v-73fffaef]{max-width:576px;line-height:56px;font-size:48px}}@media (min-width: 960px){.name[data-v-73fffaef],.text[data-v-73fffaef]{line-height:64px;font-size:56px}.VPHero.has-image .name[data-v-73fffaef],.VPHero.has-image .text[data-v-73fffaef]{margin:0}}.tagline[data-v-73fffaef]{padding-top:8px;max-width:392px;line-height:28px;font-size:18px;font-weight:500;white-space:pre-wrap;color:var(--vp-c-text-2)}.VPHero.has-image .tagline[data-v-73fffaef]{margin:0 auto}@media (min-width: 640px){.tagline[data-v-73fffaef]{padding-top:12px;max-width:576px;line-height:32px;font-size:20px}}@media (min-width: 960px){.tagline[data-v-73fffaef]{line-height:36px;font-size:24px}.VPHero.has-image .tagline[data-v-73fffaef]{margin:0}}.actions[data-v-73fffaef]{display:flex;flex-wrap:wrap;margin:-6px;padding-top:24px}.VPHero.has-image .actions[data-v-73fffaef]{justify-content:center}@media (min-width: 640px){.actions[data-v-73fffaef]{padding-top:32px}}@media (min-width: 960px){.VPHero.has-image .actions[data-v-73fffaef]{justify-content:flex-start}}.action[data-v-73fffaef]{flex-shrink:0;padding:6px}.image[data-v-73fffaef]{order:1;margin:-76px -24px -48px}@media (min-width: 640px){.image[data-v-73fffaef]{margin:-108px -24px -48px}}@media (min-width: 960px){.image[data-v-73fffaef]{flex-grow:1;order:2;margin:0;min-height:100%}}.image-container[data-v-73fffaef]{position:relative;margin:0 auto;width:320px;height:320px}@media (min-width: 640px){.image-container[data-v-73fffaef]{width:392px;height:392px}}@media (min-width: 960px){.image-container[data-v-73fffaef]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;transform:translate(-32px,-32px)}}.image-bg[data-v-73fffaef]{position:absolute;top:50%;left:50%;border-radius:50%;width:192px;height:192px;background-image:var(--vp-home-hero-image-background-image);filter:var(--vp-home-hero-image-filter);transform:translate(-50%,-50%)}@media (min-width: 640px){.image-bg[data-v-73fffaef]{width:256px;height:256px}}@media (min-width: 960px){.image-bg[data-v-73fffaef]{width:320px;height:320px}}[data-v-73fffaef] .image-src{position:absolute;top:50%;left:50%;max-width:192px;max-height:192px;transform:translate(-50%,-50%)}@media (min-width: 640px){[data-v-73fffaef] .image-src{max-width:256px;max-height:256px}}@media (min-width: 960px){[data-v-73fffaef] .image-src{max-width:320px;max-height:320px}}.VPFeature[data-v-5f01e926]{display:block;border:1px solid var(--vp-c-bg-soft);border-radius:12px;height:100%;background-color:var(--vp-c-bg-soft);transition:border-color .25s,background-color .25s}.VPFeature.link[data-v-5f01e926]:hover{border-color:var(--vp-c-brand);background-color:var(--vp-c-bg-soft-up)}.box[data-v-5f01e926]{display:flex;flex-direction:column;padding:24px;height:100%}.VPFeature[data-v-5f01e926] .VPImage{width:48px;height:48px;margin-bottom:20px}.icon[data-v-5f01e926]{display:flex;justify-content:center;align-items:center;margin-bottom:20px;border-radius:6px;background-color:var(--vp-c-bg-soft-down);width:48px;height:48px;font-size:24px;transition:background-color .25s}.title[data-v-5f01e926]{line-height:24px;font-size:16px;font-weight:600}.details[data-v-5f01e926]{flex-grow:1;padding-top:8px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.link-text[data-v-5f01e926]{padding-top:8px}.link-text-value[data-v-5f01e926]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-brand)}.link-text-icon[data-v-5f01e926]{display:inline-block;margin-left:6px;width:14px;height:14px;fill:currentColor}.VPFeatures[data-v-5df66ecb]{position:relative;padding:0 24px}@media (min-width: 640px){.VPFeatures[data-v-5df66ecb]{padding:0 48px}}@media (min-width: 960px){.VPFeatures[data-v-5df66ecb]{padding:0 64px}}.container[data-v-5df66ecb]{margin:0 auto;max-width:1152px}.items[data-v-5df66ecb]{display:flex;flex-wrap:wrap;margin:-8px}.item[data-v-5df66ecb]{padding:8px;width:100%}@media (min-width: 640px){.item.grid-2[data-v-5df66ecb],.item.grid-4[data-v-5df66ecb],.item.grid-6[data-v-5df66ecb]{width:50%}}@media (min-width: 768px){.item.grid-2[data-v-5df66ecb],.item.grid-4[data-v-5df66ecb]{width:50%}.item.grid-3[data-v-5df66ecb],.item.grid-6[data-v-5df66ecb]{width:calc(100% / 3)}}@media (min-width: 960px){.item.grid-4[data-v-5df66ecb]{width:25%}}.VPHome[data-v-20eabd3a]{padding-bottom:96px}.VPHome[data-v-20eabd3a] .VPHomeSponsors{margin-top:112px;margin-bottom:-128px}@media (min-width: 768px){.VPHome[data-v-20eabd3a]{padding-bottom:128px}}.VPDocAsideOutline[data-v-c834746b]{display:none}.VPDocAsideOutline.has-outline[data-v-c834746b]{display:block}.content[data-v-c834746b]{position:relative;border-left:1px solid var(--vp-c-divider);padding-left:16px;font-size:13px;font-weight:500}.outline-marker[data-v-c834746b]{position:absolute;top:32px;left:-1px;z-index:0;opacity:0;width:1px;height:18px;background-color:var(--vp-c-brand);transition:top .25s cubic-bezier(0,1,.5,1),background-color .5s,opacity .25s}.outline-title[data-v-c834746b]{letter-spacing:.4px;line-height:28px;font-size:13px;font-weight:600}.VPDocAside[data-v-cb998dce]{display:flex;flex-direction:column;flex-grow:1}.spacer[data-v-cb998dce]{flex-grow:1}.VPDocAside[data-v-cb998dce] .spacer+.VPDocAsideSponsors,.VPDocAside[data-v-cb998dce] .spacer+.VPDocAsideCarbonAds{margin-top:24px}.VPDocAside[data-v-cb998dce] .VPDocAsideSponsors+.VPDocAsideCarbonAds{margin-top:16px}.VPLastUpdated[data-v-0de45606]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 640px){.VPLastUpdated[data-v-0de45606]{line-height:32px;font-size:14px;font-weight:500}}.VPDocFooter[data-v-fc0d1b73]{margin-top:64px}.edit-info[data-v-fc0d1b73]{padding-bottom:18px}@media (min-width: 640px){.edit-info[data-v-fc0d1b73]{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}}.edit-link-button[data-v-fc0d1b73]{display:flex;align-items:center;border:0;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-brand);transition:color .25s}.edit-link-button[data-v-fc0d1b73]:hover{color:var(--vp-c-brand-dark)}.edit-link-icon[data-v-fc0d1b73]{margin-right:8px;width:14px;height:14px;fill:currentColor}.prev-next[data-v-fc0d1b73]{border-top:1px solid var(--vp-c-divider);padding-top:24px}@media (min-width: 640px){.prev-next[data-v-fc0d1b73]{display:flex}}.pager.has-prev[data-v-fc0d1b73]{padding-top:8px}@media (min-width: 640px){.pager[data-v-fc0d1b73]{display:flex;flex-direction:column;flex-shrink:0;width:50%}.pager.has-prev[data-v-fc0d1b73]{padding-top:0;padding-left:16px}}.pager-link[data-v-fc0d1b73]{display:block;border:1px solid var(--vp-c-divider);border-radius:8px;padding:11px 16px 13px;width:100%;height:100%;transition:border-color .25s}.pager-link[data-v-fc0d1b73]:hover{border-color:var(--vp-c-brand)}.pager-link.next[data-v-fc0d1b73]{margin-left:auto;text-align:right}.desc[data-v-fc0d1b73]{display:block;line-height:20px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.title[data-v-fc0d1b73]{display:block;line-height:20px;font-size:14px;font-weight:500;color:var(--vp-c-brand);transition:color .25s}.VPDocOutlineDropdown[data-v-2d98506c]{margin-bottom:42px}.VPDocOutlineDropdown button[data-v-2d98506c]{display:block;font-size:14px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;border:1px solid var(--vp-c-border);padding:4px 12px;border-radius:8px}.VPDocOutlineDropdown button[data-v-2d98506c]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPDocOutlineDropdown button.open[data-v-2d98506c]{color:var(--vp-c-text-1)}.icon[data-v-2d98506c]{display:inline-block;vertical-align:middle;margin-left:2px;width:14px;height:14px;fill:currentColor}[data-v-2d98506c] .outline-link{font-size:13px}.open>.icon[data-v-2d98506c]{transform:rotate(90deg)}.items[data-v-2d98506c]{margin-top:10px;border-left:1px solid var(--vp-c-divider)}.VPDoc[data-v-c11df1f0]{padding:32px 24px 96px;width:100%}.VPDoc .VPDocOutlineDropdown[data-v-c11df1f0]{display:none}@media (min-width: 960px) and (max-width: 1280px){.VPDoc .VPDocOutlineDropdown[data-v-c11df1f0]{display:block}}@media (min-width: 768px){.VPDoc[data-v-c11df1f0]{padding:48px 32px 128px}}@media (min-width: 960px){.VPDoc[data-v-c11df1f0]{padding:32px 32px 0}.VPDoc:not(.has-sidebar) .container[data-v-c11df1f0]{display:flex;justify-content:center;max-width:992px}.VPDoc:not(.has-sidebar) .content[data-v-c11df1f0]{max-width:752px}}@media (min-width: 1280px){.VPDoc .container[data-v-c11df1f0]{display:flex;justify-content:center}.VPDoc .aside[data-v-c11df1f0]{display:block}}@media (min-width: 1440px){.VPDoc:not(.has-sidebar) .content[data-v-c11df1f0]{max-width:784px}.VPDoc:not(.has-sidebar) .container[data-v-c11df1f0]{max-width:1104px}}.container[data-v-c11df1f0]{margin:0 auto;width:100%}.aside[data-v-c11df1f0]{position:relative;display:none;order:2;flex-grow:1;padding-left:32px;width:100%;max-width:256px}.left-aside[data-v-c11df1f0]{order:1;padding-left:unset;padding-right:32px}.aside-container[data-v-c11df1f0]{position:fixed;top:0;padding-top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 32px);width:224px;height:100vh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}.aside-container[data-v-c11df1f0]::-webkit-scrollbar{display:none}.aside-curtain[data-v-c11df1f0]{position:fixed;bottom:0;z-index:10;width:224px;height:32px;background:linear-gradient(transparent,var(--vp-c-bg) 70%)}.aside-content[data-v-c11df1f0]{display:flex;flex-direction:column;min-height:calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 32px));padding-bottom:32px}.content[data-v-c11df1f0]{position:relative;margin:0 auto;width:100%}@media (min-width: 960px){.content[data-v-c11df1f0]{padding:0 32px 128px}}@media (min-width: 1280px){.content[data-v-c11df1f0]{order:1;margin:0;min-width:640px}}.content-container[data-v-c11df1f0]{margin:0 auto}.VPDoc.has-aside .content-container[data-v-c11df1f0]{max-width:688px}.NotFound[data-v-e5bd6573]{padding:64px 24px 96px;text-align:center}@media (min-width: 768px){.NotFound[data-v-e5bd6573]{padding:96px 32px 168px}}.code[data-v-e5bd6573]{line-height:64px;font-size:64px;font-weight:600}.title[data-v-e5bd6573]{padding-top:12px;letter-spacing:2px;line-height:20px;font-size:20px;font-weight:700}.divider[data-v-e5bd6573]{margin:24px auto 18px;width:64px;height:1px;background-color:var(--vp-c-divider)}.quote[data-v-e5bd6573]{margin:0 auto;max-width:256px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.action[data-v-e5bd6573]{padding-top:20px}.link[data-v-e5bd6573]{display:inline-block;border:1px solid var(--vp-c-brand);border-radius:16px;padding:3px 16px;font-size:14px;font-weight:500;color:var(--vp-c-brand);transition:border-color .25s,color .25s}.link[data-v-e5bd6573]:hover{border-color:var(--vp-c-brand-dark);color:var(--vp-c-brand-dark)}.VPContent[data-v-91952ce3]{flex-grow:1;flex-shrink:0;margin:var(--vp-layout-top-height, 0px) auto 0;width:100%}.VPContent.is-home[data-v-91952ce3]{width:100%;max-width:100%}.VPContent.has-sidebar[data-v-91952ce3]{margin:0}@media (min-width: 960px){.VPContent[data-v-91952ce3]{padding-top:var(--vp-nav-height)}.VPContent.has-sidebar[data-v-91952ce3]{margin:var(--vp-layout-top-height, 0px) 0 0;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPContent.has-sidebar[data-v-91952ce3]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.VPFooter[data-v-07acdfa3]{position:relative;z-index:var(--vp-z-index-footer);border-top:1px solid var(--vp-c-gutter);padding:32px 24px;background-color:var(--vp-c-bg)}.VPFooter.has-sidebar[data-v-07acdfa3]{display:none}@media (min-width: 768px){.VPFooter[data-v-07acdfa3]{padding:32px}}.container[data-v-07acdfa3]{margin:0 auto;max-width:var(--vp-layout-max-width);text-align:center}.message[data-v-07acdfa3],.copyright[data-v-07acdfa3]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.message[data-v-07acdfa3]{order:2}.copyright[data-v-07acdfa3]{order:1}.Layout[data-v-bffce215]{display:flex;flex-direction:column;min-height:100vh}.VPHomeSponsors[data-v-978bd032]{border-top:1px solid var(--vp-c-gutter);padding:88px 24px 96px;background-color:var(--vp-c-bg)}.container[data-v-978bd032]{margin:0 auto;max-width:1152px}.love[data-v-978bd032]{margin:0 auto;width:28px;height:28px;color:var(--vp-c-text-3)}.icon[data-v-978bd032]{width:28px;height:28px;fill:currentColor}.message[data-v-978bd032]{margin:0 auto;padding-top:10px;max-width:320px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.sponsors[data-v-978bd032]{padding-top:32px}.action[data-v-978bd032]{padding-top:40px;text-align:center}.VPTeamPage[data-v-b1cfd8dc]{padding-bottom:96px}@media (min-width: 768px){.VPTeamPage[data-v-b1cfd8dc]{padding-bottom:128px}}.VPTeamPageSection+.VPTeamPageSection[data-v-b1cfd8dc-s],.VPTeamMembers+.VPTeamPageSection[data-v-b1cfd8dc-s]{margin-top:64px}.VPTeamMembers+.VPTeamMembers[data-v-b1cfd8dc-s]{margin-top:24px}@media (min-width: 768px){.VPTeamPageTitle+.VPTeamPageSection[data-v-b1cfd8dc-s]{margin-top:16px}.VPTeamPageSection+.VPTeamPageSection[data-v-b1cfd8dc-s],.VPTeamMembers+.VPTeamPageSection[data-v-b1cfd8dc-s]{margin-top:96px}}.VPTeamMembers[data-v-b1cfd8dc-s]{padding:0 24px}@media (min-width: 768px){.VPTeamMembers[data-v-b1cfd8dc-s]{padding:0 48px}}@media (min-width: 960px){.VPTeamMembers[data-v-b1cfd8dc-s]{padding:0 64px}}.VPTeamPageTitle[data-v-46c5e327]{padding:48px 32px;text-align:center}@media (min-width: 768px){.VPTeamPageTitle[data-v-46c5e327]{padding:64px 48px 48px}}@media (min-width: 960px){.VPTeamPageTitle[data-v-46c5e327]{padding:80px 64px 48px}}.title[data-v-46c5e327]{letter-spacing:0;line-height:44px;font-size:36px;font-weight:500}@media (min-width: 768px){.title[data-v-46c5e327]{letter-spacing:-.5px;line-height:56px;font-size:48px}}.lead[data-v-46c5e327]{margin:0 auto;max-width:512px;padding-top:12px;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 768px){.lead[data-v-46c5e327]{max-width:592px;letter-spacing:.15px;line-height:28px;font-size:20px}}.VPTeamPageSection[data-v-3bf2e850]{padding:0 32px}@media (min-width: 768px){.VPTeamPageSection[data-v-3bf2e850]{padding:0 48px}}@media (min-width: 960px){.VPTeamPageSection[data-v-3bf2e850]{padding:0 64px}}.title[data-v-3bf2e850]{position:relative;margin:0 auto;max-width:1152px;text-align:center;color:var(--vp-c-text-2)}.title-line[data-v-3bf2e850]{position:absolute;top:16px;left:0;width:100%;height:1px;background-color:var(--vp-c-divider)}.title-text[data-v-3bf2e850]{position:relative;display:inline-block;padding:0 24px;letter-spacing:0;line-height:32px;font-size:20px;font-weight:500;background-color:var(--vp-c-bg)}.lead[data-v-3bf2e850]{margin:0 auto;max-width:480px;padding-top:12px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.members[data-v-3bf2e850]{padding-top:40px}.VPTeamMembersItem[data-v-b0e83e62]{display:flex;flex-direction:column;gap:2px;border-radius:12px;width:100%;height:100%;overflow:hidden}.VPTeamMembersItem.small .profile[data-v-b0e83e62]{padding:32px}.VPTeamMembersItem.small .data[data-v-b0e83e62]{padding-top:20px}.VPTeamMembersItem.small .avatar[data-v-b0e83e62]{width:64px;height:64px}.VPTeamMembersItem.small .name[data-v-b0e83e62]{line-height:24px;font-size:16px}.VPTeamMembersItem.small .affiliation[data-v-b0e83e62]{padding-top:4px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .desc[data-v-b0e83e62]{padding-top:12px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .links[data-v-b0e83e62]{margin:0 -16px -20px;padding:10px 0 0}.VPTeamMembersItem.medium .profile[data-v-b0e83e62]{padding:48px 32px}.VPTeamMembersItem.medium .data[data-v-b0e83e62]{padding-top:24px;text-align:center}.VPTeamMembersItem.medium .avatar[data-v-b0e83e62]{width:96px;height:96px}.VPTeamMembersItem.medium .name[data-v-b0e83e62]{letter-spacing:.15px;line-height:28px;font-size:20px}.VPTeamMembersItem.medium .affiliation[data-v-b0e83e62]{padding-top:4px;font-size:16px}.VPTeamMembersItem.medium .desc[data-v-b0e83e62]{padding-top:16px;max-width:288px;font-size:16px}.VPTeamMembersItem.medium .links[data-v-b0e83e62]{margin:0 -16px -12px;padding:16px 12px 0}.profile[data-v-b0e83e62]{flex-grow:1;background-color:var(--vp-c-bg-soft)}.data[data-v-b0e83e62]{text-align:center}.avatar[data-v-b0e83e62]{position:relative;flex-shrink:0;margin:0 auto;border-radius:50%;box-shadow:var(--vp-shadow-3)}.avatar-img[data-v-b0e83e62]{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;object-fit:cover}.name[data-v-b0e83e62]{margin:0;font-weight:600}.affiliation[data-v-b0e83e62]{margin:0;font-weight:500;color:var(--vp-c-text-2)}.org.link[data-v-b0e83e62]{color:var(--vp-c-text-2);transition:color .25s}.org.link[data-v-b0e83e62]:hover{color:var(--vp-c-brand)}.desc[data-v-b0e83e62]{margin:0 auto}.desc[data-v-b0e83e62] a{font-weight:500;color:var(--vp-c-brand);text-decoration-style:dotted;transition:color .25s}.links[data-v-b0e83e62]{display:flex;justify-content:center;height:56px}.sp-link[data-v-b0e83e62]{display:flex;justify-content:center;align-items:center;text-align:center;padding:16px;font-size:14px;font-weight:500;color:var(--vp-c-sponsor);background-color:var(--vp-c-bg-soft);transition:color .25s,background-color .25s}.sp .sp-link.link[data-v-b0e83e62]:hover,.sp .sp-link.link[data-v-b0e83e62]:focus{outline:none;color:var(--vp-c-white);background-color:var(--vp-c-sponsor)}.sp-icon[data-v-b0e83e62]{margin-right:8px;width:16px;height:16px;fill:currentColor}.VPTeamMembers.small .container[data-v-6927e48e]{grid-template-columns:repeat(auto-fit,minmax(224px,1fr))}.VPTeamMembers.small.count-1 .container[data-v-6927e48e]{max-width:276px}.VPTeamMembers.small.count-2 .container[data-v-6927e48e]{max-width:576px}.VPTeamMembers.small.count-3 .container[data-v-6927e48e]{max-width:876px}.VPTeamMembers.medium .container[data-v-6927e48e]{grid-template-columns:repeat(auto-fit,minmax(256px,1fr))}@media (min-width: 375px){.VPTeamMembers.medium .container[data-v-6927e48e]{grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}}.VPTeamMembers.medium.count-1 .container[data-v-6927e48e]{max-width:368px}.VPTeamMembers.medium.count-2 .container[data-v-6927e48e]{max-width:760px}.container[data-v-6927e48e]{display:grid;gap:24px;margin:0 auto;max-width:1152px}:root{--vp-c-brand: #00E0FF;--vp-c-brand-light: #00E0FF;--vp-c-brand-lighter: #00FF57;--vp-c-brand-dark: #00E0FF;--vp-home-hero-name-color: transparent;--vp-home-hero-name-background: -webkit-linear-gradient(135deg, #00E0FF 0%, #00FF57 100%)}html.dark{--vp-c-bg: #0a0a1e;--vp-c-bg-light: #141428;--vp-c-bg-lighter: #1e1e32;--vp-code-bg-color: #1e1e32;--vp-c-black-mute: #1e1e32;--vp-c-black: #1e1e32;--vp-c-bg-soft: #1e1e32} diff --git a/docs/assets/style.3d3e7989.css b/docs/assets/style.3d3e7989.css deleted file mode 100644 index f1bb7c6..0000000 --- a/docs/assets/style.3d3e7989.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-cyrillic.5f2c6c8c.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-cyrillic-ext.e75737ce.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-greek.d5a6d92a.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-greek-ext.ab0619bc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-latin.2ed14f66.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-latin-ext.0030eebd.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/assets/inter-roman-vietnamese.14ce25a6.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-cyrillic.ea42a392.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-cyrillic-ext.33bd5a8e.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-greek.8f4463c4.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-greek-ext.4fbe9427.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-latin.bd3b6f56.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-latin-ext.bd8920cc.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/assets/inter-italic-vietnamese.6ce511fb.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Chinese Quotes;src:local("PingFang SC Regular"),local("PingFang SC"),local("SimHei"),local("Source Han Sans SC");unicode-range:U+2018,U+2019,U+201C,U+201D}:root{--vp-c-white: #ffffff;--vp-c-black: #000000;--vp-c-gray: #8e8e93;--vp-c-text-light-1: rgba(60, 60, 67);--vp-c-text-light-2: rgba(60, 60, 67, .75);--vp-c-text-light-3: rgba(60, 60, 67, .33);--vp-c-text-dark-1: rgba(255, 255, 245, .86);--vp-c-text-dark-2: rgba(235, 235, 245, .6);--vp-c-text-dark-3: rgba(235, 235, 245, .38);--vp-c-green: #10b981;--vp-c-green-light: #34d399;--vp-c-green-lighter: #6ee7b7;--vp-c-green-dark: #059669;--vp-c-green-darker: #047857;--vp-c-green-dimm-1: rgba(16, 185, 129, .05);--vp-c-green-dimm-2: rgba(16, 185, 129, .2);--vp-c-green-dimm-3: rgba(16, 185, 129, .5);--vp-c-yellow: #d97706;--vp-c-yellow-light: #f59e0b;--vp-c-yellow-lighter: #fbbf24;--vp-c-yellow-dark: #b45309;--vp-c-yellow-darker: #92400e;--vp-c-yellow-dimm-1: rgba(234, 179, 8, .05);--vp-c-yellow-dimm-2: rgba(234, 179, 8, .2);--vp-c-yellow-dimm-3: rgba(234, 179, 8, .5);--vp-c-red: #f43f5e;--vp-c-red-light: #fb7185;--vp-c-red-lighter: #fda4af;--vp-c-red-dark: #e11d48;--vp-c-red-darker: #be123c;--vp-c-red-dimm-1: rgba(244, 63, 94, .05);--vp-c-red-dimm-2: rgba(244, 63, 94, .2);--vp-c-red-dimm-3: rgba(244, 63, 94, .5);--vp-c-sponsor: #db2777}:root{--vp-c-bg: #ffffff;--vp-c-bg-elv: #ffffff;--vp-c-bg-elv-up: #ffffff;--vp-c-bg-elv-down: #f6f6f7;--vp-c-bg-elv-mute: #f6f6f7;--vp-c-bg-soft: #f6f6f7;--vp-c-bg-soft-up: #f9f9fa;--vp-c-bg-soft-down: #e3e3e5;--vp-c-bg-soft-mute: #e3e3e5;--vp-c-bg-alt: #f6f6f7;--vp-c-border: rgba(60, 60, 67, .29);--vp-c-divider: rgba(60, 60, 67, .12);--vp-c-gutter: rgba(60, 60, 67, .12);--vp-c-neutral: var(--vp-c-black);--vp-c-neutral-inverse: var(--vp-c-white);--vp-c-text-1: var(--vp-c-text-light-1);--vp-c-text-2: var(--vp-c-text-light-2);--vp-c-text-3: var(--vp-c-text-light-3);--vp-c-text-inverse-1: var(--vp-c-text-dark-1);--vp-c-text-inverse-2: var(--vp-c-text-dark-2);--vp-c-text-inverse-3: var(--vp-c-text-dark-3);--vp-c-text-code: #476582;--vp-c-brand: var(--vp-c-green);--vp-c-brand-light: var(--vp-c-green-light);--vp-c-brand-lighter: var(--vp-c-green-lighter);--vp-c-brand-dark: var(--vp-c-green-dark);--vp-c-brand-darker: var(--vp-c-green-darker);--vp-c-mute: #f6f6f7;--vp-c-mute-light: #f9f9fc;--vp-c-mute-lighter: #ffffff;--vp-c-mute-dark: #e3e3e5;--vp-c-mute-darker: #d7d7d9}.dark{--vp-c-bg: #1e1e20;--vp-c-bg-elv: #252529;--vp-c-bg-elv-up: #313136;--vp-c-bg-elv-down: #1e1e20;--vp-c-bg-elv-mute: #313136;--vp-c-bg-soft: #252529;--vp-c-bg-soft-up: #313136;--vp-c-bg-soft-down: #1e1e20;--vp-c-bg-soft-mute: #313136;--vp-c-bg-alt: #161618;--vp-c-border: rgba(82, 82, 89, .68);--vp-c-divider: rgba(82, 82, 89, .32);--vp-c-gutter: #000000;--vp-c-neutral: var(--vp-c-white);--vp-c-neutral-inverse: var(--vp-c-black);--vp-c-text-1: var(--vp-c-text-dark-1);--vp-c-text-2: var(--vp-c-text-dark-2);--vp-c-text-3: var(--vp-c-text-dark-3);--vp-c-text-inverse-1: var(--vp-c-text-light-1);--vp-c-text-inverse-2: var(--vp-c-text-light-2);--vp-c-text-inverse-3: var(--vp-c-text-light-3);--vp-c-text-code: #c9def1;--vp-c-mute: #313136;--vp-c-mute-light: #3a3a3c;--vp-c-mute-lighter: #505053;--vp-c-mute-dark: #2c2c30;--vp-c-mute-darker: #252529}:root{--vp-font-family-base: "Chinese Quotes", "Inter var", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}:root{--vp-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .07);--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .08);--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, .12), 0 3px 9px rgba(0, 0, 0, .12);--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, .16), 0 4px 12px rgba(0, 0, 0, .16)}:root{--vp-z-index-local-nav: 10;--vp-z-index-nav: 20;--vp-z-index-layout-top: 30;--vp-z-index-backdrop: 40;--vp-z-index-sidebar: 50;--vp-z-index-footer: 60}:root{--vp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2'/%3E%3C/svg%3E");--vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-6 9 2 2 4-4'/%3E%3C/svg%3E")}:root{--vp-layout-max-width: 1440px}:root{--vp-header-anchor-symbol: "#"}:root{--vp-code-line-height: 1.7;--vp-code-font-size: .875em;--vp-code-block-color: var(--vp-c-text-dark-1);--vp-code-block-bg: #292b30;--vp-code-block-bg-light: #1e1e20;--vp-code-block-divider-color: #000000;--vp-code-line-highlight-color: rgba(0, 0, 0, .5);--vp-code-line-number-color: var(--vp-c-text-dark-3);--vp-code-line-diff-add-color: var(--vp-c-green-dimm-2);--vp-code-line-diff-add-symbol-color: var(--vp-c-green);--vp-code-line-diff-remove-color: var(--vp-c-red-dimm-2);--vp-code-line-diff-remove-symbol-color: var(--vp-c-red);--vp-code-line-warning-color: var(--vp-c-yellow-dimm-2);--vp-code-line-error-color: var(--vp-c-red-dimm-2);--vp-code-copy-code-border-color: transparent;--vp-code-copy-code-bg: var(--vp-code-block-bg-light);--vp-code-copy-code-hover-border-color: var(--vp-c-divider);--vp-code-copy-code-hover-bg: var(--vp-code-block-bg-light);--vp-code-copy-code-active-text: var(--vp-c-text-dark-2);--vp-code-tab-divider: var(--vp-code-block-divider-color);--vp-code-tab-text-color: var(--vp-c-text-dark-2);--vp-code-tab-bg: var(--vp-code-block-bg);--vp-code-tab-hover-text-color: var(--vp-c-text-dark-1);--vp-code-tab-active-text-color: var(--vp-c-text-dark-1);--vp-code-tab-active-bar-color: var(--vp-c-brand)}.dark{--vp-code-block-bg: #161618}:root{--vp-button-brand-border: var(--vp-c-brand-lighter);--vp-button-brand-text: var(--vp-c-white);--vp-button-brand-bg: var(--vp-c-brand);--vp-button-brand-hover-border: var(--vp-c-brand-lighter);--vp-button-brand-hover-text: var(--vp-c-white);--vp-button-brand-hover-bg: var(--vp-c-brand-dark);--vp-button-brand-active-border: var(--vp-c-brand-lighter);--vp-button-brand-active-text: var(--vp-c-white);--vp-button-brand-active-bg: var(--vp-c-brand-darker);--vp-button-alt-border: var(--vp-c-border);--vp-button-alt-text: var(--vp-c-neutral);--vp-button-alt-bg: var(--vp-c-mute);--vp-button-alt-hover-border: var(--vp-c-border);--vp-button-alt-hover-text: var(--vp-c-neutral);--vp-button-alt-hover-bg: var(--vp-c-mute-dark);--vp-button-alt-active-border: var(--vp-c-border);--vp-button-alt-active-text: var(--vp-c-neutral);--vp-button-alt-active-bg: var(--vp-c-mute-darker);--vp-button-sponsor-border: var(--vp-c-gray-light-3);--vp-button-sponsor-text: var(--vp-c-text-light-2);--vp-button-sponsor-bg: transparent;--vp-button-sponsor-hover-border: var(--vp-c-sponsor);--vp-button-sponsor-hover-text: var(--vp-c-sponsor);--vp-button-sponsor-hover-bg: transparent;--vp-button-sponsor-active-border: var(--vp-c-sponsor);--vp-button-sponsor-active-text: var(--vp-c-sponsor);--vp-button-sponsor-active-bg: transparent}.dark{--vp-button-sponsor-border: var(--vp-c-gray-dark-1);--vp-button-sponsor-text: var(--vp-c-text-dark-2)}:root{--vp-custom-block-font-size: 14px;--vp-custom-block-code-font-size: 13px;--vp-custom-block-info-border: var(--vp-c-border);--vp-custom-block-info-text: var(--vp-c-text-2);--vp-custom-block-info-bg: var(--vp-c-bg-soft-up);--vp-custom-block-info-code-bg: var(--vp-c-bg-soft);--vp-custom-block-tip-border: var(--vp-c-green);--vp-custom-block-tip-text: var(--vp-c-green-dark);--vp-custom-block-tip-bg: var(--vp-c-bg-soft-up);--vp-custom-block-tip-code-bg: var(--vp-c-bg-soft);--vp-custom-block-warning-border: var(--vp-c-yellow);--vp-custom-block-warning-text: var(--vp-c-yellow);--vp-custom-block-warning-bg: var(--vp-c-bg-soft-up);--vp-custom-block-warning-code-bg: var(--vp-c-bg-soft);--vp-custom-block-danger-border: var(--vp-c-red);--vp-custom-block-danger-text: var(--vp-c-red);--vp-custom-block-danger-bg: var(--vp-c-bg-soft-up);--vp-custom-block-danger-code-bg: var(--vp-c-bg-soft);--vp-custom-block-details-border: var(--vp-custom-block-info-border);--vp-custom-block-details-text: var(--vp-custom-block-info-text);--vp-custom-block-details-bg: var(--vp-custom-block-info-bg);--vp-custom-block-details-code-bg: var(--vp-custom-block-details-bg)}:root{--vp-input-border-color: var(--vp-c-border);--vp-input-bg-color: var(--vp-c-bg-alt);--vp-input-hover-border-color: var(--vp-c-gray);--vp-input-switch-bg-color: var(--vp-c-mute)}:root{--vp-nav-height: 64px;--vp-nav-bg-color: var(--vp-c-bg);--vp-nav-screen-bg-color: var(--vp-c-bg)}:root{--vp-local-nav-bg-color: var(--vp-c-bg)}:root{--vp-sidebar-width: 272px;--vp-sidebar-bg-color: var(--vp-c-bg-alt)}:root{--vp-backdrop-bg-color: rgba(0, 0, 0, .6)}:root{--vp-home-hero-name-color: var(--vp-c-brand);--vp-home-hero-name-background: transparent;--vp-home-hero-image-background-image: none;--vp-home-hero-image-filter: none}:root{--vp-badge-info-border: var(--vp-c-border);--vp-badge-info-text: var(--vp-c-text-2);--vp-badge-info-bg: var(--vp-c-bg-soft-up);--vp-badge-tip-border: var(--vp-c-green-dark);--vp-badge-tip-text: var(--vp-c-green);--vp-badge-tip-bg: var(--vp-c-green-dimm-1);--vp-badge-warning-border: var(--vp-c-yellow-dark);--vp-badge-warning-text: var(--vp-c-yellow);--vp-badge-warning-bg: var(--vp-c-yellow-dimm-1);--vp-badge-danger-border: var(--vp-c-red-dark);--vp-badge-danger-text: var(--vp-c-red);--vp-badge-danger-bg: var(--vp-c-red-dimm-1)}:root{--vp-carbon-ads-text-color: var(--vp-c-text-1);--vp-carbon-ads-poweredby-color: var(--vp-c-text-2);--vp-carbon-ads-bg-color: var(--vp-c-bg-soft);--vp-carbon-ads-hover-text-color: var(--vp-c-brand);--vp-carbon-ads-hover-poweredby-color: var(--vp-c-text-1)}*,:before,:after{box-sizing:border-box}html{line-height:1.4;font-size:16px;-webkit-text-size-adjust:100%}html.dark{color-scheme:dark}body{margin:0;width:100%;min-width:320px;min-height:100vh;line-height:24px;font-family:var(--vp-font-family-base);font-size:16px;font-weight:400;color:var(--vp-c-text-1);background-color:var(--vp-c-bg);direction:ltr;font-synthesis:style;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin:0;line-height:24px;font-size:16px;font-weight:400}p{margin:0}strong,b{font-weight:600}a,area,button,[role=button],input,label,select,summary,textarea{touch-action:manipulation}a{color:inherit;text-decoration:inherit}ol,ul{list-style:none;margin:0;padding:0}blockquote{margin:0}pre,code,kbd,samp{font-family:var(--vp-font-family-mono)}img,svg,video,canvas,audio,iframe,embed,object{display:block}figure{margin:0}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{border:0;padding:0;line-height:inherit;color:inherit}button{padding:0;font-family:inherit;background-color:transparent;background-image:none}button:enabled,[role=button]:enabled{cursor:pointer}button:focus,button:focus-visible{outline:1px dotted;outline:4px auto -webkit-focus-ring-color}button:focus:not(:focus-visible){outline:none!important}input:focus,textarea:focus,select:focus{outline:none}table{border-collapse:collapse}input{background-color:transparent}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:var(--vp-c-text-3)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:var(--vp-c-text-3)}input::placeholder,textarea::placeholder{color:var(--vp-c-text-3)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}textarea{resize:vertical}select{-webkit-appearance:none}fieldset{margin:0;padding:0}h1,h2,h3,h4,h5,h6,li,p{overflow-wrap:break-word}vite-error-overlay{z-index:9999}.visually-hidden{position:absolute;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden}.custom-block{border:1px solid transparent;border-radius:8px;padding:16px 16px 8px;line-height:24px;font-size:var(--vp-custom-block-font-size);color:var(--vp-c-text-2)}.custom-block.info{border-color:var(--vp-custom-block-info-border);color:var(--vp-custom-block-info-text);background-color:var(--vp-custom-block-info-bg)}.custom-block.info th{color:var(--vp-custom-block-info-text)}.custom-block.info code{background-color:var(--vp-custom-block-info-code-bg)}.custom-block.tip{border-color:var(--vp-custom-block-tip-border);color:var(--vp-custom-block-tip-text);background-color:var(--vp-custom-block-tip-bg)}.custom-block.tip th{color:var(--vp-custom-block-tip-text)}.custom-block.tip code{background-color:var(--vp-custom-block-tip-code-bg)}.custom-block.warning{border-color:var(--vp-custom-block-warning-border);color:var(--vp-custom-block-warning-text);background-color:var(--vp-custom-block-warning-bg)}.custom-block.warning th{color:var(--vp-custom-block-warning-text)}.custom-block.warning code{background-color:var(--vp-custom-block-warning-code-bg)}.custom-block.danger{border-color:var(--vp-custom-block-danger-border);color:var(--vp-custom-block-danger-text);background-color:var(--vp-custom-block-danger-bg)}.custom-block.danger th{color:var(--vp-custom-block-danger-text)}.custom-block.danger code{background-color:var(--vp-custom-block-danger-code-bg)}.custom-block.details{border-color:var(--vp-custom-block-details-border);color:var(--vp-custom-block-details-text);background-color:var(--vp-custom-block-details-bg)}.custom-block.details th{color:var(--vp-custom-block-details-text)}.custom-block.details code{background-color:var(--vp-custom-block-details-code-bg)}.custom-block-title{font-weight:600}.custom-block p+p{margin:8px 0}.custom-block.details summary{margin:0 0 8px;font-weight:700;cursor:pointer}.custom-block.details summary+p{margin:8px 0}.custom-block a{color:inherit;font-weight:600}.custom-block a:hover{text-decoration:underline}.custom-block code{font-size:var(--vp-custom-block-code-font-size)}.dark .vp-code-light{display:none}html:not(.dark) .vp-code-dark{display:none}.vp-code-group{margin-top:16px}.vp-code-group .tabs{position:relative;display:flex;margin-right:-24px;margin-left:-24px;padding:0 12px;background-color:var(--vp-code-tab-bg);overflow-x:auto;overflow-y:hidden}.vp-code-group .tabs:after{position:absolute;right:0;bottom:0;left:0;height:1px;background-color:var(--vp-code-tab-divider);content:""}@media (min-width: 640px){.vp-code-group .tabs{margin-right:0;margin-left:0;border-radius:8px 8px 0 0}}.vp-code-group .tabs input{position:absolute;opacity:0;pointer-events:none}.vp-code-group .tabs label{position:relative;display:inline-block;border-bottom:1px solid transparent;padding:0 12px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-code-tab-text-color);white-space:nowrap;cursor:pointer;transition:color .25s}.vp-code-group .tabs label:after{position:absolute;right:8px;bottom:-1px;left:8px;z-index:10;height:1px;content:"";background-color:transparent;transition:background-color .25s}.vp-code-group label:hover{color:var(--vp-code-tab-hover-text-color)}.vp-code-group input:checked+label{color:var(--vp-code-tab-active-text-color)}.vp-code-group input:checked+label:after{background-color:var(--vp-code-tab-active-bar-color)}.vp-code-group div[class*=language-]{display:none;margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.vp-code-group div[class*=language-].active{display:block}.vp-doc h1,.vp-doc h2,.vp-doc h3,.vp-doc h4,.vp-doc h5,.vp-doc h6{position:relative;font-weight:600;outline:none}.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:28px}.vp-doc h2{margin:48px 0 16px;border-top:1px solid var(--vp-c-divider);padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.vp-doc h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.vp-doc .header-anchor{float:left;margin-left:-.87em;padding-right:.23em;font-weight:500;user-select:none;opacity:0;transition:color .25s,opacity .25s}.vp-doc .header-anchor:before{content:var(--vp-header-anchor-symbol)}.vp-doc h1:hover .header-anchor,.vp-doc h1 .header-anchor:focus,.vp-doc h2:hover .header-anchor,.vp-doc h2 .header-anchor:focus,.vp-doc h3:hover .header-anchor,.vp-doc h3 .header-anchor:focus,.vp-doc h4:hover .header-anchor,.vp-doc h4 .header-anchor:focus,.vp-doc h5:hover .header-anchor,.vp-doc h5 .header-anchor:focus,.vp-doc h6:hover .header-anchor,.vp-doc h6 .header-anchor:focus{opacity:1}@media (min-width: 768px){.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:32px}}.vp-doc p,.vp-doc summary{margin:16px 0}.vp-doc p{line-height:28px}.vp-doc blockquote{margin:16px 0;border-left:2px solid var(--vp-c-divider);padding-left:16px;transition:border-color .5s}.vp-doc blockquote>p{margin:0;font-size:16px;color:var(--vp-c-text-2);transition:color .5s}.vp-doc a{font-weight:500;color:var(--vp-c-brand);text-decoration-style:dotted;transition:color .25s}.vp-doc a:hover{text-decoration:underline}.vp-doc strong{font-weight:600}.vp-doc ul,.vp-doc ol{padding-left:1.25rem;margin:16px 0}.vp-doc ul{list-style:disc}.vp-doc ol{list-style:decimal}.vp-doc li+li{margin-top:8px}.vp-doc li>ol,.vp-doc li>ul{margin:8px 0 0}.vp-doc table{display:block;border-collapse:collapse;margin:20px 0;overflow-x:auto}.vp-doc tr{border-top:1px solid var(--vp-c-divider);transition:background-color .5s}.vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}.vp-doc th,.vp-doc td{border:1px solid var(--vp-c-divider);padding:8px 16px}.vp-doc th{text-align:left;font-size:14px;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-doc td{font-size:14px}.vp-doc hr{margin:16px 0;border:none;border-top:1px solid var(--vp-c-divider)}.vp-doc .custom-block{margin:16px 0}.vp-doc .custom-block p{margin:8px 0;line-height:24px}.vp-doc .custom-block p:first-child{margin:0}.vp-doc .custom-block a{color:inherit;font-weight:600}.vp-doc .custom-block a:hover{text-decoration:underline}.vp-doc .custom-block code{font-size:var(--vp-custom-block-code-font-size);font-weight:700;color:inherit}.vp-doc .custom-block div[class*=language-]{margin:8px 0}.vp-doc .custom-block div[class*=language-] code{font-weight:400;background-color:transparent}.vp-doc :not(pre,h1,h2,h3,h4,h5,h6)>code{font-size:var(--vp-code-font-size)}.vp-doc :not(pre)>code{border-radius:4px;padding:3px 6px;color:var(--vp-c-text-code);background-color:var(--vp-c-mute);transition:color .5s,background-color .5s}.vp-doc h1>code,.vp-doc h2>code,.vp-doc h3>code{font-size:.9em}.vp-doc a>code{color:var(--vp-c-brand);transition:color .25s}.vp-doc a:hover>code{color:var(--vp-c-brand-dark)}.vp-doc div[class*=language-]{position:relative;margin:16px -24px;background-color:var(--vp-code-block-bg);overflow-x:auto;transition:background-color .5s}@media (min-width: 640px){.vp-doc div[class*=language-]{border-radius:8px;margin:16px 0}}@media (max-width: 639px){.vp-doc li div[class*=language-]{border-radius:8px 0 0 8px}}.vp-doc div[class*=language-]+div[class*=language-],.vp-doc div[class$=-api]+div[class*=language-],.vp-doc div[class*=language-]+div[class$=-api]>div[class*=language-]{margin-top:-8px}.vp-doc [class*=language-] pre,.vp-doc [class*=language-] code{direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.vp-doc [class*=language-] pre{position:relative;z-index:1;margin:0;padding:20px 0;background:transparent;overflow-x:auto}.vp-doc [class*=language-] code{display:block;padding:0 24px;width:fit-content;min-width:100%;line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-block-color);transition:color .5s}.vp-doc [class*=language-] code .highlighted{background-color:var(--vp-code-line-highlight-color);transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .highlighted.error{background-color:var(--vp-code-line-error-color)}.vp-doc [class*=language-] code .highlighted.warning{background-color:var(--vp-code-line-warning-color)}.vp-doc [class*=language-] code .diff{transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .diff:before{position:absolute;left:10px}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){filter:blur(.095rem);opacity:.4;transition:filter .35s,opacity .35s}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){opacity:.7;transition:filter .35s,opacity .35s}.vp-doc [class*=language-]:hover .has-focused-lines .line:not(.has-focus){filter:blur(0);opacity:1}.vp-doc [class*=language-] code .diff.remove{background-color:var(--vp-code-line-diff-remove-color);opacity:.7}.vp-doc [class*=language-] code .diff.remove:before{content:"-";color:var(--vp-code-line-diff-remove-symbol-color)}.vp-doc [class*=language-] code .diff.add{background-color:var(--vp-code-line-diff-add-color)}.vp-doc [class*=language-] code .diff.add:before{content:"+";color:var(--vp-code-line-diff-add-symbol-color)}.vp-doc div[class*=language-].line-numbers-mode{padding-left:32px}.vp-doc .line-numbers-wrapper{position:absolute;top:0;bottom:0;left:0;z-index:3;border-right:1px solid var(--vp-code-block-divider-color);padding-top:20px;width:32px;text-align:center;font-family:var(--vp-font-family-mono);line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-line-number-color);transition:border-color .5s,color .5s}.vp-doc [class*=language-]>button.copy{direction:ltr;position:absolute;top:12px;right:12px;z-index:3;display:block;justify-content:center;align-items:center;border:1px solid var(--vp-code-copy-code-border-color);border-radius:4px;width:40px;height:40px;background-color:var(--vp-code-copy-code-bg);opacity:0;cursor:pointer;background-image:var(--vp-icon-copy);background-position:50%;background-size:20px;background-repeat:no-repeat;transition:border-color .25s,background-color .25s,opacity .25s}.vp-doc [class*=language-]:hover>button.copy,.vp-doc [class*=language-]>button.copy:focus{opacity:1}.vp-doc [class*=language-]>button.copy:hover,.vp-doc [class*=language-]>button.copy.copied{border-color:var(--vp-code-copy-code-hover-border-color);background-color:var(--vp-code-copy-code-hover-bg)}.vp-doc [class*=language-]>button.copy.copied,.vp-doc [class*=language-]>button.copy:hover.copied{border-radius:0 4px 4px 0;background-color:var(--vp-code-copy-code-hover-bg);background-image:var(--vp-icon-copied)}.vp-doc [class*=language-]>button.copy.copied:before,.vp-doc [class*=language-]>button.copy:hover.copied:before{position:relative;top:-1px;left:-65px;display:flex;justify-content:center;align-items:center;border:1px solid var(--vp-code-copy-code-hover-border-color);border-right:0;border-radius:4px 0 0 4px;width:64px;height:40px;text-align:center;font-size:12px;font-weight:500;color:var(--vp-code-copy-code-active-text);background-color:var(--vp-code-copy-code-hover-bg);white-space:nowrap;content:"Copied"}.vp-doc [class*=language-]>span.lang{position:absolute;top:2px;right:8px;z-index:2;font-size:12px;font-weight:500;color:var(--vp-c-text-dark-3);transition:color .4s,opacity .4s}.vp-doc [class*=language-]:hover>button.copy+span.lang,.vp-doc [class*=language-]>button.copy:focus+span.lang{opacity:0}.vp-doc .VPTeamMembers{margin-top:24px}.vp-doc .VPTeamMembers.small.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-doc .VPTeamMembers.small.count-2 .container,.vp-doc .VPTeamMembers.small.count-3 .container{max-width:100%!important}.vp-doc .VPTeamMembers.medium.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-sponsor{border-radius:16px;overflow:hidden}.vp-sponsor.aside{border-radius:12px}.vp-sponsor-section+.vp-sponsor-section{margin-top:4px}.vp-sponsor-tier{margin-bottom:4px;text-align:center;letter-spacing:1px;line-height:24px;width:100%;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-sponsor.normal .vp-sponsor-tier{padding:13px 0 11px;font-size:14px}.vp-sponsor.aside .vp-sponsor-tier{padding:9px 0 7px;font-size:12px}.vp-sponsor-grid+.vp-sponsor-tier{margin-top:4px}.vp-sponsor-grid{display:flex;flex-wrap:wrap;gap:4px}.vp-sponsor-grid.xmini .vp-sponsor-grid-link{height:64px}.vp-sponsor-grid.xmini .vp-sponsor-grid-image{max-width:64px;max-height:22px}.vp-sponsor-grid.mini .vp-sponsor-grid-link{height:72px}.vp-sponsor-grid.mini .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.small .vp-sponsor-grid-link{height:96px}.vp-sponsor-grid.small .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.medium .vp-sponsor-grid-link{height:112px}.vp-sponsor-grid.medium .vp-sponsor-grid-image{max-width:120px;max-height:36px}.vp-sponsor-grid.big .vp-sponsor-grid-link{height:184px}.vp-sponsor-grid.big .vp-sponsor-grid-image{max-width:192px;max-height:56px}.vp-sponsor-grid[data-vp-grid="2"] .vp-sponsor-grid-item{width:calc((100% - 4px)/2)}.vp-sponsor-grid[data-vp-grid="3"] .vp-sponsor-grid-item{width:calc((100% - 4px * 2) / 3)}.vp-sponsor-grid[data-vp-grid="4"] .vp-sponsor-grid-item{width:calc((100% - 12px)/4)}.vp-sponsor-grid[data-vp-grid="5"] .vp-sponsor-grid-item{width:calc((100% - 16px)/5)}.vp-sponsor-grid[data-vp-grid="6"] .vp-sponsor-grid-item{width:calc((100% - 4px * 5) / 6)}.vp-sponsor-grid-item{flex-shrink:0;width:100%;background-color:var(--vp-c-bg-soft);transition:background-color .25s}.vp-sponsor-grid-item:hover{background-color:var(--vp-c-bg-soft-down)}.vp-sponsor-grid-item:hover .vp-sponsor-grid-image{filter:grayscale(0) invert(0)}.vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.dark .vp-sponsor-grid-item:hover{background-color:var(--vp-c-white)}.dark .vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.vp-sponsor-grid-link{display:flex}.vp-sponsor-grid-box{display:flex;justify-content:center;align-items:center;width:100%}.vp-sponsor-grid-image{max-width:100%;filter:grayscale(1);transition:filter .25s}.dark .vp-sponsor-grid-image{filter:grayscale(1) invert(1)}.VPBadge[data-v-ce917cfb]{display:inline-block;margin-left:2px;border:1px solid transparent;border-radius:10px;padding:0 8px;line-height:18px;font-size:12px;font-weight:600;transform:translateY(-2px)}h1 .VPBadge[data-v-ce917cfb],h2 .VPBadge[data-v-ce917cfb],h3 .VPBadge[data-v-ce917cfb],h4 .VPBadge[data-v-ce917cfb],h5 .VPBadge[data-v-ce917cfb],h6 .VPBadge[data-v-ce917cfb]{vertical-align:top}h2 .VPBadge[data-v-ce917cfb]{border-radius:11px;line-height:20px}.VPBadge.info[data-v-ce917cfb]{border-color:var(--vp-badge-info-border);color:var(--vp-badge-info-text);background-color:var(--vp-badge-info-bg)}.VPBadge.tip[data-v-ce917cfb]{border-color:var(--vp-badge-tip-border);color:var(--vp-badge-tip-text);background-color:var(--vp-badge-tip-bg)}.VPBadge.warning[data-v-ce917cfb]{border-color:var(--vp-badge-warning-border);color:var(--vp-badge-warning-text);background-color:var(--vp-badge-warning-bg)}.VPBadge.danger[data-v-ce917cfb]{border-color:var(--vp-badge-danger-border);color:var(--vp-badge-danger-text);background-color:var(--vp-badge-danger-bg)}.VPSkipLink[data-v-73e3a132]{top:8px;left:8px;padding:8px 16px;z-index:999;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;color:var(--vp-c-brand);box-shadow:var(--vp-shadow-3);background-color:var(--vp-c-bg)}.VPSkipLink[data-v-73e3a132]:focus{height:auto;width:auto;clip:auto;clip-path:none}.dark .VPSkipLink[data-v-73e3a132]{color:var(--vp-c-green)}@media (min-width: 1280px){.VPSkipLink[data-v-73e3a132]{top:14px;left:16px}}.VPBackdrop[data-v-54a304ca]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vp-z-index-backdrop);background:var(--vp-backdrop-bg-color);transition:opacity .5s}.VPBackdrop.fade-enter-from[data-v-54a304ca],.VPBackdrop.fade-leave-to[data-v-54a304ca]{opacity:0}.VPBackdrop.fade-leave-active[data-v-54a304ca]{transition-duration:.25s}@media (min-width: 1280px){.VPBackdrop[data-v-54a304ca]{display:none}}html:not(.dark) .VPImage.dark[data-v-dc109a54]{display:none}.dark .VPImage.light[data-v-dc109a54]{display:none}.title[data-v-1ab7b21f]{display:flex;align-items:center;border-bottom:1px solid transparent;width:100%;height:var(--vp-nav-height);font-size:16px;font-weight:600;color:var(--vp-c-text-1);transition:opacity .25s}.title[data-v-1ab7b21f]:hover{opacity:.6}@media (min-width: 960px){.title[data-v-1ab7b21f]{flex-shrink:0}.VPNavBarTitle.has-sidebar .title[data-v-1ab7b21f]{border-bottom-color:var(--vp-c-divider)}}[data-v-1ab7b21f] .logo{margin-right:8px;height:24px}/*! @docsearch/css 3.3.3 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */:root{--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:rgba(101,108,133,.8);--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 hsla(0,0%,100%,.5),0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,.4);--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,.12)}html[data-theme=dark]{--docsearch-text-color:#f5f6f7;--docsearch-container-background:rgba(9,10,17,.8);--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 rgba(3,4,9,.3);--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 rgba(73,76,106,.5),0 -4px 8px 0 rgba(0,0,0,.2);--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}.DocSearch-Button{align-items:center;background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;display:flex;font-weight:500;height:36px;justify-content:space-between;margin:0 0 0 16px;padding:0 8px;user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:none}.DocSearch-Button-Container{align-items:center;display:flex}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;position:relative;padding:0 0 2px;border:0;top:-1px;width:20px}@media (max-width:768px){.DocSearch-Button-Keys,.DocSearch-Button-Placeholder{display:none}}.DocSearch--active{overflow:hidden!important}.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Container a{text-decoration:none}.DocSearch-Link{appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;font:inherit;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{appearance:none;background:transparent;border:0;color:var(--docsearch-text-color);flex:1;font:inherit;font-size:1.2em;height:100%;outline:none;padding:0 0 0 8px;width:80%}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator{display:none}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{animation:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0;stroke-width:var(--docsearch-icon-stroke-width)}}.DocSearch-Reset{animation:fade-in .1s ease-in forwards;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;padding:2px;right:0;stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Cancel{display:none}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:transparent}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Help{font-size:.9em;margin:0;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{color:var(--docsearch-muted-color);display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--deleting{transition:none}}.DocSearch-Hit--deleting{opacity:0;transition:all .25s linear}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--favoriting{transition:none}}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:all .25s linear;transition-delay:.25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;stroke-width:var(--docsearch-icon-stroke-width);width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit[aria-selected=true] mark{text-decoration:underline}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color);stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{appearance:none;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer;padding:2px}svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:rgba(0,0,0,.2);transition:background-color .1s ease-in}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{transition:none}}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:rgba(0,0,0,.2);transition:none}}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"\bb "}.DocSearch-Prefill{appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:none;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;user-select:none;width:100%;z-index:300}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li{align-items:center;display:flex}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:2px;box-shadow:var(--docsearch-key-shadow);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;color:var(--docsearch-muted-color);border:0;width:20px}@media (max-width:768px){:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Dropdown{max-height:calc(var(--docsearch-vh, 1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Cancel{appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:none;overflow:hidden;padding:0;user-select:none;white-space:nowrap}.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.VPNavBarSearch{display:flex;align-items:center}@media (min-width: 768px){.VPNavBarSearch{flex-grow:1;padding-left:24px}}@media (min-width: 960px){.VPNavBarSearch{padding-left:32px}}.DocSearch{--docsearch-primary-color: var(--vp-c-brand);--docsearch-highlight-color: var(--docsearch-primary-color);--docsearch-text-color: var(--vp-c-text-1);--docsearch-muted-color: var(--vp-c-text-2);--docsearch-searchbox-shadow: none;--docsearch-searchbox-focus-background: transparent;--docsearch-key-gradient: transparent;--docsearch-key-shadow: none;--docsearch-modal-background: var(--vp-c-bg-soft);--docsearch-footer-background: var(--vp-c-bg)}.dark .DocSearch{--docsearch-modal-shadow: none;--docsearch-footer-shadow: none;--docsearch-logo-color: var(--vp-c-text-2);--docsearch-hit-background: var(--vp-c-bg-soft-mute);--docsearch-hit-color: var(--vp-c-text-2);--docsearch-hit-shadow: none}.DocSearch-Button{display:flex;justify-content:center;align-items:center;margin:0;padding:0;width:32px;height:55px;background:transparent;transition:border-color .25s}.DocSearch-Button:hover{background:transparent}.DocSearch-Button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.DocSearch-Button:focus:not(:focus-visible){outline:none!important}@media (min-width: 768px){.DocSearch-Button{justify-content:flex-start;border:1px solid transparent;border-radius:8px;padding:0 10px 0 12px;width:100%;height:40px;background-color:var(--vp-c-bg-alt)}.DocSearch-Button:hover{border-color:var(--vp-c-brand);background:var(--vp-c-bg-alt)}}.DocSearch-Button .DocSearch-Button-Container{display:flex;align-items:center}.DocSearch-Button .DocSearch-Search-Icon{position:relative;width:16px;height:16px;color:var(--vp-c-text-1);fill:currentColor;transition:color .5s}.DocSearch-Button:hover .DocSearch-Search-Icon{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Search-Icon{top:1px;margin-right:8px;width:14px;height:14px;color:var(--vp-c-text-2)}}.DocSearch-Button .DocSearch-Button-Placeholder{display:none;margin-top:2px;padding:0 16px 0 0;font-size:13px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.DocSearch-Button:hover .DocSearch-Button-Placeholder{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Placeholder{display:inline-block}}.DocSearch-Button .DocSearch-Button-Keys{direction:ltr;display:none;min-width:auto}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Keys{display:flex;align-items:center}}.DocSearch-Button .DocSearch-Button-Key{display:block;margin:2px 0 0;border:1px solid var(--vp-c-divider);border-right:none;border-radius:4px 0 0 4px;padding-left:6px;min-width:0;width:auto;height:22px;line-height:22px;font-family:var(--vp-font-family-base);font-size:12px;font-weight:500;transition:color .5s,border-color .5s}.DocSearch-Button .DocSearch-Button-Key+.DocSearch-Button-Key{border-right:1px solid var(--vp-c-divider);border-left:none;border-radius:0 4px 4px 0;padding-left:2px;padding-right:6px}.DocSearch-Button .DocSearch-Button-Key:first-child{font-size:1px;letter-spacing:-12px;color:transparent}.DocSearch-Button .DocSearch-Button-Key:first-child:after{content:var(--24673d6c);font-size:12px;letter-spacing:normal;color:var(--docsearch-muted-color)}.DocSearch-Button .DocSearch-Button-Key:first-child>*{display:none}.dark .DocSearch-Footer{border-top:1px solid var(--vp-c-divider)}.DocSearch-Form{border:1px solid var(--vp-c-brand);background-color:var(--vp-c-white)}.dark .DocSearch-Form{background-color:var(--vp-c-bg-soft-mute)}.DocSearch-Screen-Icon>svg{margin:auto}.icon[data-v-f3ed0000]{display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;fill:var(--vp-c-text-3);transition:fill .25s;flex-shrink:0}.VPNavBarMenuLink[data-v-b7aed9c7]{display:flex;align-items:center;padding:0 12px;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.VPNavBarMenuLink.active[data-v-b7aed9c7],.VPNavBarMenuLink[data-v-b7aed9c7]:hover{color:var(--vp-c-brand)}.VPMenuGroup+.VPMenuLink[data-v-fd8d5e7a]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.link[data-v-fd8d5e7a]{display:block;border-radius:6px;padding:0 12px;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);white-space:nowrap;transition:background-color .25s,color .25s}.link[data-v-fd8d5e7a]:hover{color:var(--vp-c-brand);background-color:var(--vp-c-bg-elv-mute)}.link.active[data-v-fd8d5e7a]{color:var(--vp-c-brand)}.VPMenuGroup[data-v-a6b0397c]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.VPMenuGroup[data-v-a6b0397c]:first-child{margin-top:0;border-top:0;padding-top:0}.VPMenuGroup+.VPMenuGroup[data-v-a6b0397c]{margin-top:12px;border-top:1px solid var(--vp-c-divider)}.title[data-v-a6b0397c]{padding:0 12px;line-height:32px;font-size:14px;font-weight:600;color:var(--vp-c-text-2);white-space:nowrap;transition:color .25s}.VPMenu[data-v-e42ed9b3]{border-radius:12px;padding:12px;min-width:128px;border:1px solid var(--vp-c-divider);background-color:var(--vp-c-bg-elv);box-shadow:var(--vp-shadow-3);transition:background-color .5s;max-height:calc(100vh - var(--vp-nav-height));overflow-y:auto}.VPMenu[data-v-e42ed9b3] .group{margin:0 -12px;padding:0 12px 12px}.VPMenu[data-v-e42ed9b3] .group+.group{border-top:1px solid var(--vp-c-divider);padding:11px 12px 12px}.VPMenu[data-v-e42ed9b3] .group:last-child{padding-bottom:0}.VPMenu[data-v-e42ed9b3] .group+.item{border-top:1px solid var(--vp-c-divider);padding:11px 16px 0}.VPMenu[data-v-e42ed9b3] .item{padding:0 16px;white-space:nowrap}.VPMenu[data-v-e42ed9b3] .label{flex-grow:1;line-height:28px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.VPMenu[data-v-e42ed9b3] .action{padding-left:24px}.VPFlyout[data-v-6afe904b]{position:relative}.VPFlyout[data-v-6afe904b]:hover{color:var(--vp-c-brand);transition:color .25s}.VPFlyout:hover .text[data-v-6afe904b]{color:var(--vp-c-text-2)}.VPFlyout:hover .icon[data-v-6afe904b]{fill:var(--vp-c-text-2)}.VPFlyout.active .text[data-v-6afe904b]{color:var(--vp-c-brand)}.VPFlyout.active:hover .text[data-v-6afe904b]{color:var(--vp-c-brand-dark)}.VPFlyout:hover .menu[data-v-6afe904b],.button[aria-expanded=true]+.menu[data-v-6afe904b]{opacity:1;visibility:visible;transform:translateY(0)}.button[data-v-6afe904b]{display:flex;align-items:center;padding:0 12px;height:var(--vp-nav-height);color:var(--vp-c-text-1);transition:color .5s}.text[data-v-6afe904b]{display:flex;align-items:center;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.option-icon[data-v-6afe904b]{margin-right:0;width:16px;height:16px;fill:currentColor}.text-icon[data-v-6afe904b]{margin-left:4px;width:14px;height:14px;fill:currentColor}.icon[data-v-6afe904b]{width:20px;height:20px;fill:currentColor;transition:fill .25s}.menu[data-v-6afe904b]{position:absolute;top:calc(var(--vp-nav-height) / 2 + 20px);right:0;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,transform .25s}.VPNavBarMenu[data-v-f732b5d0]{display:none}@media (min-width: 768px){.VPNavBarMenu[data-v-f732b5d0]{display:flex}}.VPNavBarTranslations[data-v-ff4524ae]{display:none}@media (min-width: 1280px){.VPNavBarTranslations[data-v-ff4524ae]{display:flex;align-items:center}}.title[data-v-ff4524ae]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.VPSwitch[data-v-92d8f6fb]{position:relative;border-radius:11px;display:block;width:40px;height:22px;flex-shrink:0;border:1px solid var(--vp-input-border-color);background-color:var(--vp-input-switch-bg-color);transition:border-color .25s}.VPSwitch[data-v-92d8f6fb]:hover{border-color:var(--vp-input-hover-border-color)}.check[data-v-92d8f6fb]{position:absolute;top:1px;left:1px;width:18px;height:18px;border-radius:50%;background-color:var(--vp-c-neutral-inverse);box-shadow:var(--vp-shadow-1);transition:transform .25s}.icon[data-v-92d8f6fb]{position:relative;display:block;width:18px;height:18px;border-radius:50%;overflow:hidden}.icon[data-v-92d8f6fb] svg{position:absolute;top:3px;left:3px;width:12px;height:12px;fill:var(--vp-c-text-2)}.dark .icon[data-v-92d8f6fb] svg{fill:var(--vp-c-text-1);transition:opacity .25s}.sun[data-v-67878c63]{opacity:1}.moon[data-v-67878c63],.dark .sun[data-v-67878c63]{opacity:0}.dark .moon[data-v-67878c63]{opacity:1}.dark .VPSwitchAppearance[data-v-67878c63] .check{transform:translate(18px)}.VPNavBarAppearance[data-v-5e9f0637]{display:none}@media (min-width: 1280px){.VPNavBarAppearance[data-v-5e9f0637]{display:flex;align-items:center}}.VPSocialLink[data-v-dbecf575]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;color:var(--vp-c-text-2);transition:color .5s}.VPSocialLink[data-v-dbecf575]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPSocialLink[data-v-dbecf575]>svg{width:20px;height:20px;fill:currentColor}.VPSocialLinks[data-v-b8f6762d]{display:flex;flex-wrap:wrap;justify-content:center}.VPNavBarSocialLinks[data-v-ef6192dc]{display:none}@media (min-width: 1280px){.VPNavBarSocialLinks[data-v-ef6192dc]{display:flex;align-items:center}}.VPNavBarExtra[data-v-c8c2ae4b]{display:none;margin-right:-12px}@media (min-width: 768px){.VPNavBarExtra[data-v-c8c2ae4b]{display:block}}@media (min-width: 1280px){.VPNavBarExtra[data-v-c8c2ae4b]{display:none}}.trans-title[data-v-c8c2ae4b]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.item.appearance[data-v-c8c2ae4b],.item.social-links[data-v-c8c2ae4b]{display:flex;align-items:center;padding:0 12px}.item.appearance[data-v-c8c2ae4b]{min-width:176px}.appearance-action[data-v-c8c2ae4b]{margin-right:-2px}.social-links-list[data-v-c8c2ae4b]{margin:-4px -8px}.VPNavBarHamburger[data-v-6bee1efd]{display:flex;justify-content:center;align-items:center;width:48px;height:var(--vp-nav-height)}@media (min-width: 768px){.VPNavBarHamburger[data-v-6bee1efd]{display:none}}.container[data-v-6bee1efd]{position:relative;width:16px;height:14px;overflow:hidden}.VPNavBarHamburger:hover .top[data-v-6bee1efd]{top:0;left:0;transform:translate(4px)}.VPNavBarHamburger:hover .middle[data-v-6bee1efd]{top:6px;left:0;transform:translate(0)}.VPNavBarHamburger:hover .bottom[data-v-6bee1efd]{top:12px;left:0;transform:translate(8px)}.VPNavBarHamburger.active .top[data-v-6bee1efd]{top:6px;transform:translate(0) rotate(225deg)}.VPNavBarHamburger.active .middle[data-v-6bee1efd]{top:6px;transform:translate(16px)}.VPNavBarHamburger.active .bottom[data-v-6bee1efd]{top:6px;transform:translate(0) rotate(135deg)}.VPNavBarHamburger.active:hover .top[data-v-6bee1efd],.VPNavBarHamburger.active:hover .middle[data-v-6bee1efd],.VPNavBarHamburger.active:hover .bottom[data-v-6bee1efd]{background-color:var(--vp-c-text-2);transition:top .25s,background-color .25s,transform .25s}.top[data-v-6bee1efd],.middle[data-v-6bee1efd],.bottom[data-v-6bee1efd]{position:absolute;width:16px;height:2px;background-color:var(--vp-c-text-1);transition:top .25s,background-color .5s,transform .25s}.top[data-v-6bee1efd]{top:0;left:0;transform:translate(0)}.middle[data-v-6bee1efd]{top:6px;left:0;transform:translate(8px)}.bottom[data-v-6bee1efd]{top:12px;left:0;transform:translate(4px)}.VPNavBar[data-v-d747baf3]{position:relative;border-bottom:1px solid transparent;padding:0 8px 0 24px;height:var(--vp-nav-height);transition:border-color .5s,background-color .5s;pointer-events:none}.VPNavBar.has-sidebar[data-v-d747baf3]{border-bottom-color:var(--vp-c-gutter)}@media (min-width: 768px){.VPNavBar[data-v-d747baf3]{padding:0 32px}}@media (min-width: 960px){.VPNavBar.has-sidebar[data-v-d747baf3]{border-bottom-color:transparent;padding:0}.VPNavBar.fill[data-v-d747baf3]:not(.has-sidebar){border-bottom-color:var(--vp-c-gutter);background-color:var(--vp-nav-bg-color)}}.container[data-v-d747baf3]{display:flex;justify-content:space-between;margin:0 auto;max-width:calc(var(--vp-layout-max-width) - 64px);height:var(--vp-nav-height);pointer-events:none}.container[data-v-d747baf3] *{pointer-events:auto}@media (min-width: 960px){.VPNavBar.has-sidebar .container[data-v-d747baf3]{max-width:100%}}.title[data-v-d747baf3]{flex-shrink:0;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .title[data-v-d747baf3]{position:absolute;top:0;left:0;z-index:2;padding:0 32px;width:var(--vp-sidebar-width);height:var(--vp-nav-height);background-color:transparent}}@media (min-width: 1440px){.VPNavBar.has-sidebar .title[data-v-d747baf3]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}.content[data-v-d747baf3]{flex-grow:1}@media (min-width: 960px){.VPNavBar.has-sidebar .content[data-v-d747baf3]{position:relative;z-index:1;padding-right:32px;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .content[data-v-d747baf3]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2 + 32px);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.content-body[data-v-d747baf3]{display:flex;justify-content:flex-end;align-items:center;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .content-body[data-v-d747baf3],.VPNavBar.fill .content-body[data-v-d747baf3]{position:relative;background-color:var(--vp-nav-bg-color)}}.menu+.translations[data-v-d747baf3]:before,.menu+.appearance[data-v-d747baf3]:before,.menu+.social-links[data-v-d747baf3]:before,.translations+.appearance[data-v-d747baf3]:before,.appearance+.social-links[data-v-d747baf3]:before{margin-right:8px;margin-left:8px;width:1px;height:24px;background-color:var(--vp-c-divider);content:""}.menu+.appearance[data-v-d747baf3]:before,.translations+.appearance[data-v-d747baf3]:before{margin-right:16px}.appearance+.social-links[data-v-d747baf3]:before{margin-left:16px}.social-links[data-v-d747baf3]{margin-right:-8px}@media (min-width: 960px){.VPNavBar.has-sidebar .curtain[data-v-d747baf3]{position:absolute;right:0;bottom:-31px;width:calc(100% - var(--vp-sidebar-width));height:32px}.VPNavBar.has-sidebar .curtain[data-v-d747baf3]:before{display:block;width:100%;height:32px;background:linear-gradient(var(--vp-c-bg),transparent 70%);content:""}}@media (min-width: 1440px){.VPNavBar.has-sidebar .curtain[data-v-d747baf3]{width:calc(100% - ((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width)))}}.VPNavScreenMenuLink[data-v-a3572c96]{display:block;border-bottom:1px solid var(--vp-c-divider);padding:12px 0 11px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:border-color .25s,color .25s}.VPNavScreenMenuLink[data-v-a3572c96]:hover{color:var(--vp-c-brand)}.VPNavScreenMenuGroupLink[data-v-d67c9e09]{display:block;margin-left:12px;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-1);transition:color .25s}.VPNavScreenMenuGroupLink[data-v-d67c9e09]:hover{color:var(--vp-c-brand)}.VPNavScreenMenuGroupSection[data-v-1f191989]{display:block}.title[data-v-1f191989]{line-height:32px;font-size:13px;font-weight:700;color:var(--vp-c-text-2);transition:color .25s}.VPNavScreenMenuGroup[data-v-76b97020]{border-bottom:1px solid var(--vp-c-divider);height:48px;overflow:hidden;transition:border-color .5s}.VPNavScreenMenuGroup .items[data-v-76b97020]{visibility:hidden}.VPNavScreenMenuGroup.open .items[data-v-76b97020]{visibility:visible}.VPNavScreenMenuGroup.open[data-v-76b97020]{padding-bottom:10px;height:auto}.VPNavScreenMenuGroup.open .button[data-v-76b97020]{padding-bottom:6px;color:var(--vp-c-brand)}.VPNavScreenMenuGroup.open .button-icon[data-v-76b97020]{transform:rotate(45deg)}.button[data-v-76b97020]{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 11px 0;width:100%;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.button[data-v-76b97020]:hover{color:var(--vp-c-brand)}.button-icon[data-v-76b97020]{width:14px;height:14px;fill:var(--vp-c-text-2);transition:fill .5s,transform .25s}.group[data-v-76b97020]:first-child{padding-top:0}.group+.group[data-v-76b97020],.group+.item[data-v-76b97020]{padding-top:4px}.VPNavScreenAppearance[data-v-0dc5cf49]{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:12px 14px 12px 16px;background-color:var(--vp-c-bg-soft)}.text[data-v-0dc5cf49]{line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.VPNavScreenTranslations[data-v-41505286]{height:24px;overflow:hidden}.VPNavScreenTranslations.open[data-v-41505286]{height:auto}.title[data-v-41505286]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-text-1)}.icon[data-v-41505286]{width:16px;height:16px;fill:currentColor}.icon.lang[data-v-41505286]{margin-right:8px}.icon.chevron[data-v-41505286]{margin-left:4px}.list[data-v-41505286]{padding:4px 0 0 24px}.link[data-v-41505286]{line-height:32px;font-size:13px;color:var(--vp-c-text-1)}.VPNavScreen[data-v-183ec3ec]{position:fixed;top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 1px);right:0;bottom:0;left:0;padding:0 32px;width:100%;background-color:var(--vp-nav-screen-bg-color);overflow-y:auto;transition:background-color .5s;pointer-events:auto}.VPNavScreen.fade-enter-active[data-v-183ec3ec],.VPNavScreen.fade-leave-active[data-v-183ec3ec]{transition:opacity .25s}.VPNavScreen.fade-enter-active .container[data-v-183ec3ec],.VPNavScreen.fade-leave-active .container[data-v-183ec3ec]{transition:transform .25s ease}.VPNavScreen.fade-enter-from[data-v-183ec3ec],.VPNavScreen.fade-leave-to[data-v-183ec3ec]{opacity:0}.VPNavScreen.fade-enter-from .container[data-v-183ec3ec],.VPNavScreen.fade-leave-to .container[data-v-183ec3ec]{transform:translateY(-8px)}@media (min-width: 768px){.VPNavScreen[data-v-183ec3ec]{display:none}}.container[data-v-183ec3ec]{margin:0 auto;padding:24px 0 96px;max-width:288px}.menu+.translations[data-v-183ec3ec],.menu+.appearance[data-v-183ec3ec],.translations+.appearance[data-v-183ec3ec]{margin-top:24px}.menu+.social-links[data-v-183ec3ec]{margin-top:16px}.appearance+.social-links[data-v-183ec3ec]{margin-top:16px}.VPNav[data-v-5bdc5df3]{position:relative;top:var(--vp-layout-top-height, 0px);left:0;z-index:var(--vp-z-index-nav);width:100%;pointer-events:none;transition:background-color .5s}@media (min-width: 960px){.VPNav[data-v-5bdc5df3]{position:fixed}}.root[data-v-e3c7877a]{position:relative;z-index:1}.nested[data-v-e3c7877a]{padding-left:13px}.outline-link[data-v-e3c7877a]{display:block;line-height:28px;color:var(--vp-c-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .5s;font-weight:500}.outline-link[data-v-e3c7877a]:hover,.outline-link.active[data-v-e3c7877a]{color:var(--vp-c-text-1);transition:color .25s}.outline-link.nested[data-v-e3c7877a]{padding-left:13px}.VPLocalNavOutlineDropdown[data-v-fb63c957]{padding:12px 20px 11px}.VPLocalNavOutlineDropdown button[data-v-fb63c957]{display:block;font-size:12px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;position:relative}.VPLocalNavOutlineDropdown button[data-v-fb63c957]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPLocalNavOutlineDropdown button.open[data-v-fb63c957]{color:var(--vp-c-text-1)}.icon[data-v-fb63c957]{display:inline-block;vertical-align:middle;margin-left:2px;width:14px;height:14px;fill:currentColor}[data-v-fb63c957] .outline-link{font-size:14px;padding:2px 0}.open>.icon[data-v-fb63c957]{transform:rotate(90deg)}.items[data-v-fb63c957]{position:absolute;left:20px;right:20px;top:64px;background-color:var(--vp-local-nav-bg-color);padding:4px 10px 16px;border:1px solid var(--vp-c-divider);border-radius:8px;max-height:calc(var(--vp-vh, 100vh) - 86px);overflow:hidden auto;box-shadow:var(--vp-shadow-3)}.top-link[data-v-fb63c957]{display:block;color:var(--vp-c-brand);font-size:13px;font-weight:500;padding:6px 0;margin:0 13px 10px;border-bottom:1px solid var(--vp-c-divider)}.flyout-enter-active[data-v-fb63c957]{transition:all .2s ease-out}.flyout-leave-active[data-v-fb63c957]{transition:all .15s ease-in}.flyout-enter-from[data-v-fb63c957],.flyout-leave-to[data-v-fb63c957]{opacity:0;transform:translateY(-16px)}.VPLocalNav[data-v-4092cf71]{position:sticky;top:0;left:0;z-index:var(--vp-z-index-local-nav);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--vp-c-gutter);padding-top:var(--vp-layout-top-height, 0px);width:100%;background-color:var(--vp-local-nav-bg-color);transition:border-color .5s,background-color .5s}@media (min-width: 960px){.VPLocalNav[data-v-4092cf71]{display:none}}.menu[data-v-4092cf71]{display:flex;align-items:center;padding:12px 24px 11px;line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.menu[data-v-4092cf71]:hover{color:var(--vp-c-text-1);transition:color .25s}@media (min-width: 768px){.menu[data-v-4092cf71]{padding:0 32px}}.menu-icon[data-v-4092cf71]{margin-right:8px;width:16px;height:16px;fill:currentColor}.VPOutlineDropdown[data-v-4092cf71]{padding:12px 24px 11px}@media (min-width: 768px){.VPOutlineDropdown[data-v-4092cf71]{padding:12px 32px 11px}}.VPSidebarItem.level-0[data-v-0bb349fd]{padding-bottom:24px}.VPSidebarItem.collapsed.level-0[data-v-0bb349fd]{padding-bottom:10px}.item[data-v-0bb349fd]{position:relative;display:flex;width:100%}.VPSidebarItem.collapsible>.item[data-v-0bb349fd]{cursor:pointer}.indicator[data-v-0bb349fd]{position:absolute;top:6px;bottom:6px;left:-17px;width:1px;transition:background-color .25s}.VPSidebarItem.level-2.is-active>.item>.indicator[data-v-0bb349fd],.VPSidebarItem.level-3.is-active>.item>.indicator[data-v-0bb349fd],.VPSidebarItem.level-4.is-active>.item>.indicator[data-v-0bb349fd],.VPSidebarItem.level-5.is-active>.item>.indicator[data-v-0bb349fd]{background-color:var(--vp-c-brand)}.link[data-v-0bb349fd]{display:flex;align-items:center;flex-grow:1}.text[data-v-0bb349fd]{flex-grow:1;padding:4px 0;line-height:24px;font-size:14px;transition:color .25s}.VPSidebarItem.level-0 .text[data-v-0bb349fd]{font-weight:700;color:var(--vp-c-text-1)}.VPSidebarItem.level-1 .text[data-v-0bb349fd],.VPSidebarItem.level-2 .text[data-v-0bb349fd],.VPSidebarItem.level-3 .text[data-v-0bb349fd],.VPSidebarItem.level-4 .text[data-v-0bb349fd],.VPSidebarItem.level-5 .text[data-v-0bb349fd]{font-weight:500;color:var(--vp-c-text-2)}.VPSidebarItem.level-0.is-link>.item>.link:hover .text[data-v-0bb349fd],.VPSidebarItem.level-1.is-link>.item>.link:hover .text[data-v-0bb349fd],.VPSidebarItem.level-2.is-link>.item>.link:hover .text[data-v-0bb349fd],.VPSidebarItem.level-3.is-link>.item>.link:hover .text[data-v-0bb349fd],.VPSidebarItem.level-4.is-link>.item>.link:hover .text[data-v-0bb349fd],.VPSidebarItem.level-5.is-link>.item>.link:hover .text[data-v-0bb349fd]{color:var(--vp-c-brand)}.VPSidebarItem.level-0.has-active>.item>.link>.text[data-v-0bb349fd],.VPSidebarItem.level-1.has-active>.item>.link>.text[data-v-0bb349fd],.VPSidebarItem.level-2.has-active>.item>.link>.text[data-v-0bb349fd],.VPSidebarItem.level-3.has-active>.item>.link>.text[data-v-0bb349fd],.VPSidebarItem.level-4.has-active>.item>.link>.text[data-v-0bb349fd],.VPSidebarItem.level-5.has-active>.item>.link>.text[data-v-0bb349fd]{color:var(--vp-c-text-1)}.VPSidebarItem.level-0.is-active>.item .link>.text[data-v-0bb349fd],.VPSidebarItem.level-1.is-active>.item .link>.text[data-v-0bb349fd],.VPSidebarItem.level-2.is-active>.item .link>.text[data-v-0bb349fd],.VPSidebarItem.level-3.is-active>.item .link>.text[data-v-0bb349fd],.VPSidebarItem.level-4.is-active>.item .link>.text[data-v-0bb349fd],.VPSidebarItem.level-5.is-active>.item .link>.text[data-v-0bb349fd]{color:var(--vp-c-brand)}.caret[data-v-0bb349fd]{display:flex;justify-content:center;align-items:center;margin-right:-7px;width:32px;height:32px;color:var(--vp-c-text-3);cursor:pointer;transition:color .25s}.item:hover .caret[data-v-0bb349fd]{color:var(--vp-c-text-2)}.item:hover .caret[data-v-0bb349fd]:hover{color:var(--vp-c-text-1)}.caret-icon[data-v-0bb349fd]{width:18px;height:18px;fill:currentColor;transform:rotate(90deg);transition:transform .25s}.VPSidebarItem.collapsed .caret-icon[data-v-0bb349fd]{transform:rotate(0)}.VPSidebarItem.level-1 .items[data-v-0bb349fd],.VPSidebarItem.level-2 .items[data-v-0bb349fd],.VPSidebarItem.level-3 .items[data-v-0bb349fd],.VPSidebarItem.level-4 .items[data-v-0bb349fd],.VPSidebarItem.level-5 .items[data-v-0bb349fd]{border-left:1px solid var(--vp-c-divider);padding-left:16px}.VPSidebarItem.collapsed .items[data-v-0bb349fd]{display:none}.VPSidebar[data-v-d2bf8cfc]{position:fixed;top:var(--vp-layout-top-height, 0px);bottom:0;left:0;z-index:var(--vp-z-index-sidebar);padding:32px 32px 96px;width:calc(100vw - 64px);max-width:320px;background-color:var(--vp-sidebar-bg-color);opacity:0;box-shadow:var(--vp-c-shadow-3);overflow-x:hidden;overflow-y:auto;transform:translate(-100%);transition:opacity .5s,transform .25s ease}.VPSidebar.open[data-v-d2bf8cfc]{opacity:1;visibility:visible;transform:translate(0);transition:opacity .25s,transform .5s cubic-bezier(.19,1,.22,1)}.dark .VPSidebar[data-v-d2bf8cfc]{box-shadow:var(--vp-shadow-1)}@media (min-width: 960px){.VPSidebar[data-v-d2bf8cfc]{z-index:1;padding-top:var(--vp-nav-height);padding-bottom:128px;width:var(--vp-sidebar-width);max-width:100%;background-color:var(--vp-sidebar-bg-color);opacity:1;visibility:visible;box-shadow:none;transform:translate(0)}}@media (min-width: 1440px){.VPSidebar[data-v-d2bf8cfc]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}@media (min-width: 960px){.curtain[data-v-d2bf8cfc]{position:sticky;top:-64px;left:0;z-index:1;margin-top:calc(var(--vp-nav-height) * -1);margin-right:-32px;margin-left:-32px;height:var(--vp-nav-height);background-color:var(--vp-sidebar-bg-color)}}.nav[data-v-d2bf8cfc]{outline:0}.group+.group[data-v-d2bf8cfc]{border-top:1px solid var(--vp-c-divider);padding-top:10px}@media (min-width: 960px){.group[data-v-d2bf8cfc]{padding-top:10px;width:calc(var(--vp-sidebar-width) - 64px)}}.VPButton[data-v-fa1633a1]{display:inline-block;border:1px solid transparent;text-align:center;font-weight:600;white-space:nowrap;transition:color .25s,border-color .25s,background-color .25s}.VPButton[data-v-fa1633a1]:active{transition:color .1s,border-color .1s,background-color .1s}.VPButton.medium[data-v-fa1633a1]{border-radius:20px;padding:0 20px;line-height:38px;font-size:14px}.VPButton.big[data-v-fa1633a1]{border-radius:24px;padding:0 24px;line-height:46px;font-size:16px}.VPButton.brand[data-v-fa1633a1]{border-color:var(--vp-button-brand-border);color:var(--vp-button-brand-text);background-color:var(--vp-button-brand-bg)}.VPButton.brand[data-v-fa1633a1]:hover{border-color:var(--vp-button-brand-hover-border);color:var(--vp-button-brand-hover-text);background-color:var(--vp-button-brand-hover-bg)}.VPButton.brand[data-v-fa1633a1]:active{border-color:var(--vp-button-brand-active-border);color:var(--vp-button-brand-active-text);background-color:var(--vp-button-brand-active-bg)}.VPButton.alt[data-v-fa1633a1]{border-color:var(--vp-button-alt-border);color:var(--vp-button-alt-text);background-color:var(--vp-button-alt-bg)}.VPButton.alt[data-v-fa1633a1]:hover{border-color:var(--vp-button-alt-hover-border);color:var(--vp-button-alt-hover-text);background-color:var(--vp-button-alt-hover-bg)}.VPButton.alt[data-v-fa1633a1]:active{border-color:var(--vp-button-alt-active-border);color:var(--vp-button-alt-active-text);background-color:var(--vp-button-alt-active-bg)}.VPButton.sponsor[data-v-fa1633a1]{border-color:var(--vp-button-sponsor-border);color:var(--vp-button-sponsor-text);background-color:var(--vp-button-sponsor-bg)}.VPButton.sponsor[data-v-fa1633a1]:hover{border-color:var(--vp-button-sponsor-hover-border);color:var(--vp-button-sponsor-hover-text);background-color:var(--vp-button-sponsor-hover-bg)}.VPButton.sponsor[data-v-fa1633a1]:active{border-color:var(--vp-button-sponsor-active-border);color:var(--vp-button-sponsor-active-text);background-color:var(--vp-button-sponsor-active-bg)}.VPHero[data-v-73fffaef]{margin-top:calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px}@media (min-width: 640px){.VPHero[data-v-73fffaef]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px}}@media (min-width: 960px){.VPHero[data-v-73fffaef]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px}}.container[data-v-73fffaef]{display:flex;flex-direction:column;margin:0 auto;max-width:1152px}@media (min-width: 960px){.container[data-v-73fffaef]{flex-direction:row}}.main[data-v-73fffaef]{position:relative;z-index:10;order:2;flex-grow:1;flex-shrink:0}.VPHero.has-image .container[data-v-73fffaef]{text-align:center}@media (min-width: 960px){.VPHero.has-image .container[data-v-73fffaef]{text-align:left}}@media (min-width: 960px){.main[data-v-73fffaef]{order:1;width:calc((100% / 3) * 2)}.VPHero.has-image .main[data-v-73fffaef]{max-width:592px}}.name[data-v-73fffaef],.text[data-v-73fffaef]{max-width:392px;letter-spacing:-.4px;line-height:40px;font-size:32px;font-weight:700;white-space:pre-wrap}.VPHero.has-image .name[data-v-73fffaef],.VPHero.has-image .text[data-v-73fffaef]{margin:0 auto}.name[data-v-73fffaef]{color:var(--vp-home-hero-name-color)}.clip[data-v-73fffaef]{background:var(--vp-home-hero-name-background);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--vp-home-hero-name-color)}@media (min-width: 640px){.name[data-v-73fffaef],.text[data-v-73fffaef]{max-width:576px;line-height:56px;font-size:48px}}@media (min-width: 960px){.name[data-v-73fffaef],.text[data-v-73fffaef]{line-height:64px;font-size:56px}.VPHero.has-image .name[data-v-73fffaef],.VPHero.has-image .text[data-v-73fffaef]{margin:0}}.tagline[data-v-73fffaef]{padding-top:8px;max-width:392px;line-height:28px;font-size:18px;font-weight:500;white-space:pre-wrap;color:var(--vp-c-text-2)}.VPHero.has-image .tagline[data-v-73fffaef]{margin:0 auto}@media (min-width: 640px){.tagline[data-v-73fffaef]{padding-top:12px;max-width:576px;line-height:32px;font-size:20px}}@media (min-width: 960px){.tagline[data-v-73fffaef]{line-height:36px;font-size:24px}.VPHero.has-image .tagline[data-v-73fffaef]{margin:0}}.actions[data-v-73fffaef]{display:flex;flex-wrap:wrap;margin:-6px;padding-top:24px}.VPHero.has-image .actions[data-v-73fffaef]{justify-content:center}@media (min-width: 640px){.actions[data-v-73fffaef]{padding-top:32px}}@media (min-width: 960px){.VPHero.has-image .actions[data-v-73fffaef]{justify-content:flex-start}}.action[data-v-73fffaef]{flex-shrink:0;padding:6px}.image[data-v-73fffaef]{order:1;margin:-76px -24px -48px}@media (min-width: 640px){.image[data-v-73fffaef]{margin:-108px -24px -48px}}@media (min-width: 960px){.image[data-v-73fffaef]{flex-grow:1;order:2;margin:0;min-height:100%}}.image-container[data-v-73fffaef]{position:relative;margin:0 auto;width:320px;height:320px}@media (min-width: 640px){.image-container[data-v-73fffaef]{width:392px;height:392px}}@media (min-width: 960px){.image-container[data-v-73fffaef]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;transform:translate(-32px,-32px)}}.image-bg[data-v-73fffaef]{position:absolute;top:50%;left:50%;border-radius:50%;width:192px;height:192px;background-image:var(--vp-home-hero-image-background-image);filter:var(--vp-home-hero-image-filter);transform:translate(-50%,-50%)}@media (min-width: 640px){.image-bg[data-v-73fffaef]{width:256px;height:256px}}@media (min-width: 960px){.image-bg[data-v-73fffaef]{width:320px;height:320px}}[data-v-73fffaef] .image-src{position:absolute;top:50%;left:50%;max-width:192px;max-height:192px;transform:translate(-50%,-50%)}@media (min-width: 640px){[data-v-73fffaef] .image-src{max-width:256px;max-height:256px}}@media (min-width: 960px){[data-v-73fffaef] .image-src{max-width:320px;max-height:320px}}.VPFeature[data-v-5f01e926]{display:block;border:1px solid var(--vp-c-bg-soft);border-radius:12px;height:100%;background-color:var(--vp-c-bg-soft);transition:border-color .25s,background-color .25s}.VPFeature.link[data-v-5f01e926]:hover{border-color:var(--vp-c-brand);background-color:var(--vp-c-bg-soft-up)}.box[data-v-5f01e926]{display:flex;flex-direction:column;padding:24px;height:100%}.VPFeature[data-v-5f01e926] .VPImage{width:48px;height:48px;margin-bottom:20px}.icon[data-v-5f01e926]{display:flex;justify-content:center;align-items:center;margin-bottom:20px;border-radius:6px;background-color:var(--vp-c-bg-soft-down);width:48px;height:48px;font-size:24px;transition:background-color .25s}.title[data-v-5f01e926]{line-height:24px;font-size:16px;font-weight:600}.details[data-v-5f01e926]{flex-grow:1;padding-top:8px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.link-text[data-v-5f01e926]{padding-top:8px}.link-text-value[data-v-5f01e926]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-brand)}.link-text-icon[data-v-5f01e926]{display:inline-block;margin-left:6px;width:14px;height:14px;fill:currentColor}.VPFeatures[data-v-5df66ecb]{position:relative;padding:0 24px}@media (min-width: 640px){.VPFeatures[data-v-5df66ecb]{padding:0 48px}}@media (min-width: 960px){.VPFeatures[data-v-5df66ecb]{padding:0 64px}}.container[data-v-5df66ecb]{margin:0 auto;max-width:1152px}.items[data-v-5df66ecb]{display:flex;flex-wrap:wrap;margin:-8px}.item[data-v-5df66ecb]{padding:8px;width:100%}@media (min-width: 640px){.item.grid-2[data-v-5df66ecb],.item.grid-4[data-v-5df66ecb],.item.grid-6[data-v-5df66ecb]{width:50%}}@media (min-width: 768px){.item.grid-2[data-v-5df66ecb],.item.grid-4[data-v-5df66ecb]{width:50%}.item.grid-3[data-v-5df66ecb],.item.grid-6[data-v-5df66ecb]{width:calc(100% / 3)}}@media (min-width: 960px){.item.grid-4[data-v-5df66ecb]{width:25%}}.VPHome[data-v-20eabd3a]{padding-bottom:96px}.VPHome[data-v-20eabd3a] .VPHomeSponsors{margin-top:112px;margin-bottom:-128px}@media (min-width: 768px){.VPHome[data-v-20eabd3a]{padding-bottom:128px}}.VPDocAsideOutline[data-v-c834746b]{display:none}.VPDocAsideOutline.has-outline[data-v-c834746b]{display:block}.content[data-v-c834746b]{position:relative;border-left:1px solid var(--vp-c-divider);padding-left:16px;font-size:13px;font-weight:500}.outline-marker[data-v-c834746b]{position:absolute;top:32px;left:-1px;z-index:0;opacity:0;width:1px;height:18px;background-color:var(--vp-c-brand);transition:top .25s cubic-bezier(0,1,.5,1),background-color .5s,opacity .25s}.outline-title[data-v-c834746b]{letter-spacing:.4px;line-height:28px;font-size:13px;font-weight:600}.VPDocAside[data-v-cb998dce]{display:flex;flex-direction:column;flex-grow:1}.spacer[data-v-cb998dce]{flex-grow:1}.VPDocAside[data-v-cb998dce] .spacer+.VPDocAsideSponsors,.VPDocAside[data-v-cb998dce] .spacer+.VPDocAsideCarbonAds{margin-top:24px}.VPDocAside[data-v-cb998dce] .VPDocAsideSponsors+.VPDocAsideCarbonAds{margin-top:16px}.VPLastUpdated[data-v-0de45606]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 640px){.VPLastUpdated[data-v-0de45606]{line-height:32px;font-size:14px;font-weight:500}}.VPDocFooter[data-v-fc0d1b73]{margin-top:64px}.edit-info[data-v-fc0d1b73]{padding-bottom:18px}@media (min-width: 640px){.edit-info[data-v-fc0d1b73]{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}}.edit-link-button[data-v-fc0d1b73]{display:flex;align-items:center;border:0;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-brand);transition:color .25s}.edit-link-button[data-v-fc0d1b73]:hover{color:var(--vp-c-brand-dark)}.edit-link-icon[data-v-fc0d1b73]{margin-right:8px;width:14px;height:14px;fill:currentColor}.prev-next[data-v-fc0d1b73]{border-top:1px solid var(--vp-c-divider);padding-top:24px}@media (min-width: 640px){.prev-next[data-v-fc0d1b73]{display:flex}}.pager.has-prev[data-v-fc0d1b73]{padding-top:8px}@media (min-width: 640px){.pager[data-v-fc0d1b73]{display:flex;flex-direction:column;flex-shrink:0;width:50%}.pager.has-prev[data-v-fc0d1b73]{padding-top:0;padding-left:16px}}.pager-link[data-v-fc0d1b73]{display:block;border:1px solid var(--vp-c-divider);border-radius:8px;padding:11px 16px 13px;width:100%;height:100%;transition:border-color .25s}.pager-link[data-v-fc0d1b73]:hover{border-color:var(--vp-c-brand)}.pager-link.next[data-v-fc0d1b73]{margin-left:auto;text-align:right}.desc[data-v-fc0d1b73]{display:block;line-height:20px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.title[data-v-fc0d1b73]{display:block;line-height:20px;font-size:14px;font-weight:500;color:var(--vp-c-brand);transition:color .25s}.VPDocOutlineDropdown[data-v-2d98506c]{margin-bottom:42px}.VPDocOutlineDropdown button[data-v-2d98506c]{display:block;font-size:14px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;border:1px solid var(--vp-c-border);padding:4px 12px;border-radius:8px}.VPDocOutlineDropdown button[data-v-2d98506c]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPDocOutlineDropdown button.open[data-v-2d98506c]{color:var(--vp-c-text-1)}.icon[data-v-2d98506c]{display:inline-block;vertical-align:middle;margin-left:2px;width:14px;height:14px;fill:currentColor}[data-v-2d98506c] .outline-link{font-size:13px}.open>.icon[data-v-2d98506c]{transform:rotate(90deg)}.items[data-v-2d98506c]{margin-top:10px;border-left:1px solid var(--vp-c-divider)}.VPDoc[data-v-c11df1f0]{padding:32px 24px 96px;width:100%}.VPDoc .VPDocOutlineDropdown[data-v-c11df1f0]{display:none}@media (min-width: 960px) and (max-width: 1280px){.VPDoc .VPDocOutlineDropdown[data-v-c11df1f0]{display:block}}@media (min-width: 768px){.VPDoc[data-v-c11df1f0]{padding:48px 32px 128px}}@media (min-width: 960px){.VPDoc[data-v-c11df1f0]{padding:32px 32px 0}.VPDoc:not(.has-sidebar) .container[data-v-c11df1f0]{display:flex;justify-content:center;max-width:992px}.VPDoc:not(.has-sidebar) .content[data-v-c11df1f0]{max-width:752px}}@media (min-width: 1280px){.VPDoc .container[data-v-c11df1f0]{display:flex;justify-content:center}.VPDoc .aside[data-v-c11df1f0]{display:block}}@media (min-width: 1440px){.VPDoc:not(.has-sidebar) .content[data-v-c11df1f0]{max-width:784px}.VPDoc:not(.has-sidebar) .container[data-v-c11df1f0]{max-width:1104px}}.container[data-v-c11df1f0]{margin:0 auto;width:100%}.aside[data-v-c11df1f0]{position:relative;display:none;order:2;flex-grow:1;padding-left:32px;width:100%;max-width:256px}.left-aside[data-v-c11df1f0]{order:1;padding-left:unset;padding-right:32px}.aside-container[data-v-c11df1f0]{position:fixed;top:0;padding-top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 32px);width:224px;height:100vh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}.aside-container[data-v-c11df1f0]::-webkit-scrollbar{display:none}.aside-curtain[data-v-c11df1f0]{position:fixed;bottom:0;z-index:10;width:224px;height:32px;background:linear-gradient(transparent,var(--vp-c-bg) 70%)}.aside-content[data-v-c11df1f0]{display:flex;flex-direction:column;min-height:calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 32px));padding-bottom:32px}.content[data-v-c11df1f0]{position:relative;margin:0 auto;width:100%}@media (min-width: 960px){.content[data-v-c11df1f0]{padding:0 32px 128px}}@media (min-width: 1280px){.content[data-v-c11df1f0]{order:1;margin:0;min-width:640px}}.content-container[data-v-c11df1f0]{margin:0 auto}.VPDoc.has-aside .content-container[data-v-c11df1f0]{max-width:688px}.NotFound[data-v-e5bd6573]{padding:64px 24px 96px;text-align:center}@media (min-width: 768px){.NotFound[data-v-e5bd6573]{padding:96px 32px 168px}}.code[data-v-e5bd6573]{line-height:64px;font-size:64px;font-weight:600}.title[data-v-e5bd6573]{padding-top:12px;letter-spacing:2px;line-height:20px;font-size:20px;font-weight:700}.divider[data-v-e5bd6573]{margin:24px auto 18px;width:64px;height:1px;background-color:var(--vp-c-divider)}.quote[data-v-e5bd6573]{margin:0 auto;max-width:256px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.action[data-v-e5bd6573]{padding-top:20px}.link[data-v-e5bd6573]{display:inline-block;border:1px solid var(--vp-c-brand);border-radius:16px;padding:3px 16px;font-size:14px;font-weight:500;color:var(--vp-c-brand);transition:border-color .25s,color .25s}.link[data-v-e5bd6573]:hover{border-color:var(--vp-c-brand-dark);color:var(--vp-c-brand-dark)}.VPContent[data-v-91952ce3]{flex-grow:1;flex-shrink:0;margin:var(--vp-layout-top-height, 0px) auto 0;width:100%}.VPContent.is-home[data-v-91952ce3]{width:100%;max-width:100%}.VPContent.has-sidebar[data-v-91952ce3]{margin:0}@media (min-width: 960px){.VPContent[data-v-91952ce3]{padding-top:var(--vp-nav-height)}.VPContent.has-sidebar[data-v-91952ce3]{margin:var(--vp-layout-top-height, 0px) 0 0;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPContent.has-sidebar[data-v-91952ce3]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.VPFooter[data-v-07acdfa3]{position:relative;z-index:var(--vp-z-index-footer);border-top:1px solid var(--vp-c-gutter);padding:32px 24px;background-color:var(--vp-c-bg)}.VPFooter.has-sidebar[data-v-07acdfa3]{display:none}@media (min-width: 768px){.VPFooter[data-v-07acdfa3]{padding:32px}}.container[data-v-07acdfa3]{margin:0 auto;max-width:var(--vp-layout-max-width);text-align:center}.message[data-v-07acdfa3],.copyright[data-v-07acdfa3]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.message[data-v-07acdfa3]{order:2}.copyright[data-v-07acdfa3]{order:1}.Layout[data-v-bffce215]{display:flex;flex-direction:column;min-height:100vh}.VPHomeSponsors[data-v-978bd032]{border-top:1px solid var(--vp-c-gutter);padding:88px 24px 96px;background-color:var(--vp-c-bg)}.container[data-v-978bd032]{margin:0 auto;max-width:1152px}.love[data-v-978bd032]{margin:0 auto;width:28px;height:28px;color:var(--vp-c-text-3)}.icon[data-v-978bd032]{width:28px;height:28px;fill:currentColor}.message[data-v-978bd032]{margin:0 auto;padding-top:10px;max-width:320px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.sponsors[data-v-978bd032]{padding-top:32px}.action[data-v-978bd032]{padding-top:40px;text-align:center}.VPTeamPage[data-v-b1cfd8dc]{padding-bottom:96px}@media (min-width: 768px){.VPTeamPage[data-v-b1cfd8dc]{padding-bottom:128px}}.VPTeamPageSection+.VPTeamPageSection[data-v-b1cfd8dc-s],.VPTeamMembers+.VPTeamPageSection[data-v-b1cfd8dc-s]{margin-top:64px}.VPTeamMembers+.VPTeamMembers[data-v-b1cfd8dc-s]{margin-top:24px}@media (min-width: 768px){.VPTeamPageTitle+.VPTeamPageSection[data-v-b1cfd8dc-s]{margin-top:16px}.VPTeamPageSection+.VPTeamPageSection[data-v-b1cfd8dc-s],.VPTeamMembers+.VPTeamPageSection[data-v-b1cfd8dc-s]{margin-top:96px}}.VPTeamMembers[data-v-b1cfd8dc-s]{padding:0 24px}@media (min-width: 768px){.VPTeamMembers[data-v-b1cfd8dc-s]{padding:0 48px}}@media (min-width: 960px){.VPTeamMembers[data-v-b1cfd8dc-s]{padding:0 64px}}.VPTeamPageTitle[data-v-46c5e327]{padding:48px 32px;text-align:center}@media (min-width: 768px){.VPTeamPageTitle[data-v-46c5e327]{padding:64px 48px 48px}}@media (min-width: 960px){.VPTeamPageTitle[data-v-46c5e327]{padding:80px 64px 48px}}.title[data-v-46c5e327]{letter-spacing:0;line-height:44px;font-size:36px;font-weight:500}@media (min-width: 768px){.title[data-v-46c5e327]{letter-spacing:-.5px;line-height:56px;font-size:48px}}.lead[data-v-46c5e327]{margin:0 auto;max-width:512px;padding-top:12px;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 768px){.lead[data-v-46c5e327]{max-width:592px;letter-spacing:.15px;line-height:28px;font-size:20px}}.VPTeamPageSection[data-v-3bf2e850]{padding:0 32px}@media (min-width: 768px){.VPTeamPageSection[data-v-3bf2e850]{padding:0 48px}}@media (min-width: 960px){.VPTeamPageSection[data-v-3bf2e850]{padding:0 64px}}.title[data-v-3bf2e850]{position:relative;margin:0 auto;max-width:1152px;text-align:center;color:var(--vp-c-text-2)}.title-line[data-v-3bf2e850]{position:absolute;top:16px;left:0;width:100%;height:1px;background-color:var(--vp-c-divider)}.title-text[data-v-3bf2e850]{position:relative;display:inline-block;padding:0 24px;letter-spacing:0;line-height:32px;font-size:20px;font-weight:500;background-color:var(--vp-c-bg)}.lead[data-v-3bf2e850]{margin:0 auto;max-width:480px;padding-top:12px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.members[data-v-3bf2e850]{padding-top:40px}.VPTeamMembersItem[data-v-b6116b11]{display:flex;flex-direction:column;gap:2px;border-radius:12px;width:100%;height:100%;overflow:hidden}.VPTeamMembersItem.small .profile[data-v-b6116b11]{padding:32px}.VPTeamMembersItem.small .data[data-v-b6116b11]{padding-top:20px}.VPTeamMembersItem.small .avatar[data-v-b6116b11]{width:64px;height:64px}.VPTeamMembersItem.small .name[data-v-b6116b11]{line-height:24px;font-size:16px}.VPTeamMembersItem.small .affiliation[data-v-b6116b11]{padding-top:4px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .desc[data-v-b6116b11]{padding-top:12px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .links[data-v-b6116b11]{margin:0 -16px -20px;padding:10px 0 0}.VPTeamMembersItem.medium .profile[data-v-b6116b11]{padding:48px 32px}.VPTeamMembersItem.medium .data[data-v-b6116b11]{padding-top:24px;text-align:center}.VPTeamMembersItem.medium .avatar[data-v-b6116b11]{width:96px;height:96px}.VPTeamMembersItem.medium .name[data-v-b6116b11]{letter-spacing:.15px;line-height:28px;font-size:20px}.VPTeamMembersItem.medium .affiliation[data-v-b6116b11]{padding-top:4px;font-size:16px}.VPTeamMembersItem.medium .desc[data-v-b6116b11]{padding-top:16px;max-width:288px;font-size:16px}.VPTeamMembersItem.medium .links[data-v-b6116b11]{margin:0 -16px -12px;padding:16px 12px 0}.profile[data-v-b6116b11]{flex-grow:1;background-color:var(--vp-c-bg-soft)}.data[data-v-b6116b11]{text-align:center}.avatar[data-v-b6116b11]{position:relative;flex-shrink:0;margin:0 auto;border-radius:50%;box-shadow:var(--vp-shadow-3)}.avatar-img[data-v-b6116b11]{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;object-fit:cover}.name[data-v-b6116b11]{margin:0;font-weight:600}.affiliation[data-v-b6116b11]{margin:0;font-weight:500;color:var(--vp-c-text-2)}.org.link[data-v-b6116b11]{color:var(--vp-c-text-2);transition:color .25s}.org.link[data-v-b6116b11]:hover{color:var(--vp-c-brand)}.desc[data-v-b6116b11]{margin:0 auto}.links[data-v-b6116b11]{display:flex;justify-content:center;height:56px}.sp-link[data-v-b6116b11]{display:flex;justify-content:center;align-items:center;text-align:center;padding:16px;font-size:14px;font-weight:500;color:var(--vp-c-sponsor);background-color:var(--vp-c-bg-soft);transition:color .25s,background-color .25s}.sp .sp-link.link[data-v-b6116b11]:hover,.sp .sp-link.link[data-v-b6116b11]:focus{outline:none;color:var(--vp-c-white);background-color:var(--vp-c-sponsor)}.sp-icon[data-v-b6116b11]{margin-right:8px;width:16px;height:16px;fill:currentColor}.VPTeamMembers.small .container[data-v-6927e48e]{grid-template-columns:repeat(auto-fit,minmax(224px,1fr))}.VPTeamMembers.small.count-1 .container[data-v-6927e48e]{max-width:276px}.VPTeamMembers.small.count-2 .container[data-v-6927e48e]{max-width:576px}.VPTeamMembers.small.count-3 .container[data-v-6927e48e]{max-width:876px}.VPTeamMembers.medium .container[data-v-6927e48e]{grid-template-columns:repeat(auto-fit,minmax(256px,1fr))}@media (min-width: 375px){.VPTeamMembers.medium .container[data-v-6927e48e]{grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}}.VPTeamMembers.medium.count-1 .container[data-v-6927e48e]{max-width:368px}.VPTeamMembers.medium.count-2 .container[data-v-6927e48e]{max-width:760px}.container[data-v-6927e48e]{display:grid;gap:24px;margin:0 auto;max-width:1152px}:root{--vp-c-brand: #00E0FF;--vp-c-brand-light: #00E0FF;--vp-c-brand-lighter: #00FF57;--vp-c-brand-dark: #00E0FF;--vp-home-hero-name-color: transparent;--vp-home-hero-name-background: -webkit-linear-gradient(135deg, #00E0FF 0%, #00FF57 100%)}html.dark{--vp-c-bg: #0a0a1e;--vp-c-bg-light: #141428;--vp-c-bg-lighter: #1e1e32;--vp-code-bg-color: #1e1e32;--vp-c-black-mute: #1e1e32;--vp-c-black: #1e1e32;--vp-c-bg-soft: #1e1e32} diff --git a/docs/assets/ui-helpers.md.1cb72d0a.js b/docs/assets/ui-helpers.md.1cb72d0a.js deleted file mode 100644 index a399fd1..0000000 --- a/docs/assets/ui-helpers.md.1cb72d0a.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as a,Q as r}from"./chunks/framework.7addaa9c.js";const u=JSON.parse('{"title":"UiHelpers","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers.md","lastUpdated":1673177457000}'),s={name:"ui-helpers.md"},i=r('

UiHelpers

This page is about the exceptions available in PeyrSharp.UiHelpers. They are grouped by category.

Compatibility

UiHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Classes

',7),o=[i];function l(d,h,p,n,c,m){return a(),e("div",null,o)}const f=t(s,[["render",l]]);export{u as __pageData,f as default}; diff --git a/docs/assets/ui-helpers.md.1cb72d0a.lean.js b/docs/assets/ui-helpers.md.1cb72d0a.lean.js deleted file mode 100644 index da0e9df..0000000 --- a/docs/assets/ui-helpers.md.1cb72d0a.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as a,Q as r}from"./chunks/framework.7addaa9c.js";const u=JSON.parse('{"title":"UiHelpers","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers.md","lastUpdated":1673177457000}'),s={name:"ui-helpers.md"},i=r("",7),o=[i];function l(d,h,p,n,c,m){return a(),e("div",null,o)}const f=t(s,[["render",l]]);export{u as __pageData,f as default}; diff --git a/docs/assets/ui-helpers.md.d9ef85cc.js b/docs/assets/ui-helpers.md.d9ef85cc.js new file mode 100644 index 0000000..4cce242 --- /dev/null +++ b/docs/assets/ui-helpers.md.d9ef85cc.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as a,R as r}from"./chunks/framework.bdd825cc.js";const u=JSON.parse('{"title":"UiHelpers","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers.md","filePath":"ui-helpers.md","lastUpdated":1673177457000}'),s={name:"ui-helpers.md"},i=r('

UiHelpers

This page is about the exceptions available in PeyrSharp.UiHelpers. They are grouped by category.

Compatibility

UiHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Classes

',7),l=[i];function o(d,h,p,n,c,m){return a(),t("div",null,l)}const f=e(s,[["render",o]]);export{u as __pageData,f as default}; diff --git a/docs/assets/ui-helpers.md.d9ef85cc.lean.js b/docs/assets/ui-helpers.md.d9ef85cc.lean.js new file mode 100644 index 0000000..e393934 --- /dev/null +++ b/docs/assets/ui-helpers.md.d9ef85cc.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as a,R as r}from"./chunks/framework.bdd825cc.js";const u=JSON.parse('{"title":"UiHelpers","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers.md","filePath":"ui-helpers.md","lastUpdated":1673177457000}'),s={name:"ui-helpers.md"},i=r("",7),l=[i];function o(d,h,p,n,c,m){return a(),t("div",null,l)}const f=e(s,[["render",o]]);export{u as __pageData,f as default}; diff --git a/docs/assets/ui-helpers_screen.md.b13fbb11.js b/docs/assets/ui-helpers_screen.md.a42d9257.js similarity index 54% rename from docs/assets/ui-helpers_screen.md.b13fbb11.js rename to docs/assets/ui-helpers_screen.md.a42d9257.js index bf19f54..5f7b3e8 100644 --- a/docs/assets/ui-helpers_screen.md.b13fbb11.js +++ b/docs/assets/ui-helpers_screen.md.a42d9257.js @@ -1,4 +1,4 @@ -import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Screen","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers/screen.md","lastUpdated":1673177478000}'),l={name:"ui-helpers/screen.md"},o=e(`

Screen

This page is about the ScreenHelpers class available in PeyrSharp.UiHelpers. This page is about all of its methods.

Compatibility

ScreenHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Methods

GetDpi(form)

Definition

Gets the DPI of the screen where the Windows Form is located. It returns a double value.

Arguments

TypeNameMeaning
FormformThe form to get the DPI of.

Usage

c#
using PeyrSharp.UiHelpers;
+import{_ as s,c as a,o as n,R as e}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Screen","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers/screen.md","filePath":"ui-helpers/screen.md","lastUpdated":1673177478000}'),l={name:"ui-helpers/screen.md"},o=e(`

Screen

This page is about the ScreenHelpers class available in PeyrSharp.UiHelpers. This page is about all of its methods.

Compatibility

ScreenHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Methods

GetDpi(form)

Definition

Gets the DPI of the screen where the Windows Form is located. It returns a double value.

Arguments

TypeNameMeaning
FormformThe form to get the DPI of.

Usage

c#
using PeyrSharp.UiHelpers;
 using System;
 using System.Windows.Forms;
 
@@ -8,8 +8,7 @@ import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const D=
     {
         MessageBox.Show(ScreenHelpers.GetDpi(this));
     }
-}
-

GetDpi(window)

Definition

Gets the DPI of the screen where the Window is located. It returns a double value.

Arguments

TypeNameMeaning
WindowwindowThe Window to get the DPI of.

Usage

c#
using PeyrSharp.UiHelpers;
+}

GetDpi(window)

Definition

Gets the DPI of the screen where the Window is located. It returns a double value.

Arguments

TypeNameMeaning
WindowwindowThe Window to get the DPI of.

Usage

c#
using PeyrSharp.UiHelpers;
 using System;
 using System.Windows;
 
@@ -19,8 +18,7 @@ import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const D=
     {
         MessageBox.Show(ScreenHelpers.GetDpi(this));
     }
-}
-

GetScreenScaling(form)

Definition

Gets the scaling of the screen where the Windows Form is located. It returns a double value.

Possible values:

  • 100
  • 125
  • 150
  • 175
  • 200

Arguments

TypeNameMeaning
FormformThe form to get the scale of.

Usage

c#
using PeyrSharp.UiHelpers;
+}

GetScreenScaling(form)

Definition

Gets the scaling of the screen where the Windows Form is located. It returns a double value.

Possible values:

  • 100
  • 125
  • 150
  • 175
  • 200

Arguments

TypeNameMeaning
FormformThe form to get the scale of.

Usage

c#
using PeyrSharp.UiHelpers;
 using System;
 using System.Windows.Forms;
 
@@ -30,8 +28,7 @@ import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const D=
     {
         MessageBox.Show(ScreenHelpers.GetScreenScaling(this));
     }
-}
-

GetScreenScaling(window)

Definition

Gets the scaling of the screen where the Window is located. It returns a double value.

Possible values:

  • 100
  • 125
  • 150
  • 175
  • 200

Arguments

TypeNameMeaning
WindowwindowThe window to get the scale of.

Usage

c#
using PeyrSharp.UiHelpers;
+}

GetScreenScaling(window)

Definition

Gets the scaling of the screen where the Window is located. It returns a double value.

Possible values:

  • 100
  • 125
  • 150
  • 175
  • 200

Arguments

TypeNameMeaning
WindowwindowThe window to get the scale of.

Usage

c#
using PeyrSharp.UiHelpers;
 using System;
 using System.Windows;
 
@@ -41,5 +38,4 @@ import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const D=
     {
         MessageBox.Show(ScreenHelpers.GetScreenScaling(this));
     }
-}
-
`,38),t=[o];function p(r,c,i,d,y,F){return n(),a("div",null,t)}const h=s(l,[["render",p]]);export{D as __pageData,h as default}; +}
`,38),t=[o];function p(r,c,i,d,y,F){return n(),a("div",null,t)}const h=s(l,[["render",p]]);export{D as __pageData,h as default}; diff --git a/docs/assets/ui-helpers_screen.md.a42d9257.lean.js b/docs/assets/ui-helpers_screen.md.a42d9257.lean.js new file mode 100644 index 0000000..1b7ccc1 --- /dev/null +++ b/docs/assets/ui-helpers_screen.md.a42d9257.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as n,R as e}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"Screen","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers/screen.md","filePath":"ui-helpers/screen.md","lastUpdated":1673177478000}'),l={name:"ui-helpers/screen.md"},o=e("",38),t=[o];function p(r,c,i,d,y,F){return n(),a("div",null,t)}const h=s(l,[["render",p]]);export{D as __pageData,h as default}; diff --git a/docs/assets/ui-helpers_screen.md.b13fbb11.lean.js b/docs/assets/ui-helpers_screen.md.b13fbb11.lean.js deleted file mode 100644 index 3f87b38..0000000 --- a/docs/assets/ui-helpers_screen.md.b13fbb11.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as n,Q as e}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"Screen","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers/screen.md","lastUpdated":1673177478000}'),l={name:"ui-helpers/screen.md"},o=e("",38),t=[o];function p(r,c,i,d,y,F){return n(),a("div",null,t)}const h=s(l,[["render",p]]);export{D as __pageData,h as default}; diff --git a/docs/assets/ui-helpers_winforms.md.cb60597a.js b/docs/assets/ui-helpers_winforms.md.067d41d0.js similarity index 57% rename from docs/assets/ui-helpers_winforms.md.cb60597a.js rename to docs/assets/ui-helpers_winforms.md.067d41d0.js index ded5648..5b45953 100644 --- a/docs/assets/ui-helpers_winforms.md.cb60597a.js +++ b/docs/assets/ui-helpers_winforms.md.067d41d0.js @@ -1,4 +1,4 @@ -import{_ as s,c as n,o as a,Q as o}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"WinForms","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers/winforms.md","lastUpdated":1673177478000}'),e={name:"ui-helpers/winforms.md"},l=o(`

WinForms

This page is about the WinFormsHelpers class available in PeyrSharp.UiHelpers. This page is about all of its methods.

Compatibility

WinFormsHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Methods

CenterControl(control, form)

Definition

Centers horizontally and vertically a Control on a Form.

Arguments

TypeNameMeaning
ControlcontrolThe control to center.
FormformThe form where the control needs to be centered.

Usage

c#
using PeyrSharp.UiHelpers;
+import{_ as s,c as n,o as a,R as o}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"WinForms","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers/winforms.md","filePath":"ui-helpers/winforms.md","lastUpdated":1673177478000}'),e={name:"ui-helpers/winforms.md"},l=o(`

WinForms

This page is about the WinFormsHelpers class available in PeyrSharp.UiHelpers. This page is about all of its methods.

Compatibility

WinFormsHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Methods

CenterControl(control, form)

Definition

Centers horizontally and vertically a Control on a Form.

Arguments

TypeNameMeaning
ControlcontrolThe control to center.
FormformThe form where the control needs to be centered.

Usage

c#
using PeyrSharp.UiHelpers;
 using System;
 using System.Windows.Forms;
 
@@ -9,8 +9,7 @@ import{_ as s,c as n,o as a,Q as o}from"./chunks/framework.7addaa9c.js";const D=
         Button button = (Button)sender;
         WinFormsHelpers.CenterControl(button, this);
     }
-}
-

CenterControl(control, form, controlAlignment)

Definition

Centers a Control on a Form, with a specific ControlAlignment.

Arguments

TypeNameMeaning
ControlcontrolThe control to center.
FormformThe form where the control needs to be centered.
ControlAlignmentcontrolAlignmentThe alignment of the control.

Usage

c#
using PeyrSharp.Enums;
+}

CenterControl(control, form, controlAlignment)

Definition

Centers a Control on a Form, with a specific ControlAlignment.

Arguments

TypeNameMeaning
ControlcontrolThe control to center.
FormformThe form where the control needs to be centered.
ControlAlignmentcontrolAlignmentThe alignment of the control.

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.UiHelpers;
 using System;
 using System.Windows.Forms;
@@ -24,8 +23,7 @@ import{_ as s,c as n,o as a,Q as o}from"./chunks/framework.7addaa9c.js";const D=
         // Center the button vertically
         WinFormsHelpers.CenterControl(button, this, ControlAlignment.Vertical);
     }
-}
-

CenterForm(form)

Definition

Centers horizontally and vertically a Form on the screen.

Arguments

TypeNameMeaning
FormformThe form to center.

Usage

c#
using PeyrSharp.UiHelpers;
+}

CenterForm(form)

Definition

Centers horizontally and vertically a Form on the screen.

Arguments

TypeNameMeaning
FormformThe form to center.

Usage

c#
using PeyrSharp.UiHelpers;
 using System;
 using System.Windows.Forms;
 
@@ -36,5 +34,4 @@ import{_ as s,c as n,o as a,Q as o}from"./chunks/framework.7addaa9c.js";const D=
         // Put the current form in the middle of the screen
         WinFormsHelpers.CenterForm(this); 
     }
-}
-
`,27),t=[l];function p(r,c,i,C,d,y){return a(),n("div",null,t)}const A=s(e,[["render",p]]);export{D as __pageData,A as default}; +}
`,27),t=[l];function p(r,c,i,C,d,y){return a(),n("div",null,t)}const A=s(e,[["render",p]]);export{D as __pageData,A as default}; diff --git a/docs/assets/ui-helpers_winforms.md.067d41d0.lean.js b/docs/assets/ui-helpers_winforms.md.067d41d0.lean.js new file mode 100644 index 0000000..c728a06 --- /dev/null +++ b/docs/assets/ui-helpers_winforms.md.067d41d0.lean.js @@ -0,0 +1 @@ +import{_ as s,c as n,o as a,R as o}from"./chunks/framework.bdd825cc.js";const D=JSON.parse('{"title":"WinForms","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers/winforms.md","filePath":"ui-helpers/winforms.md","lastUpdated":1673177478000}'),e={name:"ui-helpers/winforms.md"},l=o("",27),t=[l];function p(r,c,i,C,d,y){return a(),n("div",null,t)}const A=s(e,[["render",p]]);export{D as __pageData,A as default}; diff --git a/docs/assets/ui-helpers_winforms.md.cb60597a.lean.js b/docs/assets/ui-helpers_winforms.md.cb60597a.lean.js deleted file mode 100644 index ea47110..0000000 --- a/docs/assets/ui-helpers_winforms.md.cb60597a.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as n,o as a,Q as o}from"./chunks/framework.7addaa9c.js";const D=JSON.parse('{"title":"WinForms","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers/winforms.md","lastUpdated":1673177478000}'),e={name:"ui-helpers/winforms.md"},l=o("",27),t=[l];function p(r,c,i,C,d,y){return a(),n("div",null,t)}const A=s(e,[["render",p]]);export{D as __pageData,A as default}; diff --git a/docs/assets/ui-helpers_wpf.md.27842261.js b/docs/assets/ui-helpers_wpf.md.27842261.js new file mode 100644 index 0000000..53a8cd7 --- /dev/null +++ b/docs/assets/ui-helpers_wpf.md.27842261.js @@ -0,0 +1,4 @@ +import{_ as e,c as t,o as a,R as s}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"WPF","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers/wpf.md","filePath":"ui-helpers/wpf.md","lastUpdated":1673177430000}'),o={name:"ui-helpers/wpf.md"},n=s(`

WPF

This page is about the WpfHelpers class available in PeyrSharp.UiHelpers. This page is about all of its methods.

Compatibility

WinFormsHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Methods

CenterWindow(window)

Definition

Centers a Window on the primary screen.

Arguments

TypeNameMeaning
WindowwindowThe Window to center.

Usage

c#
using PeyrSharp.UiHelpers;
+
+Window window = new Window();
+WpfHelpers.CenterWindow(window); // Center the window on the primary screen
`,13),r=[n];function l(i,d,p,c,h,m){return a(),t("div",null,r)}const u=e(o,[["render",l]]);export{y as __pageData,u as default}; diff --git a/docs/assets/ui-helpers_wpf.md.27842261.lean.js b/docs/assets/ui-helpers_wpf.md.27842261.lean.js new file mode 100644 index 0000000..5a9b50f --- /dev/null +++ b/docs/assets/ui-helpers_wpf.md.27842261.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as a,R as s}from"./chunks/framework.bdd825cc.js";const y=JSON.parse('{"title":"WPF","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers/wpf.md","filePath":"ui-helpers/wpf.md","lastUpdated":1673177430000}'),o={name:"ui-helpers/wpf.md"},n=s("",13),r=[n];function l(i,d,p,c,h,m){return a(),t("div",null,r)}const u=e(o,[["render",l]]);export{y as __pageData,u as default}; diff --git a/docs/assets/ui-helpers_wpf.md.6d4e4bdd.js b/docs/assets/ui-helpers_wpf.md.6d4e4bdd.js deleted file mode 100644 index 9e15f6e..0000000 --- a/docs/assets/ui-helpers_wpf.md.6d4e4bdd.js +++ /dev/null @@ -1,5 +0,0 @@ -import{_ as e,c as t,o as a,Q as s}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"WPF","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers/wpf.md","lastUpdated":1673177430000}'),o={name:"ui-helpers/wpf.md"},n=s(`

WPF

This page is about the WpfHelpers class available in PeyrSharp.UiHelpers. This page is about all of its methods.

Compatibility

WinFormsHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Methods

CenterWindow(window)

Definition

Centers a Window on the primary screen.

Arguments

TypeNameMeaning
WindowwindowThe Window to center.

Usage

c#
using PeyrSharp.UiHelpers;
-
-Window window = new Window();
-WpfHelpers.CenterWindow(window); // Center the window on the primary screen
-
`,13),r=[n];function l(i,d,p,c,h,m){return a(),t("div",null,r)}const u=e(o,[["render",l]]);export{y as __pageData,u as default}; diff --git a/docs/assets/ui-helpers_wpf.md.6d4e4bdd.lean.js b/docs/assets/ui-helpers_wpf.md.6d4e4bdd.lean.js deleted file mode 100644 index 90b0bed..0000000 --- a/docs/assets/ui-helpers_wpf.md.6d4e4bdd.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as a,Q as s}from"./chunks/framework.7addaa9c.js";const y=JSON.parse('{"title":"WPF","description":"","frontmatter":{},"headers":[],"relativePath":"ui-helpers/wpf.md","lastUpdated":1673177430000}'),o={name:"ui-helpers/wpf.md"},n=s("",13),r=[n];function l(i,d,p,c,h,m){return a(),t("div",null,r)}const u=e(o,[["render",l]]);export{y as __pageData,u as default}; diff --git a/docs/core.html b/docs/core.html index 4eb7ada..70bf3a8 100644 --- a/docs/core.html +++ b/docs/core.html @@ -5,19 +5,19 @@ Core | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Core

This page is about the PeyrSharp.Core module.

Compatibility

The PeyrSharp.Core module is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Namespaces

The Core namespace contains other namespaces:

Classes

Released under the MIT License.

- +
Skip to content
On this page

Core

This page is about the PeyrSharp.Core module.

Compatibility

The PeyrSharp.Core module is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Namespaces

The Core namespace contains other namespaces:

Classes

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters.html b/docs/core/converters.html index 0a2f34a..a777630 100644 --- a/docs/core/converters.html +++ b/docs/core/converters.html @@ -5,19 +5,19 @@ Converters | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Converters

This page is about the Converters namespace available in PeyrSharp.Core. You can find here all of its classes.

Compatibility

The Converters namespace is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Classes

Released under the MIT License.

- +
Skip to content
On this page

Converters

This page is about the Converters namespace available in PeyrSharp.Core. You can find here all of its classes.

Compatibility

The Converters namespace is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Classes

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters/angle.html b/docs/core/converters/angle.html index 70c28e2..210720b 100644 --- a/docs/core/converters/angle.html +++ b/docs/core/converters/angle.html @@ -5,27 +5,25 @@ Angle | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Angle

This page is about the Angle class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Angle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

DegreesToRadians(degrees)

Definition

Converts degrees to radians. Returns a double value.

Arguments

TypeNameMeaning
doubledegreesNumber of degrees to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+    
Skip to content
On this page

Angle

This page is about the Angle class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Angle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

DegreesToRadians(degrees)

Definition

Converts degrees to radians. Returns a double value.

Arguments

TypeNameMeaning
doubledegreesNumber of degrees to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double radians = Angle.DegreesToRadians(90);
-// radians = 1.5707963271535559
-

RadiansToDegrees(radians)

Definition

Converts radians to degrees. Returns a double value.

Arguments

TypeNameMeaning
doubleradiansNumber of radians to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+// radians = 1.5707963271535559

RadiansToDegrees(radians)

Definition

Converts radians to degrees. Returns a double value.

Arguments

TypeNameMeaning
doubleradiansNumber of radians to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double deg = Angle.RadiansToDegrees(1.2);
-// deg = 68.7549354
-

Released under the MIT License.

- +// deg = 68.7549354

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters/colors/hex.html b/docs/core/converters/colors/hex.html index fd33a15..8dc6809 100644 --- a/docs/core/converters/colors/hex.html +++ b/docs/core/converters/colors/hex.html @@ -5,29 +5,25 @@ HEX | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

HEX

This page is about the HEX class available in PeyrSharp.Core.Converters. You can find here all of its methods and properties.

Compatibility

The HEX class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

HEX(hex)

Initializes a hexadecimal class from a hexadecimal value.

Arguments

TypeNameMeaning
stringhexThe hexadecimal value (with or without #).

WARNING

If you specify a non-hexadecimal value, a HEXInvalidValueException will be thrown.

Usage

c#
using PeyrSharp.Core.Converters;
+    
Skip to content
On this page

HEX

This page is about the HEX class available in PeyrSharp.Core.Converters. You can find here all of its methods and properties.

Compatibility

The HEX class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

HEX(hex)

Initializes a hexadecimal class from a hexadecimal value.

Arguments

TypeNameMeaning
stringhexThe hexadecimal value (with or without #).

WARNING

If you specify a non-hexadecimal value, a HEXInvalidValueException will be thrown.

Usage

c#
using PeyrSharp.Core.Converters;
 
-HEX hex = new("#FF0A17");
-

Methods

ToRgb()

Definition

Converts the HEX color to RGB. Returns a RGB class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
+HEX hex = new("#FF0A17");

Methods

ToRgb()

Definition

Converts the HEX color to RGB. Returns a RGB class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
 
-RGB rgb = new HEX("#FFFFFF").ToRgb();
-

ToHsv()

Definition

Converts the HEX color to HSV. Returns a HSV class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
+RGB rgb = new HEX("#FFFFFF").ToRgb();

ToHsv()

Definition

Converts the HEX color to HSV. Returns a HSV class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
 
-HSV hsv = new HEX("#E1077B").ToHsv();
-

Properties

Value

Definition

c#
public string Value { get; init; }
-

The Value property contains the hexadecimal value of the HEX color. You can only get this property.

Released under the MIT License.

- +HSV hsv = new HEX("#E1077B").ToHsv();

Properties

Value

Definition

c#
public string Value { get; init; }

The Value property contains the hexadecimal value of the HEX color. You can only get this property.

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters/colors/hsv.html b/docs/core/converters/colors/hsv.html index cebce38..161afcd 100644 --- a/docs/core/converters/colors/hsv.html +++ b/docs/core/converters/colors/hsv.html @@ -5,25 +5,21 @@ HSV | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

HSV

This page is about the HSV class available in PeyrSharp.Core.Converters. You can find here all of its methods and properties.

Compatibility

The HSV class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

HSV(hue, saturation, value)

Definition

Initializes a HSV color from its hue, saturation, and value.

Arguments

TypeNameMeaning
inthueThe Hue of the color.
intsaturationThe saturation percentage.
intvalueThe value/brightness percentage.

Usage

c#
using PeyrSharp.Core.Converters;
+    
Skip to content
On this page

HSV

This page is about the HSV class available in PeyrSharp.Core.Converters. You can find here all of its methods and properties.

Compatibility

The HSV class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

HSV(hue, saturation, value)

Definition

Initializes a HSV color from its hue, saturation, and value.

Arguments

TypeNameMeaning
inthueThe Hue of the color.
intsaturationThe saturation percentage.
intvalueThe value/brightness percentage.

Usage

c#
using PeyrSharp.Core.Converters;
 
-HSV hsv = new(50, 75, 100);
-

Properties

Hue

Definition

c#
public int Hue { get; init; }
-

The Hue property contains the hue of the HSV color. You can only get this property.

Saturation

Definition

c#
public int Saturation { get; init; }
-

The Value property contains the saturation percentage of the HSV color. You can only get this property.

Value

Definition

c#
public int Value { get; init; }
-

The Value property contains the value/brightness percentage of the HSV color. You can only get this property.

Released under the MIT License.

- +HSV hsv = new(50, 75, 100);

Properties

Hue

Definition

c#
public int Hue { get; init; }

The Hue property contains the hue of the HSV color. You can only get this property.

Saturation

Definition

c#
public int Saturation { get; init; }

The Value property contains the saturation percentage of the HSV color. You can only get this property.

Value

Definition

c#
public int Value { get; init; }

The Value property contains the value/brightness percentage of the HSV color. You can only get this property.

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters/colors/rgb.html b/docs/core/converters/colors/rgb.html index c0f7e33..ba6eb5d 100644 --- a/docs/core/converters/colors/rgb.html +++ b/docs/core/converters/colors/rgb.html @@ -5,33 +5,28 @@ RGB | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

RGB

This page is about the RGB class available in PeyrSharp.Core.Converters. You can find here all of its methods and properties.

Compatibility

The RGB class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

RGB(color)

Definition

Initializes a RGB class from a System.Drawing.Color. Returns a RGB class.

Arguments

TypeNameMeaning
ColorcolorThe RGB color.

Usage

c#
using PeyrSharp.Core.Converters;
+    
Skip to content
On this page

RGB

This page is about the RGB class available in PeyrSharp.Core.Converters. You can find here all of its methods and properties.

Compatibility

The RGB class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

RGB(color)

Definition

Initializes a RGB class from a System.Drawing.Color. Returns a RGB class.

Arguments

TypeNameMeaning
ColorcolorThe RGB color.

Usage

c#
using PeyrSharp.Core.Converters;
 using System.Drawing;
 
-RGB rgb = new(Color.FromArgb(255, 150, 120));
-

RGB(r, g, b)

Definition

Initializes a RGB class from its r, g and b values. Returns a RGB class.

Arguments

TypeNameMeaning
intrRed.
intgGreen.
intbBlue.

WARNING

If you specify a value that is not between 0 and 255, a RGBInvalidValueException will be thrown.

Usage

c#
using PeyrSharp.Core.Converters;
+RGB rgb = new(Color.FromArgb(255, 150, 120));

RGB(r, g, b)

Definition

Initializes a RGB class from its r, g and b values. Returns a RGB class.

Arguments

TypeNameMeaning
intrRed.
intgGreen.
intbBlue.

WARNING

If you specify a value that is not between 0 and 255, a RGBInvalidValueException will be thrown.

Usage

c#
using PeyrSharp.Core.Converters;
 
-RGB rgb = new(255, 150, 120);
-

Methods

ToHex()

Definition

Converts the RGB color to hexadecimal (HEX). Returns a HEX class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
+RGB rgb = new(255, 150, 120);

Methods

ToHex()

Definition

Converts the RGB color to hexadecimal (HEX). Returns a HEX class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
 
-HEX hex = new RGB(255, 0, 0).ToHex();
-

ToHsv()

Definition

Converts the RGB color to HSV. Returns a HSV class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
+HEX hex = new RGB(255, 0, 0).ToHex();

ToHsv()

Definition

Converts the RGB color to HSV. Returns a HSV class.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core.Converters;
 
-HSV hsv = new RGB(255, 0, 0).ToHsv();
-

Properties

Color

Definition

c#
public Color Color { get; init; }
-

The Color property contains the RGB color as a System.Drawing.Color. You can only get this property.

Released under the MIT License.

- +HSV hsv = new RGB(255, 0, 0).ToHsv();

Properties

Color

Definition

c#
public Color Color { get; init; }

The Color property contains the RGB color as a System.Drawing.Color. You can only get this property.

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters/distances.html b/docs/core/converters/distances.html index 535487f..86afc04 100644 --- a/docs/core/converters/distances.html +++ b/docs/core/converters/distances.html @@ -5,35 +5,31 @@ Distances | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Distances

This page is about the Distances class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Distances class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

MilesToKm(miles)

Definition

Converts miles to kilometers. Returns a double value.

Arguments

TypeNameMeaning
doublemilesNumber of mile(s) to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+    
Skip to content
On this page

Distances

This page is about the Distances class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Distances class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

MilesToKm(miles)

Definition

Converts miles to kilometers. Returns a double value.

Arguments

TypeNameMeaning
doublemilesNumber of mile(s) to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double km = Distances.MilesToKm(10);
-// km = 16.09344
-

KmToMiles(km)

Definition

Converts kilometers to miles. Returns a double value.

Arguments

TypeNameMeaning
doublekilometersNumber of kilometers(s) to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+// km = 16.09344

KmToMiles(km)

Definition

Converts kilometers to miles. Returns a double value.

Arguments

TypeNameMeaning
doublekilometersNumber of kilometers(s) to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double miles = Distances.KmToMiles(5);
-// miles = 3.1068559611866697
-

FeetToMeters(feet)

Definition

Converts feet to meters. Returns a double value.

Arguments

TypeNameMeaning
doublefeetNumber of feet to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+// miles = 3.1068559611866697

FeetToMeters(feet)

Definition

Converts feet to meters. Returns a double value.

Arguments

TypeNameMeaning
doublefeetNumber of feet to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double meters = Distances.FeetToMeters(12);
-// meters = 3.657599994440448
-

MetersToFeet(meters)

Definition

Converts meters to feet. Returns a double value.

Arguments

TypeNameMeaning
doublemetersNumber of meters to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+// meters = 3.657599994440448

MetersToFeet(meters)

Definition

Converts meters to feet. Returns a double value.

Arguments

TypeNameMeaning
doublemetersNumber of meters to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double feet = Distances.MetersToFeet(3.657599994440448);
-// feet = 12
-

Released under the MIT License.

- +// feet = 12

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters/energies.html b/docs/core/converters/energies.html index ac1d689..2b2c4a6 100644 --- a/docs/core/converters/energies.html +++ b/docs/core/converters/energies.html @@ -5,27 +5,25 @@ Energies | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Energies

This page is about the Energies class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Energies class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

CaloriesToJoules(calories)

Definition

Converts calories to joules.

Arguments

TypeNameMeaning
doublecaloriesThe amount of energy in calories to be converted.

Returns

The equivalent amount of energy in joules.

Usage

c#
using PeyrSharp.Core.Converters;
+    
Skip to content
On this page

Energies

This page is about the Energies class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Energies class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

CaloriesToJoules(calories)

Definition

Converts calories to joules.

Arguments

TypeNameMeaning
doublecaloriesThe amount of energy in calories to be converted.

Returns

The equivalent amount of energy in joules.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double calories = 100.0;
-double joules = Energies.CaloriesToJoules(calories);
-

JoulesToCalories(joules)

Definition

Converts joules to calories.

Arguments

TypeNameMeaning
doublejoulesThe amount of energy in joules.

Returns

The equivalent amount of energy in calories.

Usage

c#
using PeyrSharp.Core.Converters;
+double joules = Energies.CaloriesToJoules(calories);

JoulesToCalories(joules)

Definition

Converts joules to calories.

Arguments

TypeNameMeaning
doublejoulesThe amount of energy in joules.

Returns

The equivalent amount of energy in calories.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double joules = 1000.0;
-double calories = Energies.JoulesToCalories(joules);
-

Released under the MIT License.

- +double calories = Energies.JoulesToCalories(joules);

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters/masses.html b/docs/core/converters/masses.html index 1a06f05..5beee28 100644 --- a/docs/core/converters/masses.html +++ b/docs/core/converters/masses.html @@ -5,27 +5,25 @@ Masses | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Masses

This page is about the Masses class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Masses class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

PoundsToKilograms(pounds)

Definition

Converts pounds to kilograms. Returns a double value.

Arguments

TypeNameMeaning
doublepoundsNumber of pounds to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+    
Skip to content
On this page

Masses

This page is about the Masses class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Masses class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

PoundsToKilograms(pounds)

Definition

Converts pounds to kilograms. Returns a double value.

Arguments

TypeNameMeaning
doublepoundsNumber of pounds to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double kg = Masses.PoundsToKilograms(10);
-// kg = 4.535923703803784
-

KilogramsToPounds(kilograms)

Definition

Converts kilograms to pounds. Returns a double value.

Arguments

TypeNameMeaning
doublekilogramsNumber of kilograms to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+// kg = 4.535923703803784

KilogramsToPounds(kilograms)

Definition

Converts kilograms to pounds. Returns a double value.

Arguments

TypeNameMeaning
doublekilogramsNumber of kilograms to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double pounds = Masses.KilogramsToPounds(25);
-// pounds = 55.115565499999995
-

Released under the MIT License.

- +// pounds = 55.115565499999995

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters/speeds.html b/docs/core/converters/speeds.html index 88e4c67..7988b95 100644 --- a/docs/core/converters/speeds.html +++ b/docs/core/converters/speeds.html @@ -5,59 +5,57 @@ Speeds | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Speeds

This page is about the Speeds class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Speeds class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

KnotsToKilometersPerHour(knots)

Definition

Converts knots to kilometers per hour.

Arguments

TypeNameMeaning
doubleknotsThe speed in knots.

Returns

The equivalent speed in kilometers per hour.

Usage

c#
using PeyrSharp.Core.Converters;
+    
Skip to content
On this page

Speeds

This page is about the Speeds class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Speeds class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

KnotsToKilometersPerHour(knots)

Definition

Converts knots to kilometers per hour.

Arguments

TypeNameMeaning
doubleknotsThe speed in knots.

Returns

The equivalent speed in kilometers per hour.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double speedInKnots = 20.0;
 double speedInKilometersPerHour = Speeds.KnotsToKilometersPerHour(speedInKnots);
-Console.WriteLine($"{speedInKnots} knots is equivalent to {speedInKilometersPerHour} km/h");
-

KilometersPerHourToKnots(kilometersPerHour)

Definition

Converts kilometers per hour to knots.

Arguments

TypeNameDescription
doublekilometersPerHourThe speed in kilometers per hour.

Returns

The equivalent speed in knots.

Usage

c#
using PeyrSharp.Core.Converters;
+Console.WriteLine($"{speedInKnots} knots is equivalent to {speedInKilometersPerHour} km/h");

KilometersPerHourToKnots(kilometersPerHour)

Definition

Converts kilometers per hour to knots.

Arguments

TypeNameDescription
doublekilometersPerHourThe speed in kilometers per hour.

Returns

The equivalent speed in knots.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double speedInKilometersPerHour = 40.0;
 double speedInKnots = Speeds.KilometersPerHourToKnots(speedInKilometersPerHour);
-Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInKnots} knots");
-

KnotsToMilesPerHour(knots)

Definition

Converts knots to miles per hour.

Arguments

TypeNameDescription
doubleknotsThe speed in knots.

Returns

The equivalent speed in miles per hour.

Usage

c#
using PeyrSharp.Core.Converters;
+Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInKnots} knots");

KnotsToMilesPerHour(knots)

Definition

Converts knots to miles per hour.

Arguments

TypeNameDescription
doubleknotsThe speed in knots.

Returns

The equivalent speed in miles per hour.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double speedInKnots = 20.0;
 double speedInMilesPerHour = Speeds.KnotsToMilesPerHour(speedInKnots);
-Console.WriteLine($"{speedInKnots} knots is equivalent to {speedInMilesPerHour} mph");
-

MilesPerHourToKnots(milesPerHour)

Definition

Converts miles per hour to knots.

Arguments

TypeNameDescription
doublemilesPerHourThe speed in miles per hour.

Returns

The equivalent speed in knots.

Usage

c#
using PeyrSharp.Core.Converters;
+Console.WriteLine($"{speedInKnots} knots is equivalent to {speedInMilesPerHour} mph");

MilesPerHourToKnots(milesPerHour)

Definition

Converts miles per hour to knots.

Arguments

TypeNameDescription
doublemilesPerHourThe speed in miles per hour.

Returns

The equivalent speed in knots.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double speedInMilesPerHour = 60.0;
 double speedInKnots = Speeds.MilesPerHourToKnots(speedInMilesPerHour);
-Console.WriteLine($"{speedInMilesPerHour} miles/hour is equivalent to {speedInKnots} knots");
-

KilometersPerHourToMetersPerSecond(kilometersPerHour)

Definition

Converts kilometers per hour to meters per second.

Arguments

TypeNameDescription
doublekilometersPerHourThe speed in kilometers per hour.

Returns

The equivalent speed in meters per second.

Usage

c#
using PeyrSharp.Core.Converters;
+Console.WriteLine($"{speedInMilesPerHour} miles/hour is equivalent to {speedInKnots} knots");

KilometersPerHourToMetersPerSecond(kilometersPerHour)

Definition

Converts kilometers per hour to meters per second.

Arguments

TypeNameDescription
doublekilometersPerHourThe speed in kilometers per hour.

Returns

The equivalent speed in meters per second.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double speedInKilometersPerHour = 100.0;
 double speedInMetersPerSecond = Speeds.KilometersPerHourToMetersPerSecond(speedInKilometersPerHour);
-Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInMetersPerSecond} m/s");
-

MetersPerSecondToKilometersPerHour(metersPerSecond)

Definition

Converts meters per second to kilometers per hour.

Arguments

TypeNameMeaning
doublemetersPerSecondThe speed in meters per second.

Returns

The equivalent speed in kilometers per hour.

Usage

c#
using PeyrSharp.Core.Converters;
+Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInMetersPerSecond} m/s");

MetersPerSecondToKilometersPerHour(metersPerSecond)

Definition

Converts meters per second to kilometers per hour.

Arguments

TypeNameMeaning
doublemetersPerSecondThe speed in meters per second.

Returns

The equivalent speed in kilometers per hour.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double speedInMetersPerSecond = 10.0;
 double speedInKilometersPerHour = Speeds.MetersPerSecondToKilometersPerHour(speedInMetersPerSecond);
-Console.WriteLine($"{speedInMetersPerSecond} m/s is equivalent to {speedInKilometersPerHour} km/h");
-

MilesPerHourToKilometersPerHour(milesPerHour)

Definition

Converts miles per hour to kilometers per hour.

Arguments

TypeNameDescription
doublemilesPerHourThe speed in miles per hour.

Returns

The equivalent speed in kilometers per hour.

Usage

c#
using PeyrSharp.Core.Converters;
+Console.WriteLine($"{speedInMetersPerSecond} m/s is equivalent to {speedInKilometersPerHour} km/h");

MilesPerHourToKilometersPerHour(milesPerHour)

Definition

Converts miles per hour to kilometers per hour.

Arguments

TypeNameDescription
doublemilesPerHourThe speed in miles per hour.

Returns

The equivalent speed in kilometers per hour.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double speedInMilesPerHour = 60.0;
 double speedInKilometersPerHour = Speeds.MilesPerHourToKilometersPerHour(speedInMilesPerHour);
-Console.WriteLine($"{speedInMilesPerHour} mph is equivalent to {speedInKilometersPerHour} km/h");
-

KilometersPerHourToMilesPerHour(kilometersPerHour)

Definition

Converts kilometers per hour to miles per hour.

Arguments

TypeNameDescription
doublekilometersPerHourThe speed in kilometers per hour.

Returns

The equivalent speed in miles per hour.

Usage

c#
using PeyrSharp.Core.Converters;
+Console.WriteLine($"{speedInMilesPerHour} mph is equivalent to {speedInKilometersPerHour} km/h");

KilometersPerHourToMilesPerHour(kilometersPerHour)

Definition

Converts kilometers per hour to miles per hour.

Arguments

TypeNameDescription
doublekilometersPerHourThe speed in kilometers per hour.

Returns

The equivalent speed in miles per hour.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double speedInKilometersPerHour = 50.0;
 double speedInMilesPerHour = Speeds.KilometersPerHourToMilesPerHour(speedInKilometersPerHour);
-Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInMilesPerHour} mph");
-

Released under the MIT License.

- +Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInMilesPerHour} mph");

MachToKilometersPerHour(n)

Definition

Converts a speed in mach to a speed in kilometers per hour. Returns a double value.

Arguments

TypeNameMeaning
doublenThe speed in mach to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double kmPerHour = Speeds.MachToKilometersPerHour(1);
+// kmPerHour = 1234.8

MachToMilesPerHour(mach)

Definition

Converts a speed in mach to miles per hour. Returns a double value.

Arguments

TypeNameMeaning
doublemachThe speed in mach.

Returns

A double representing the speed in miles per hour.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double mph = Speeds.MachToMilesPerHour(0.8);
+// mph = 613.8153184

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters/storage.html b/docs/core/converters/storage.html index 00122f6..65efcc6 100644 --- a/docs/core/converters/storage.html +++ b/docs/core/converters/storage.html @@ -5,43 +5,43 @@ Storage | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Storage

This page is about the Storage class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Storage class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

ToByte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to byte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+    
Skip to content
On this page

Storage

This page is about the Storage class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Storage class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

ToByte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to byte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
 
 double byte = Storage.ToByte(1, StorageUnits.Kilobyte);
-// byte = 1000
-

ToKilobyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to kilobyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: byte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+// byte = 1000

ToKilobyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to kilobyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: byte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
 
 double kilobyte = Storage.ToKilobyte(2000, StorageUnits.Byte);
-// kilobyte = 2
-

ToMegabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to megabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+// kilobyte = 2

ToMegabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to megabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
 
 double megabyte = Storage.ToMegabyte(1500, StorageUnits.Kilobyte);
-// megabyte = 1.5
-

ToGigabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to gigabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, megabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+// megabyte = 1.5

ToGigabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to gigabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, megabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
 
 double gigabyte = Storage.ToGigabyte(1000, StorageUnits.Megabyte);
-// gigabyte = 1
-

ToTerabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to terabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+// gigabyte = 1

ToTerabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to terabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
 
 double terabyte = Storage.ToTerabyte(1, StorageUnits.Petabyte);
-// terabyte = 1000
-

ToPetabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to petabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+// terabyte = 1000

ToPetabyte(value, storageUnit)

Definition

Converts a size (kb, mb, ...) to petabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doublevalueThe value to convert.
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
 
 double petabyte = Storage.ToPetabyte(1000, StorageUnits.Terabyte);
-// petabyte = 1
-

Released under the MIT License.

- +// petabyte = 1

BitsToBytes(n)

Definition

Converts a number of bits to a number of bytes. Returns a double value.

Arguments

TypeNameMeaning
doublenThe number of bits to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double bytes = Storage.BitsToBytes(64);
+// bytes = 8

BytesToBits(n)

Definition

Converts a number of bytes to a number of bits. Returns a double value.

Arguments

TypeNameMeaning
doublenThe number of bytes to convert to bits.

Usage

c#
using PeyrSharp.Core.Converters;
+
+double bits = Storage.BytesToBits(1024);
+// bits = 8192

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters/temperatures.html b/docs/core/converters/temperatures.html index c8f9076..85f0f92 100644 --- a/docs/core/converters/temperatures.html +++ b/docs/core/converters/temperatures.html @@ -5,27 +5,25 @@ Temperatures | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Temperatures

This page is about the Temperatures class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Temperatures class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

CelsiusToFahrenheit(celsius)

Definition

Converts Celsius (°C) to Fahrenheit (°F). Returns a double value.

Arguments

TypeNameMeaning
doublecelsiusNumber of Celsius to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+    
Skip to content
On this page

Temperatures

This page is about the Temperatures class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Temperatures class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

CelsiusToFahrenheit(celsius)

Definition

Converts Celsius (°C) to Fahrenheit (°F). Returns a double value.

Arguments

TypeNameMeaning
doublecelsiusNumber of Celsius to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double f = Temperatures.CelsiusToFahrenheit(22);
-// f = 71.6
-

FahrenheitToCelsius(fahrenheit)

Definition

Converts Fahrenheit (°F) to Celsius (°C). Returns a double value.

Arguments

TypeNameMeaning
doublefahrenheitNumber of Fahrenheit to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+// f = 71.6

FahrenheitToCelsius(fahrenheit)

Definition

Converts Fahrenheit (°F) to Celsius (°C). Returns a double value.

Arguments

TypeNameMeaning
doublefahrenheitNumber of Fahrenheit to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double c = Temperatures.FahrenheitToCelsius(75);
-// c = 23.88888888888889
-

Released under the MIT License.

- +// c = 23.88888888888889

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters/time.html b/docs/core/converters/time.html index 54d6893..a88fd08 100644 --- a/docs/core/converters/time.html +++ b/docs/core/converters/time.html @@ -5,46 +5,40 @@ Time | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Time

This page is about the Time class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Time class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

ToSeconds(d, timeUnits)

Definition

Converts a specified time unit value to seconds. For instance, you can convert days, hours or minutes to seconds. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
+    
Skip to content
On this page

Time

This page is about the Time class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Time class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

ToSeconds(d, timeUnits)

Definition

Converts a specified time unit value to seconds. For instance, you can convert days, hours or minutes to seconds. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
 using PeyrSharp.Enums;
 
 double seconds = Time.ToSeconds(5, TimeUnits.Minutes);
-// seconds = 300
-

ToMinutes(d, timeUnits)

Definition

Converts a specified time unit value to minutes. For instance, you can convert days, hours or seconds to minutes. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
+// seconds = 300

ToMinutes(d, timeUnits)

Definition

Converts a specified time unit value to minutes. For instance, you can convert days, hours or seconds to minutes. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
 using PeyrSharp.Enums;
 
 double min = Time.ToMinutes(120, TimeUnits.Seconds);
-// min = 2
-

ToHours(d, timeUnits)

Definition

Converts a specified time unit value to hours. For instance, you can convert days, minutes or seconds to hours. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
+// min = 2

ToHours(d, timeUnits)

Definition

Converts a specified time unit value to hours. For instance, you can convert days, minutes or seconds to hours. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
 using PeyrSharp.Enums;
 
 double hours = Time.ToHours(1, TimeUnits.Days);
-// hours = 24
-

ToDays(d, timeUnits)

Definition

Converts a specified time unit value to days. For instance, you can convert hours, minutes or seconds to days. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
+// hours = 24

ToDays(d, timeUnits)

Definition

Converts a specified time unit value to days. For instance, you can convert hours, minutes or seconds to days. It returns a double value.

INFO

This method can also be used in PeyrSharp.Extensions.

Arguments

TypeNameMeaning
doubledThe time unit to convert.
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Core.Converters;
 using PeyrSharp.Enums;
 
 double days = Time.ToDays(72, TimeUnits.Hours);
-// days = 3
-

UnixTimeToDateTime(unixTime)

Available in version 1.1 and higher.

Definition

Converts Unix Time to DateTime. It returns a DateTime value.

Arguments

TypeNameMeaning
intunixTimeThe Unix Time to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+// days = 3

UnixTimeToDateTime(unixTime)

Available in version 1.1 and higher.

Definition

Converts Unix Time to DateTime. It returns a DateTime value.

Arguments

TypeNameMeaning
intunixTimeThe Unix Time to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
-var date = Time.UnixTimeToDateTime(1670144268); // 12/04/2022 08:57:48
-

DateTimeToUnixTime(dateTime)

Available in version 1.1 and higher.

Definition

Converts DateTime to Unix Time. It returns an int value.

Arguments

TypeNameMeaning
DateTimedateTimeThe converted DateTime in Unix Time.

Usage

c#
using PeyrSharp.Core.Converters;
+var date = Time.UnixTimeToDateTime(1670144268); // 12/04/2022 08:57:48

DateTimeToUnixTime(dateTime)

Available in version 1.1 and higher.

Definition

Converts DateTime to Unix Time. It returns an int value.

Arguments

TypeNameMeaning
DateTimedateTimeThe converted DateTime in Unix Time.

Usage

c#
using PeyrSharp.Core.Converters;
 
 int unix = Time.DateTimeToUnixTime(new(2022, 12, 4, 8, 57, 48, DateTimeKind.Utc)); 
-// unix = 1670144268
-

Released under the MIT License.

- +// unix = 1670144268

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/converters/volumes.html b/docs/core/converters/volumes.html index 83f3f84..7b3b4c3 100644 --- a/docs/core/converters/volumes.html +++ b/docs/core/converters/volumes.html @@ -5,27 +5,25 @@ Volumes | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Volumes

This page is about the Volumes class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Volumes class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

M3ToLitre(m3)

Definition

Converts Cubic Meters (m³) to Litre (L). Returns a double value.

Arguments

TypeNameMeaning
doublem3Number of cubic meters to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+    
Skip to content
On this page

Volumes

This page is about the Volumes class available in PeyrSharp.Core.Converters. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Volumes class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

M3ToLitre(m3)

Definition

Converts Cubic Meters (m³) to Litre (L). Returns a double value.

Arguments

TypeNameMeaning
doublem3Number of cubic meters to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double litre = Volumes.M3ToLitre(10);
-// litre = 10000
-

LitreToM3(m3)

Definition

Converts Litre (L) to Cubic Meters (m³). Returns a double value.

Arguments

TypeNameMeaning
doublelitreNumber of litres to convert.

Usage

c#
using PeyrSharp.Core.Converters;
+// litre = 10000

LitreToM3(m3)

Definition

Converts Litre (L) to Cubic Meters (m³). Returns a double value.

Arguments

TypeNameMeaning
doublelitreNumber of litres to convert.

Usage

c#
using PeyrSharp.Core.Converters;
 
 double m3 = Volumes.LitreToM3(500);
-// m3 = 0.5
-

Released under the MIT License.

- +// m3 = 0.5

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/crypt.html b/docs/core/crypt.html index dd71466..eebae0d 100644 --- a/docs/core/crypt.html +++ b/docs/core/crypt.html @@ -5,22 +5,21 @@ Crypt | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Crypt

This page is about the Crypt class available in PeyrSharp.Core. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Crypt class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

EncryptAes(str, key)

Definitions

Encrypts a string using AES encryption. Returns the encrypted content as a string as well.

Arguments

TypeNameMeaning
stringstrThe text to encrypt.
stringkeyThe encryption key. This is the same key that will be used to decrypt the text.

Usage

c#
using PeyrSharp.Core;
+    
Skip to content
On this page

Crypt

This page is about the Crypt class available in PeyrSharp.Core. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Crypt class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

EncryptAes(str, key)

Definitions

Encrypts a string using AES encryption. Returns the encrypted content as a string as well.

Arguments

TypeNameMeaning
stringstrThe text to encrypt.
stringkeyThe encryption key. This is the same key that will be used to decrypt the text.

Usage

c#
using PeyrSharp.Core;
 
 string text = "Hello, world!";
 string encrypted = Crypt.EncryptAes(text, "password");
-// encrypted = 8U0HRr7pCIdbvBIquiJaLc00fyBjXDb9sLflk5anIi8=
-

EncryptRsa(str, rsaParameters)

Definitions

Encrypts a string using RSA encryption. Returns the encrypted content as an array of byte (byte[]).

Arguments

TypeNameMeaning
stringstrThe text to encrypt.
RSAParametersrsaParametersThe RSA key.

Usage

c#
using PeyrSharp.Core;
+// encrypted = 8U0HRr7pCIdbvBIquiJaLc00fyBjXDb9sLflk5anIi8=

EncryptRsa(str, rsaParameters)

Definitions

Encrypts a string using RSA encryption. Returns the encrypted content as an array of byte (byte[]).

Arguments

TypeNameMeaning
stringstrThe text to encrypt.
RSAParametersrsaParametersThe RSA key.

Usage

c#
using PeyrSharp.Core;
 using System.Security.Cryptography;
 
 string text = "Hello, world!";
@@ -29,33 +28,28 @@
 RSACryptoServiceProvider cryptoServiceProvider = new RSACryptoServiceProvider();
 
 // Encrypt using RSA
-string encrypted = Crypt.EncryptRsa(text, cryptoServiceProvider.ExportParameters(false));
-

Encrypt3Des(source, key)

Definitions

Encrypts a string using AES encryption. Returns the encrypted content as a string as well.

Arguments

TypeNameMeaning
stringsourceThe text to encrypt.
stringkeyThe encryption key. This is the same key that will be used to decrypt the text.

Usage

c#
using PeyrSharp.Core;
+string encrypted = Crypt.EncryptRsa(text, cryptoServiceProvider.ExportParameters(false));

Encrypt3Des(source, key)

Definitions

Encrypts a string using AES encryption. Returns the encrypted content as a string as well.

Arguments

TypeNameMeaning
stringsourceThe text to encrypt.
stringkeyThe encryption key. This is the same key that will be used to decrypt the text.

Usage

c#
using PeyrSharp.Core;
 
 string text = "Hello, world!";
 string encrypted = Crypt.Encrypt3Des(text, "password");
-// encrypted = bxceEpCfRlbyYdPggAu+Cw==
-

DecryptAes(str, key)

Definitions

Decrypts a string using AES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
stringstrThe text to decrypt.
stringkeyThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
+// encrypted = bxceEpCfRlbyYdPggAu+Cw==

DecryptAes(str, key)

Definitions

Decrypts a string using AES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
stringstrThe text to decrypt.
stringkeyThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
 
 string encrypted = "6NvvTBntd2PdFxXzVbccLw==";
 string text = Crypt.DecryptAes(encrypted, "password");
-// text = Hello!
-

DecryptRsa(encrypted, rsaParameters)

Definitions

Decrypts a string using AES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
byte[]encryptedThe text to decrypt.
RSAParametersrsaParametersThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
+// text = Hello!

DecryptRsa(encrypted, rsaParameters)

Definitions

Decrypts a string using AES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
byte[]encryptedThe text to decrypt.
RSAParametersrsaParametersThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
 using System.Security.Cryptography;
 
 RSACryptoServiceProvider cryptoServiceProvider = new RSACryptoServiceProvider();
 byte[] e = Crypt.EncryptRsa("Hello", cryptoServiceProvider.ExportParameters(false));
 
 string decrypted = Crypt.DecryptRsa(e, cryptoServiceProvider.ExportParameters(true));
-// decrypted = Hello
-

Decrypt3Des(str, key)

Definitions

Decrypts a string using 3-DES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
stringencryptThe text to decrypt.
stringkeyThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
+// decrypted = Hello

Decrypt3Des(str, key)

Definitions

Decrypts a string using 3-DES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
stringencryptThe text to decrypt.
stringkeyThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
 
 string encrypted = "AvuLd4LUxRU=";
 string text = Crypt.Decrypt3Des(encrypted, "123");
-// text = Hello
-

Released under the MIT License.

- +// text = Hello

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/guid-options.html b/docs/core/guid-options.html index dace9e5..a880a5e 100644 --- a/docs/core/guid-options.html +++ b/docs/core/guid-options.html @@ -5,17 +5,17 @@ GuidOptions | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

GuidOptions

This page is about the GuidOptions class available in PeyrSharp.Core. You can find here all of its properties.

Compatibility

The GuidOptions class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

GuidOptions()

Definition

Initializes GuidOptions with default values for its properties.

Usage

c#
using PeyrSharp.Core;
+    
Skip to content
On this page

GuidOptions

This page is about the GuidOptions class available in PeyrSharp.Core. You can find here all of its properties.

Compatibility

The GuidOptions class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

GuidOptions()

Definition

Initializes GuidOptions with default values for its properties.

Usage

c#
using PeyrSharp.Core;
 
 var options = new GuidOptions();
 /*
@@ -24,8 +24,7 @@
         - Hyphens = true
         - Braces = false
         - UpperCaseOnly = false
-*/
-

GuidOptions(length, hyphens, braces, upperCaseOnly)

Definition

Initializes GuidOptions with specific values for its properties.

Usage

c#
using PeyrSharp.Core;
+*/

GuidOptions(length, hyphens, braces, upperCaseOnly)

Definition

Initializes GuidOptions with specific values for its properties.

Usage

c#
using PeyrSharp.Core;
 
 var options = new GuidOptions(32, true, true, true);
 /*
@@ -34,14 +33,9 @@
         - Hyphens = true
         - Braces = true
         - UpperCaseOnly = true
-*/
-

Properties

Length

Definition

c#
public int Length { get; set; }
-

The Length property is an int representing the length of the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

Hyphens

Definition

c#
public bool Hyphens { get; set; }
-

The Hyphens property is a bool, which will determine if you want hyphens in the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

Braces

Definition

c#
public bool Braces { get; set; }
-

The Braces property is a bool, which will determine if you want braces in the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

UpperCaseOnly

Definition

c#
public bool UpperCaseOnly { get; set; }
-

The UpperCaseOnly property is a bool, which will determine if you want to only have upper cases in the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

Released under the MIT License.

- +*/

Properties

Length

Definition

c#
public int Length { get; set; }

The Length property is an int representing the length of the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

Hyphens

Definition

c#
public bool Hyphens { get; set; }

The Hyphens property is a bool, which will determine if you want hyphens in the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

Braces

Definition

c#
public bool Braces { get; set; }

The Braces property is a bool, which will determine if you want braces in the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

UpperCaseOnly

Definition

c#
public bool UpperCaseOnly { get; set; }

The UpperCaseOnly property is a bool, which will determine if you want to only have upper cases in the Guid that will be generated if used with GuidGen.Generate().

INFO

This property can be initialized when using the GuidOptions(length, hyphens, braces, upperCaseOnly) constructor.

You can get and set this property after initializing the class.

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/guid.html b/docs/core/guid.html index db91a91..505e626 100644 --- a/docs/core/guid.html +++ b/docs/core/guid.html @@ -5,35 +5,31 @@ GuidGen | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

GuidGen

This page is about the GuidGen class available in PeyrSharp.Core. You can find here all of its methods and properties.

INFO

This class is static.

Compatibility

The GuidGen class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

Generate()

Definition

The Generate() method generates a Guid and will return it as a string.

INFO

This method has different overloads.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core;
+    
Skip to content
On this page

GuidGen

This page is about the GuidGen class available in PeyrSharp.Core. You can find here all of its methods and properties.

INFO

This class is static.

Compatibility

The GuidGen class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

Generate()

Definition

The Generate() method generates a Guid and will return it as a string.

INFO

This method has different overloads.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Core;
 
 string guid = GuidGen.Generate();
-// guid = 7992acdd-1c9a-4985-92df-04599d560bbc (example)
-

Generate(length)

Definition

The Generate() method generates a Guid with a specific length and will return it as a string.

INFO

This method is an overload of Generate()

Arguments

This method has one argument:

TypeNameMeaning
intlengthThe length of the Guid.

WARNING

The length must be a number, otherwise, it will thrown a InvalidGuidLengthException.

Usage

c#
using PeyrSharp.Core;
+// guid = 7992acdd-1c9a-4985-92df-04599d560bbc (example)

Generate(length)

Definition

The Generate() method generates a Guid with a specific length and will return it as a string.

INFO

This method is an overload of Generate()

Arguments

This method has one argument:

TypeNameMeaning
intlengthThe length of the Guid.

WARNING

The length must be a number, otherwise, it will thrown a InvalidGuidLengthException.

Usage

c#
using PeyrSharp.Core;
 
 string guid = GuidGen.Generate(15);
-// guid = 5693ad99881e4f9 (example)
-

Generate(fromString)

Definition

The Generate() method generates a Guid from a specific string and will return it as a string.

INFO

This method is an overload of Generate()

Arguments

This method has one argument:

TypeNameMeaning
stringfromStringThe string which will be used to generate the Guid.

Usage

c#
using PeyrSharp.Core;
+// guid = 5693ad99881e4f9 (example)

Generate(fromString)

Definition

The Generate() method generates a Guid from a specific string and will return it as a string.

INFO

This method is an overload of Generate()

Arguments

This method has one argument:

TypeNameMeaning
stringfromStringThe string which will be used to generate the Guid.

Usage

c#
using PeyrSharp.Core;
 
 string guid = GuidGen.Generate("Hello");
-// guid = 53991a8b-61c4-9612-a827-abf8c47804d7
-

Generate(guidOptions)

Definition

The Generate() method generates a Guid with specific GuidOptions and will return it as a string.

INFO

This method is an overload of Generate()

Arguments

This method has one argument:

TypeNameMeaning
GuidOptionsguidOptionsThe options of the Guid to generate.

Usage

c#
using PeyrSharp.Core;
+// guid = 53991a8b-61c4-9612-a827-abf8c47804d7

Generate(guidOptions)

Definition

The Generate() method generates a Guid with specific GuidOptions and will return it as a string.

INFO

This method is an overload of Generate()

Arguments

This method has one argument:

TypeNameMeaning
GuidOptionsguidOptionsThe options of the Guid to generate.

Usage

c#
using PeyrSharp.Core;
 
 string guid = Guid.Generate(new GuidOptions(32, true, true, false));
-// guid = {35c3ab90-7636-4d34-a439-bc65eb3c} (example)
-

Released under the MIT License.

- +// guid = {35c3ab90-7636-4d34-a439-bc65eb3c} (example)

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/internet.html b/docs/core/internet.html index a36e67e..2825e2b 100644 --- a/docs/core/internet.html +++ b/docs/core/internet.html @@ -5,43 +5,41 @@ Internet | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Internet

This page is about the Internet class available in PeyrSharp.Core. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Internet class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

IsAvailableAsync()

Definition

Checks if a connection to the Internet is available. Returns a bool value.

INFO

This method is asynchronous and awaitable.

Arguments

This method has no arguments

Usage

c#
using PeyrSharp.Core;
+    
Skip to content
On this page

Internet

This page is about the Internet class available in PeyrSharp.Core. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Internet class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

IsAvailableAsync()

Definition

Checks if a connection to the Internet is available. Returns a bool value.

INFO

This method is asynchronous and awaitable.

Arguments

This method has no arguments

Usage

c#
using PeyrSharp.Core;
 
 public static async void Main()
 {
     bool isConnected = await Internet.IsAvailableAsync();
-}
-

IsAvailableAsync(url)

Definition

Checks if a connection to the Internet is available. Returns a bool value.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlThe page where to check if Internet is available.

Usage

c#
using PeyrSharp.Core;
+}

IsAvailableAsync(url)

Definition

Checks if a connection to the Internet is available. Returns a bool value.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlThe page where to check if Internet is available.

Usage

c#
using PeyrSharp.Core;
 
 public static async void Main()
 {
     bool isConnected = await Internet.IsAvailableAsync("https://google.com");
-}
-

GetStatusCodeAsync(url)

Definition

Gets the status code of a specific page by making a request to it. Returns the status code as an int value.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlThe URL where to send the request.

Usage

c#
using PeyrSharp.Core;
+}

GetStatusCodeAsync(url)

Definition

Gets the status code of a specific page by making a request to it. Returns the status code as an int value.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlThe URL where to send the request.

Usage

c#
using PeyrSharp.Core;
 
 public static async void Main()
 {
     int status = await Internet.GetStatusCodeAsync("https://google.com");
     // status should be 200 if everything is working
-}
-

GetStatusDescriptionAsync(url)

Definition

Gets the status description of a specific page by making a request to it. Returns the status description as a string.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlThe URL where to send the request.

Usage

c#
using PeyrSharp.Core;
+}

GetStatusDescriptionAsync(url)

Definition

Gets the status description of a specific page by making a request to it. Returns the status description as a string.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlThe URL where to send the request.

Usage

c#
using PeyrSharp.Core;
 
 public static async void Main()
 {
     string status = await Internet.GetStatusDescriptionAsync("https://google.com");
     // status should be OK if everything is working
-}
-

GetStatusCodeType(statusCode)

Definition

Gets the type of the status code. Returns a StatusCodes value.

Arguments

TypeNameMeaning
intstatusCodeThe status code to analyze.

Usage

c#
using PeyrSharp.Core;
+}

GetStatusInfoAsync(url)

Definition

This method sends an HTTP GET request to a given URL and returns a Task of StatusInfo object that contains the status code, description, and type of the URL. The HTTP request method used is HttpClient.GetAsync().

Arguments

TypeNameMeaning
stringurlThe URL to get the status info from.

Returns

A Task of StatusInfo object containing the status code, description, and type of the URL.

Usage

c#
using PeyrSharp.Core;
+
+StatusInfo statusInfo = await Internet.GetStatusInfoAsync("https://www.google.com");

GetStatusCodeType(statusCode)

Definition

Gets the type of the status code. Returns a StatusCodes value.

Arguments

TypeNameMeaning
intstatusCodeThe status code to analyze.

Usage

c#
using PeyrSharp.Core;
 using PeyrSharp.Enums;
 
 public static async void Main()
@@ -65,18 +63,15 @@
             Console.WriteLine("An server error status code has been returned.");
             break;
     }
-}
-

GetUrlProtocol(url)

Definition

Gets the protocol of a specified URL. Returns a string.

Arguments

TypeNameMeaning
stringurlThe URL where to parse.

WARNING

If you provide an invalid URL, the result might be wrong or be something unexpected. An IndexOutOfRangeException can also be thrown.

Usage

c#
using PeyrSharp.Core;
+}

GetUrlProtocol(url)

Definition

Gets the protocol of a specified URL. Returns a string.

Arguments

TypeNameMeaning
stringurlThe URL where to parse.

WARNING

If you provide an invalid URL, the result might be wrong or be something unexpected. An IndexOutOfRangeException can also be thrown.

Usage

c#
using PeyrSharp.Core;
 
 string protocol = Internet.GetUrlProtocol("https://leocorporation.dev");
-// protocol = https
-

IsUrlValid(url)

Definition

Checks if a URL is valid or not.. Returns a bool.

Arguments

TypeNameMeaning
stringurlThe URL where to check.

INFO

If you haven't specified the protocol in the URL (ex: "https://"), the "https://" string will automatically be appended to the original URL. To avoid this behavior, please specify a full URL to preserve the original protocol.

Usage

c#
using PeyrSharp.Core;
+// protocol = https

IsUrlValid(url)

Definition

Checks if a URL is valid or not.. Returns a bool.

Arguments

TypeNameMeaning
stringurlThe URL where to check.

INFO

If you haven't specified the protocol in the URL (ex: "https://"), the "https://" string will automatically be appended to the original URL. To avoid this behavior, please specify a full URL to preserve the original protocol.

Usage

c#
using PeyrSharp.Core;
 
 bool valid = Internet.GetUrlProtocol("a/test");
-// valid = false
-

Released under the MIT License.

- +// valid = false

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths.html b/docs/core/maths.html index 5bb26c6..e719ad8 100644 --- a/docs/core/maths.html +++ b/docs/core/maths.html @@ -5,19 +5,19 @@ Maths | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Maths

This page is about the Maths namespace available in PeyrSharp.Core. You can find here all of its classes.

Compatibility

The Maths namespace is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Classes

Released under the MIT License.

- +
Skip to content
On this page

Maths

This page is about the Maths namespace available in PeyrSharp.Core. You can find here all of its classes.

Compatibility

The Maths namespace is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Classes

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/algebra.html b/docs/core/maths/algebra.html index 8fdae2e..f50a5e0 100644 --- a/docs/core/maths/algebra.html +++ b/docs/core/maths/algebra.html @@ -5,17 +5,17 @@ Algebra | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Algebra

This page is about the Algebra class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Algebra class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

Sum(numbers) (double)

Definition

Returns the sum of specified double numbers. It returns a double value.

Arguments

TypeNameMeaning
params double[]numbersThe numbers to do the sum of.

Usage

c#
using PeyrSharp.Core.Maths;
+    
Skip to content
On this page

Algebra

This page is about the Algebra class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Algebra class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

Sum(numbers) (double)

Definition

Returns the sum of specified double numbers. It returns a double value.

Arguments

TypeNameMeaning
params double[]numbersThe numbers to do the sum of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 // Usage 1
 double sum = Algebra.Sum(12, 1.5, 45, 2.2);
@@ -25,8 +25,7 @@
 double[] numbers = new double[] { 1, 2, 3 };
 
 double sum2 = Algebra.Sum(numbers);
-// sum = 6
-

Sum(numbers) (int)

Definition

Returns the sum of specified int numbers. It returns a int value.

Arguments

TypeNameMeaning
params int[]numbersThe numbers to do the sum of.

Usage

c#
using PeyrSharp.Core.Maths;
+// sum = 6

Sum(numbers) (int)

Definition

Returns the sum of specified int numbers. It returns a int value.

Arguments

TypeNameMeaning
params int[]numbersThe numbers to do the sum of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 // Usage 1
 int sum = Algebra.Sum(12, 15, 45, 2);
@@ -36,34 +35,27 @@
 int[] numbers = new int[] { 1, 2, 3 };
 
 int sum2 = Algebra.Sum(numbers);
-// sum = 6
-

IsInt(number)

Definition

Returns true if a specified double is an integer. It returns a bool value.

Arguments

TypeNameMeaning
doublenumberThe number to check.

Usage

c#
using PeyrSharp.Core.Maths;
+// sum = 6

IsInt(number)

Definition

Returns true if a specified double is an integer. It returns a bool value.

Arguments

TypeNameMeaning
doublenumberThe number to check.

Usage

c#
using PeyrSharp.Core.Maths;
 
 bool isInt = Algebra.IsInt(12.0);
-// isInt = true
-

GetOpposite(number)

Definition

Gets the opposite of a double number. It returns a double value.

Arguments

TypeNameMeaning
doublenumberThe number to get the opposite of.

Usage

c#
using PeyrSharp.Core.Maths;
+// isInt = true

GetOpposite(number)

Definition

Gets the opposite of a double number. It returns a double value.

Arguments

TypeNameMeaning
doublenumberThe number to get the opposite of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 double opposite = Algebra.Opposite(7);
-// opposite = -7
-

Factorial(number)

Definition

Gets the factorial of an int number. It returns an int.

Arguments

TypeNameMeaning
intnumberThe number to get the factorial of.

Usage

c#
using PeyrSharp.Core.Maths;
+// opposite = -7

Factorial(number)

Definition

Gets the factorial of an int number. It returns an int.

Arguments

TypeNameMeaning
intnumberThe number to get the factorial of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 int factorial = Algebra.Factorial(5);
-// factorial = 120
-

PositiveOf(number)

Definition

Gets the positive of a double number. It returns a double value.

Arguments

TypeNameMeaning
doublenumberThe number to get the positive of.

Usage

c#
using PeyrSharp.Core.Maths;
+// factorial = 120

PositiveOf(number)

Definition

Gets the positive of a double number. It returns a double value.

Arguments

TypeNameMeaning
doublenumberThe number to get the positive of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 double pos = Algebra.PositiveOf(-7);
-// pos = 7
-

NegativeOf(number)

Definition

Gets the negative of a double number. It returns a double value.

Arguments

TypeNameMeaning
doublenumberThe number to get the negative of.

Usage

c#
using PeyrSharp.Core.Maths;
+// pos = 7

NegativeOf(number)

Definition

Gets the negative of a double number. It returns a double value.

Arguments

TypeNameMeaning
doublenumberThe number to get the negative of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 double negative = Algebra.NegativeOf(7);
-// negative = -7
-

GetResultsOf(function, numbers)

Definition

Gets the results of a function applied to specific double numbers. It returns an array of double[].

Arguments

TypeNameMeaning
Func<double, double>functionThe function to apply to all numbers. It must return a double and take a double as an argument.
params double[]numbersThe numbers to get the results of.

Usage

c#
using PeyrSharp.Core.Maths;
+// negative = -7

GetResultsOf(function, numbers)

Definition

Gets the results of a function applied to specific double numbers. It returns an array of double[].

Arguments

TypeNameMeaning
Func<double, double>functionThe function to apply to all numbers. It must return a double and take a double as an argument.
params double[]numbersThe numbers to get the results of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 double res = Algebra.GetResultsOf(x => x * x, 1, 2, 3, 4);
-// res = double[] { 1, 4, 9, 16 }
-

Released under the MIT License.

- +// res = double[] { 1, 4, 9, 16 }

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/geometry.html b/docs/core/maths/geometry.html index abff577..8df2bb5 100644 --- a/docs/core/maths/geometry.html +++ b/docs/core/maths/geometry.html @@ -5,19 +5,19 @@ Geometry | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Geometry

This page is about the Geometry namespace available in PeyrSharp.Core.Maths. This namespace includes several classes to get and calculates various aspects of different shapes, like the area, perimeter, volume and more.

Compatibility

The namespace is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Classes

Released under the MIT License.

- +
Skip to content
On this page

Geometry

This page is about the Geometry namespace available in PeyrSharp.Core.Maths. This namespace includes several classes to get and calculates various aspects of different shapes, like the area, perimeter, volume and more.

Compatibility

The namespace is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Classes

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/geometry/circle.html b/docs/core/maths/geometry/circle.html index 55f8756..88906b6 100644 --- a/docs/core/maths/geometry/circle.html +++ b/docs/core/maths/geometry/circle.html @@ -5,36 +5,31 @@ Circle | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Circle

This page is about the Circle class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Circle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Circle(radius)

Definition

Initializes a Circle class from a specific radius.

Arguments

TypeNameMeaning
doubleradiusThe radius of the circle.

WARNING

If radius ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+    
Skip to content
On this page

Circle

This page is about the Circle class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Circle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Circle(radius)

Definition

Initializes a Circle class from a specific radius.

Arguments

TypeNameMeaning
doubleradiusThe radius of the circle.

WARNING

If radius ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Circle circle = new(10); // Creates a circle with a radius of 10
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the circle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Circle circle = new(10); // Creates a circle with a radius of 10

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the circle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Circle circle = new(10);
 
 var area = circle.Area;
-// area = 314.1592653589793
-

Perimeter

Definition

c#
public double Perimeter { get; }
-

The Perimeter property is a double which returns the perimeter of the circle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// area = 314.1592653589793

Perimeter

Definition

c#
public double Perimeter { get; }

The Perimeter property is a double which returns the perimeter of the circle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Circle circle = new(10);
 
 var perimeter = circle.Perimeter;
-// perimeter = 62.83185307179586
-

Released under the MIT License.

- +// perimeter = 62.83185307179586

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/geometry/cone.html b/docs/core/maths/geometry/cone.html index 653665e..a3a1555 100644 --- a/docs/core/maths/geometry/cone.html +++ b/docs/core/maths/geometry/cone.html @@ -5,43 +5,36 @@ Cone | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Cone

This page is about the Cone class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Cone class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Cone(radius, height)

Definition

Initializes a Cone class from a specific radius and height.

Arguments

TypeNameMeaning
doubleradiusThe radius of the cone.
doubleheightThe height of the cone.

WARNING

If radius or height ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+    
Skip to content
On this page

Cone

This page is about the Cone class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Cone class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Cone(radius, height)

Definition

Initializes a Cone class from a specific radius and height.

Arguments

TypeNameMeaning
doubleradiusThe radius of the cone.
doubleheightThe height of the cone.

WARNING

If radius or height ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Cone cone = new(10, 20); // Creates a cone with a radius of 10, and a height of 20
-

Properties

Volume

Definition

c#
public double Volume { get; }
-

The Volume property is a double which returns the volume of the cone. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Cone cone = new(10, 20); // Creates a cone with a radius of 10, and a height of 20

Properties

Volume

Definition

c#
public double Volume { get; }

The Volume property is a double which returns the volume of the cone. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cone cone = new(10, 20);
 
 var volume = cone.Volume;
-// volume = 2094.3951023931954
-

Radius

Definition

c#
public double Radius { get; init; }
-

The Radius property is a double which returns the radius of the cone, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// volume = 2094.3951023931954

Radius

Definition

c#
public double Radius { get; init; }

The Radius property is a double which returns the radius of the cone, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cone cone = new(15, 20);
 
 var radius = cone.Radius;
-// radius = 15
-

Height

Definition

c#
public double Height { get; init; }
-

The Height property is a double which returns the height of the cone, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// radius = 15

Height

Definition

c#
public double Height { get; init; }

The Height property is a double which returns the height of the cone, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Circle cone = new(10, 40);
 
 var height = cone.Height;
-// height = 40
-

Released under the MIT License.

- +// height = 40

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/geometry/cube.html b/docs/core/maths/geometry/cube.html index 81a46a5..10cd6b2 100644 --- a/docs/core/maths/geometry/cube.html +++ b/docs/core/maths/geometry/cube.html @@ -5,74 +5,58 @@ Cube | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Cube

This page is about the Cube class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Cube class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Cube(side)

Definition

Initializes a Cube class from the length of the side of the cube.

Arguments

TypeNameMeaning
doublesideThe length of the side of the cube.

WARNING

If side ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+    
Skip to content
On this page

Cube

This page is about the Cube class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Cube class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Cube(side)

Definition

Initializes a Cube class from the length of the side of the cube.

Arguments

TypeNameMeaning
doublesideThe length of the side of the cube.

WARNING

If side ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Cube cube = new(10); // Creates a 10x10x10 cube
-

Cube(width, length, height)

Definition

Initializes a Cube class from the width, the length and the height of the cuboidal.

Arguments

TypeNameMeaning
doublewidthThe width of the cuboidal.
doublelengthThe length of the cuboidal.
doubleheightThe height of the cuboidal.

WARNING

If width, length or height ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Cube cube = new(10); // Creates a 10x10x10 cube

Cube(width, length, height)

Definition

Initializes a Cube class from the width, the length and the height of the cuboidal.

Arguments

TypeNameMeaning
doublewidthThe width of the cuboidal.
doublelengthThe length of the cuboidal.
doubleheightThe height of the cuboidal.

WARNING

If width, length or height ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Cube cube = new(10, 20, 10); // Creates a 10x20x10 cuboidal
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Cube cube = new(10, 20, 10); // Creates a 10x20x10 cuboidal

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cube cube = new(10);
 
 var area = cube.Area;
-// area = 100
-

Edge

Definition

c#
public double Edge { get; }
-

The Edge property is a double which returns the edge of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// area = 100

Edge

Definition

c#
public double Edge { get; }

The Edge property is a double which returns the edge of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cube cube = new(10);
 
 var edge = cube.Edge;
-// edge = 7.0710678118654755
-

Length

Definition

c#
public double Length { get; init; }
-

The Length property is a double which returns the length of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// edge = 7.0710678118654755

Length

Definition

c#
public double Length { get; init; }

The Length property is a double which returns the length of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cube cube = new(10);
 
 var length = cube.Length;
-// length = 10
-

Height

Definition

c#
public double Height { get; init; }
-

The Height property is a double which returns the height of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// length = 10

Height

Definition

c#
public double Height { get; init; }

The Height property is a double which returns the height of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cube cube = new(10);
 
 var height = cube.Height;
-// height = 10
-

Side

Definition

c#
public double? Side { get; init; }
-

The Side property is a double? which returns the length of the side of the cube. You can only get this property.

WARNING

This property can be null if not initialized with Cube(side).

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// height = 10

Side

Definition

c#
public double? Side { get; init; }

The Side property is a double? which returns the length of the side of the cube. You can only get this property.

WARNING

This property can be null if not initialized with Cube(side).

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cube cube = new(10);
 
 var side = cube.Side ?? 0;
-// side = 10
-

Volume

Definition

c#
public double Volume { get; }
-

The Volume property is a double which returns the volume of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// side = 10

Volume

Definition

c#
public double Volume { get; }

The Volume property is a double which returns the volume of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cube cube = new(10);
 
 var volume = cube.Volume; // 10^3
-// volume = 1000
-

Width

Definition

c#
public double Width { get; init; }
-

The Width property is a double which returns the width of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// volume = 1000

Width

Definition

c#
public double Width { get; init; }

The Width property is a double which returns the width of the cube. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cube cube = new(10);
 
 var width = cube.Width;
-// width = 10
-

Released under the MIT License.

- +// width = 10

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/geometry/cylinder.html b/docs/core/maths/geometry/cylinder.html index d1e3c6d..c6de9cd 100644 --- a/docs/core/maths/geometry/cylinder.html +++ b/docs/core/maths/geometry/cylinder.html @@ -5,50 +5,41 @@ Cylinder | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Cylinder

This page is about the Cylinder class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Cylinder class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Cylinder(radius, height)

Definition

Initializes a Cylinder class from a specific radius and height.

Arguments

TypeNameMeaning
doubleradiusThe radius of the cylinder.
doubleheightThe height of the cylinder.

WARNING

If radius or height ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+    
Skip to content
On this page

Cylinder

This page is about the Cylinder class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Cylinder class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Cylinder(radius, height)

Definition

Initializes a Cylinder class from a specific radius and height.

Arguments

TypeNameMeaning
doubleradiusThe radius of the cylinder.
doubleheightThe height of the cylinder.

WARNING

If radius or height ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Cylinder cylinder = new(20, 10); // Creates a cylinder with a radius of 20, and a height of 10
-

Properties

Volume

Definition

c#
public double Volume { get; }
-

The Volume property is a double which returns the volume of the cylinder. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Cylinder cylinder = new(20, 10); // Creates a cylinder with a radius of 20, and a height of 10

Properties

Volume

Definition

c#
public double Volume { get; }

The Volume property is a double which returns the volume of the cylinder. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cylinder cylinder = new(10, 20);
 
 var volume = cylinder.Volume;
-// volume = 6283.185307179587
-

BaseArea

Definition

c#
public double BaseArea { get; }
-

The BaseArea property is a double which returns the area of the circle, which is the base of the cylinder. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// volume = 6283.185307179587

BaseArea

Definition

c#
public double BaseArea { get; }

The BaseArea property is a double which returns the area of the circle, which is the base of the cylinder. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cylinder cylinder = new(10, 20);
 
 var baseArea = cylinder.BaseArea;
-// baseArea = 314.1592653589793
-

Radius

Definition

c#
public double Radius { get; init; }
-

The Radius property is a double which returns the radius of the cylinder, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// baseArea = 314.1592653589793

Radius

Definition

c#
public double Radius { get; init; }

The Radius property is a double which returns the radius of the cylinder, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cylinder cylinder = new(15, 20);
 
 var radius = cylinder.Radius;
-// radius = 15
-

Height

Definition

c#
public double Height { get; init; }
-

The Height property is a double which returns the height of the cylinder, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// radius = 15

Height

Definition

c#
public double Height { get; init; }

The Height property is a double which returns the height of the cylinder, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Cylinder cylinder = new(10, 40);
 
 var height = cylinder.Height;
-// height = 40
-

Released under the MIT License.

- +// height = 40

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/geometry/diamond.html b/docs/core/maths/geometry/diamond.html index ae3b5f7..02f1766 100644 --- a/docs/core/maths/geometry/diamond.html +++ b/docs/core/maths/geometry/diamond.html @@ -5,54 +5,44 @@ Diamond | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Diamond

This page is about the Diamond class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Diamond class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Diamond(side)

Definition

Initializes a Diamond class from the length of its side.

Arguments

TypeNameMeaning
doublesideThe length of the side.

WARNING

If side ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+    
Skip to content
On this page

Diamond

This page is about the Diamond class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Diamond class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Diamond(side)

Definition

Initializes a Diamond class from the length of its side.

Arguments

TypeNameMeaning
doublesideThe length of the side.

WARNING

If side ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Diamond diamond = new(5); // Creates a diamond where all the sides equals to 5.
-

Diamond(diagonal1, diagonal2)

Definition

Initializes a Diamond class from the length of its diagonals.

Arguments

TypeNameMeaning
doublediagonal1The length of the first diagonal.
doublediagonal2The side of the second diagonal.

WARNING

If diagonal1 or diagonal2 ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Diamond diamond = new(5); // Creates a diamond where all the sides equals to 5.

Diamond(diagonal1, diagonal2)

Definition

Initializes a Diamond class from the length of its diagonals.

Arguments

TypeNameMeaning
doublediagonal1The length of the first diagonal.
doublediagonal2The side of the second diagonal.

WARNING

If diagonal1 or diagonal2 ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 // Creates a diamond where the first diagonal is equal to 5, and the second one is equal to 10.
-Diamond diamond = new(5, 10); 
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the diamond. You can only get this property.

WARNING

This property can be null or can return 0 if not initialized with Diamond(diagonal1, diagonal2).

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Diamond diamond = new(5, 10);

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the diamond. You can only get this property.

WARNING

This property can be null or can return 0 if not initialized with Diamond(diagonal1, diagonal2).

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Diamond diamond = new(5, 10);
 
 var area = diamond.Area;
-// area = 100
-

Perimeter

Definition

c#
public double Perimeter { get; }
-

The Perimeter property is a double which returns the perimeter of the diamond. You can only get this property.

WARNING

This property can be null or can return 0 if not initialized with Diamond(side).

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// area = 100

Perimeter

Definition

c#
public double Perimeter { get; }

The Perimeter property is a double which returns the perimeter of the diamond. You can only get this property.

WARNING

This property can be null or can return 0 if not initialized with Diamond(side).

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Diamond diamond = new(10);
 
 var perimeter = diamond.Perimeter;
-// perimeter = 40
-

Side

Definition

c#
public double Side { get; init; }
-

The Side property is a double which returns the length of sides of the diamond, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// perimeter = 40

Side

Definition

c#
public double Side { get; init; }

The Side property is a double which returns the length of sides of the diamond, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Diamond diamond = new(10);
 
 var side = diamond.Side;
-// side = 10
-

Diagonals

Definition

c#
public double[] Diagonals { get; init; }
-

The Side property is a double[] array which returns the diagonals of the diamond, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// side = 10

Diagonals

Definition

c#
public double[] Diagonals { get; init; }

The Side property is a double[] array which returns the diagonals of the diamond, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Diamond diamond = new(10, 14);
 
 var side = diamond.Diagonals;
-// side = { 10, 14 }
-

Released under the MIT License.

- +// side = { 10, 14 }

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/geometry/hexagon.html b/docs/core/maths/geometry/hexagon.html index 7a75992..1449ad0 100644 --- a/docs/core/maths/geometry/hexagon.html +++ b/docs/core/maths/geometry/hexagon.html @@ -5,42 +5,35 @@ Hexagon | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Hexagon

This page is about the Hexagon class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Hexagon class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Hexagon(side)

Definition

Initializes a Hexagon class from the length of its side.

Arguments

TypeNameMeaning
doublesideThe length of the side of the hexagon.

WARNING

If side ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+    
Skip to content
On this page

Hexagon

This page is about the Hexagon class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Hexagon class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Hexagon(side)

Definition

Initializes a Hexagon class from the length of its side.

Arguments

TypeNameMeaning
doublesideThe length of the side of the hexagon.

WARNING

If side ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Hexagon hexagon = new(12); // Creates a hexagon with a length of 12
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the hexagon. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Hexagon hexagon = new(12); // Creates a hexagon with a length of 12

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the hexagon. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Hexagon hexagon = new(12);
 
 var area = hexagon.Area;
-// area = 374.1229744348775
-

Perimeter

Definition

c#
public double Perimeter { get; }
-

The Perimeter property is a double which returns the perimeter of the hexagon. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// area = 374.1229744348775

Perimeter

Definition

c#
public double Perimeter { get; }

The Perimeter property is a double which returns the perimeter of the hexagon. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Hexagon hexagon = new(12);
 
 var perimeter = hexagon.Perimeter;
-// perimeter = 72
-

Side

Definition

c#
public double Side { get; init; }
-

The Side property is a double which returns the length of the side of the hexagon. You can only get this property

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// perimeter = 72

Side

Definition

c#
public double Side { get; init; }

The Side property is a double which returns the length of the side of the hexagon. You can only get this property

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Hexagon hexagon = new(10);
 
-var side = hexagon.Side; // side = 10
-

Released under the MIT License.

- +var side = hexagon.Side; // side = 10

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/geometry/pyramid.html b/docs/core/maths/geometry/pyramid.html index 13aca7a..a5d61cf 100644 --- a/docs/core/maths/geometry/pyramid.html +++ b/docs/core/maths/geometry/pyramid.html @@ -5,80 +5,62 @@ Pyramid | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Pyramid

This page is about the Pyramid class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors, methods and properties.

Compatibility

The Pyramid class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Pyramid(width, length, height)

Definition

Initializes a Pyramid class from a specific width, length, and height.

Arguments

TypeNameMeaning
doublewidthThe width of the pyramid.
doublelengthThe length of the pyramid.
doubleheightThe height of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+    
Skip to content
On this page

Pyramid

This page is about the Pyramid class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors, methods and properties.

Compatibility

The Pyramid class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Pyramid(width, length, height)

Definition

Initializes a Pyramid class from a specific width, length, and height.

Arguments

TypeNameMeaning
doublewidthThe width of the pyramid.
doublelengthThe length of the pyramid.
doubleheightThe height of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Pyramid pyramid = new(12, 10, 15); // Creates a pyramid with a width of 12, a length of 10, and a height of 15
-

Methods

FromVolumeAndSize(volume, width, length)

Definition

Initializes a Pyramid class from a specific volume, width, and length.

Arguments

TypeNameMeaning
doublevolumeThe volume of the pyramid.
doublewidthThe width of the pyramid.
doublelengthThe length of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Pyramid pyramid = new(12, 10, 15); // Creates a pyramid with a width of 12, a length of 10, and a height of 15

Methods

FromVolumeAndSize(volume, width, length)

Definition

Initializes a Pyramid class from a specific volume, width, and length.

Arguments

TypeNameMeaning
doublevolumeThe volume of the pyramid.
doublewidthThe width of the pyramid.
doublelengthThe length of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Pyramid pyramid = Pyramid.FromVolumeAndSize(100, 10, 10);
-

FromAreaAndLength(area, length, height)

Definition

Initializes a Pyramid class from a specific area, length, and height.

Arguments

TypeNameMeaning
doubleareaThe area of the pyramid.
doublelengthThe length of the pyramid.
doubleheightThe height of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Pyramid pyramid = Pyramid.FromVolumeAndSize(100, 10, 10);

FromAreaAndLength(area, length, height)

Definition

Initializes a Pyramid class from a specific area, length, and height.

Arguments

TypeNameMeaning
doubleareaThe area of the pyramid.
doublelengthThe length of the pyramid.
doubleheightThe height of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Pyramid pyramid = Pyramid.FromAreaAndLength(100, 10, 15);
-

FromAreaAndWidth(area, width, height)

Definition

Initializes a Pyramid class from a specific volume, width, and length.

Arguments

TypeNameMeaning
doubleareaThe area of the pyramid.
doublewidthThe width of the pyramid.
doubleheightThe height of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Pyramid pyramid = Pyramid.FromAreaAndLength(100, 10, 15);

FromAreaAndWidth(area, width, height)

Definition

Initializes a Pyramid class from a specific volume, width, and length.

Arguments

TypeNameMeaning
doubleareaThe area of the pyramid.
doublewidthThe width of the pyramid.
doubleheightThe height of the pyramid.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Pyramid pyramid = Pyramid.FromVolumeAndSize(100, 10, 10);
-

Properties

AreaBase

Definition

c#
public double AreaBase { get; }
-

The AreaBase property is a double which returns the area of the pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Pyramid pyramid = Pyramid.FromVolumeAndSize(100, 10, 10);

Properties

AreaBase

Definition

c#
public double AreaBase { get; }

The AreaBase property is a double which returns the area of the pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Pyramid pyramid = new(12, 10, 15);
 
 var area = pyramid.AreaBase;
-// area = 120
-

Volume

Definition

c#
public double AreaBase { get; }
-

The Volume property is a double which returns the volume of the pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// area = 120

Volume

Definition

c#
public double AreaBase { get; }

The Volume property is a double which returns the volume of the pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Pyramid pyramid = new(12, 10, 15);
 
 var volume = pyramid.Volume;
-// volume = 600
-

LengthBase

Definition

c#
public double LengthBase { get; }
-

The LengthBase property is a double which returns the length of the base of pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// volume = 600

LengthBase

Definition

c#
public double LengthBase { get; }

The LengthBase property is a double which returns the length of the base of pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Pyramid pyramid = new(12, 10, 15);
 
 var length = pyramid.LengthBase;
-// length = 10
-

WidthBase

Definition

c#
public double WidthBase { get; }
-

The WidthBase property is a double which returns the width of the base of pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// length = 10

WidthBase

Definition

c#
public double WidthBase { get; }

The WidthBase property is a double which returns the width of the base of pyramid. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Pyramid pyramid = new(12, 10, 15);
 
 var width = pyramid.WidthBase;
-// width = 12
-

Width

Definition

c#
public double Width { get; init; }
-

The Width property is a double which returns the width of the pyramid, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// width = 12

Width

Definition

c#
public double Width { get; init; }

The Width property is a double which returns the width of the pyramid, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Pyramid pyramid = new(10, 20, 30);
 
 var width = pyramid.Width;
-// width = 10
-

Length

Definition

c#
public double Length { get; init; }
-

The Length property is a double which returns the length of the pyramid, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// width = 10

Length

Definition

c#
public double Length { get; init; }

The Length property is a double which returns the length of the pyramid, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Pyramid pyramid = new(10, 20, 30);
 
 var length = pyramid.Length;
-// length = 20
-

Height

Definition

c#
public double Height { get; init; }
-

The Height property is a double which returns the height of the pyramid, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// length = 20

Height

Definition

c#
public double Height { get; init; }

The Height property is a double which returns the height of the pyramid, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Pyramid pyramid = new(10, 20, 30);
 
 var height = pyramid.Height;
-// height = 30
-

Released under the MIT License.

- +// height = 30

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/geometry/rectangle.html b/docs/core/maths/geometry/rectangle.html index 0288364..2b60845 100644 --- a/docs/core/maths/geometry/rectangle.html +++ b/docs/core/maths/geometry/rectangle.html @@ -5,57 +5,46 @@ Rectangle | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Rectangle

This page is about the Rectangle class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Rectangle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Rectangle(width, length)

Definition

Initializes a Rectangle class from a specific length and width.

Arguments

TypeNameMeaning
doublewidthThe width of the rectangle.
doublelengthThe length of the rectangle.

WARNING

If width or length ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+    
Skip to content
On this page

Rectangle

This page is about the Rectangle class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Rectangle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Rectangle(width, length)

Definition

Initializes a Rectangle class from a specific length and width.

Arguments

TypeNameMeaning
doublewidthThe width of the rectangle.
doublelengthThe length of the rectangle.

WARNING

If width or length ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Rectangle rectangle = new(10, 20); // Creates a 10x20 rectangle
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the rectangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Rectangle rectangle = new(10, 20); // Creates a 10x20 rectangle

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the rectangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Rectangle rectangle = new(10, 15);
 
 var area = rectangle.Area;
-// area = 150
-

Perimeter

Definition

c#
public double Perimeter { get; }
-

The Perimeter property is a double which returns the perimeter of the rectangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// area = 150

Perimeter

Definition

c#
public double Perimeter { get; }

The Perimeter property is a double which returns the perimeter of the rectangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Rectangle rectangle = new(10, 15);
 
 var perimeter = rectangle.Perimeter;
-// perimeter = 50
-

Diagonal

Definition

c#
public double Diagonal { get; }
-

The Diagonal property is a double which returns the length of the diagonal of the rectangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// perimeter = 50

Diagonal

Definition

c#
public double Diagonal { get; }

The Diagonal property is a double which returns the length of the diagonal of the rectangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Rectangle rectangle = new(10, 15);
 
 var diagonal = rectangle.Diagonal;
-// diagonal = 18.027756377319946
-

Width

Definition

c#
public double Width { get; init; }
-

The Width property is a double which returns the width of the rectangle, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// diagonal = 18.027756377319946

Width

Definition

c#
public double Width { get; init; }

The Width property is a double which returns the width of the rectangle, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Rectangle rectangle = new(10, 20);
 
 var width = rectangle.Width;
-// width = 10
-

Length

Definition

c#
public double Length { get; init; }
-

The Length property is a double which returns the length of the rectangle, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// width = 10

Length

Definition

c#
public double Length { get; init; }

The Length property is a double which returns the length of the rectangle, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Rectangle rectangle = new(10, 20);
 
 var length = rectangle.Length;
-// length = 20
-

Released under the MIT License.

- +// length = 20

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/geometry/sphere.html b/docs/core/maths/geometry/sphere.html index 327a5ea..5667b3c 100644 --- a/docs/core/maths/geometry/sphere.html +++ b/docs/core/maths/geometry/sphere.html @@ -5,43 +5,36 @@ Sphere | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Sphere

This page is about the Sphere class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Sphere class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Sphere(radius)

Definition

Initializes a Sphere class from a specific radius.

Arguments

TypeNameMeaning
doubleradiusThe radius of the sphere.

WARNING

If radius ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+    
Skip to content
On this page

Sphere

This page is about the Sphere class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Sphere class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Sphere(radius)

Definition

Initializes a Sphere class from a specific radius.

Arguments

TypeNameMeaning
doubleradiusThe radius of the sphere.

WARNING

If radius ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Sphere sphere = new(10); // Creates a sphere with a radius of 10
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the sphere. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Sphere sphere = new(10); // Creates a sphere with a radius of 10

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the sphere. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Sphere sphere = new(10);
 
 var area = sphere.Area;
-// area = 1256.6370614359173
-

Volume

Definition

c#
public double Volume { get; }
-

The Volume property is a double which returns the volume of the sphere. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// area = 1256.6370614359173

Volume

Definition

c#
public double Volume { get; }

The Volume property is a double which returns the volume of the sphere. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Sphere sphere = new(10);
 
 var volume = sphere.Volume;
-// volume = 2356.194490192345
-

Radius

Definition

c#
public double Radius { get; init; }
-

The Radius property is a double which returns the radius of the sphere, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// volume = 2356.194490192345

Radius

Definition

c#
public double Radius { get; init; }

The Radius property is a double which returns the radius of the sphere, which was defined when initializing it. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Sphere sphere = new(10);
 
 var radius = sphere.Radius;
-// radius = 10
-

Released under the MIT License.

- +// radius = 10

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/geometry/triangle.html b/docs/core/maths/geometry/triangle.html index c485c48..7caedd2 100644 --- a/docs/core/maths/geometry/triangle.html +++ b/docs/core/maths/geometry/triangle.html @@ -5,96 +5,74 @@ Triangle | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Triangle

This page is about the Triangle class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Triangle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Triangle(side1, side2, side3)

Definition

Initializes a Triangle class from the length of its sides.

Arguments

TypeNameMeaning
doubleside1The length of the first side of the triangle.
doubleside2The length of the second side of the triangle.
doubleside3The length of the third side of the triangle.

WARNING

If side1, side2, or side3 ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+    
Skip to content
On this page

Triangle

This page is about the Triangle class available in PeyrSharp.Core.Maths.Geometry. You can find here all of its constructors and properties.

Compatibility

The Triangle class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Constructors

Triangle(side1, side2, side3)

Definition

Initializes a Triangle class from the length of its sides.

Arguments

TypeNameMeaning
doubleside1The length of the first side of the triangle.
doubleside2The length of the second side of the triangle.
doubleside3The length of the third side of the triangle.

WARNING

If side1, side2, or side3 ≤ 0, a DivideByZeroException will be thrown.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Triangle triangle = new(10, 20, 10); // Creates a triangle
-

Triangle(width, height)

Definition

Initializes a Triangle class from a width and height.

Arguments

TypeNameMeaning
doublewidthThe width of the triangle.
doubleheightThe height of the triangle.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Triangle triangle = new(10, 20, 10); // Creates a triangle

Triangle(width, height)

Definition

Initializes a Triangle class from a width and height.

Arguments

TypeNameMeaning
doublewidthThe width of the triangle.
doubleheightThe height of the triangle.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
-Triangle triangle = new(10, 20); // Creates a triangle with a width of 10 and a height of 20
-

Properties

Area

Definition

c#
public double Area { get; }
-

The Area property is a double which returns the area of the triangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+Triangle triangle = new(10, 20); // Creates a triangle with a width of 10 and a height of 20

Properties

Area

Definition

c#
public double Area { get; }

The Area property is a double which returns the area of the triangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Triangle triangle = new(10, 20);
 
 var area = triangle.Area;
-// area = 100
-

Perimeter

Definition

c#
public double Perimeter { get; }
-

The Perimeter property is a double which returns the perimeter of the triangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// area = 100

Perimeter

Definition

c#
public double Perimeter { get; }

The Perimeter property is a double which returns the perimeter of the triangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Triangle triangle = new(10, 10, 20);
 
 var perimeter = triangle.Perimeter;
-// perimeter = 40
-

Hypotenuse

Definition

c#
public double Hypotenuse { get; }
-

The Hypotenuse property is a double which returns the hypotenuse of the triangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// perimeter = 40

Hypotenuse

Definition

c#
public double Hypotenuse { get; }

The Hypotenuse property is a double which returns the hypotenuse of the triangle. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 // Assuming the triangle is right
 Triangle triangle = new(3, 4, 5);
 
 var hypotenuse = triangle.Hypotenuse;
-// hypotenuse = 5
-

IsRight

Definition

c#
public bool IsRight { get; }
-

The IsRight property is a bool which returns true if the triangle is right. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// hypotenuse = 5

IsRight

Definition

c#
public bool IsRight { get; }

The IsRight property is a bool which returns true if the triangle is right. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Triangle triangle = new(3, 4, 5);
 
 var right = triangle.IsRight;
-// right = true
-

CanBeBuilt

Definition

c#
public bool CanBeBuilt { get; }
-

The CanBeBuilt property is a bool which returns true if the triangle can be built. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// right = true

CanBeBuilt

Definition

c#
public bool CanBeBuilt { get; }

The CanBeBuilt property is a bool which returns true if the triangle can be built. You can only get this property.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Triangle triangle = new(3, 4, 10);
 
 var canBeBuilt = triangle.CanBeBuilt;
-// canBeBuilt = false
-

Width

Definition

c#
public double Width { get; init; }
-

The Width property is a double which returns the width of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(width, height) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// canBeBuilt = false

Width

Definition

c#
public double Width { get; init; }

The Width property is a double which returns the width of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(width, height) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Triangle triangle = new(10, 20);
 
 var width = triangle.Width;
-// width = 10
-

Height

Definition

c#
public double Height { get; init; }
-

The Height property is a double which returns the height of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(width, height) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// width = 10

Height

Definition

c#
public double Height { get; init; }

The Height property is a double which returns the height of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(width, height) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Triangle triangle = new(10, 20);
 
 var height = triangle.Height;
-// height = 20
-

Side1

Definition

c#
public double Side1 { get; init; }
-

The Side1 property is a double which returns the length of the first side of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(side1, side2, side3) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// height = 20

Side1

Definition

c#
public double Side1 { get; init; }

The Side1 property is a double which returns the length of the first side of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(side1, side2, side3) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Triangle triangle = new(10, 20, 15);
 
 var side1 = triangle.Side1;
-// side1 = 10
-

Side2

Definition

c#
public double Side2 { get; init; }
-

The Side2 property is a double which returns the length of the second side of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(side1, side2, side3) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// side1 = 10

Side2

Definition

c#
public double Side2 { get; init; }

The Side2 property is a double which returns the length of the second side of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(side1, side2, side3) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Triangle triangle = new(10, 20, 15);
 
 var side2 = triangle.Side2;
-// side2 = 20
-

Side3

Definition

c#
public double Side3 { get; init; }
-

The Side3 property is a double which returns the length of the third side of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(side1, side2, side3) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
+// side2 = 20

Side3

Definition

c#
public double Side3 { get; init; }

The Side3 property is a double which returns the length of the third side of the triangle, which was defined when initializing it. You can only get this property.

WARNING

This property can be equal to double.NaN if the class was not initialized with the Triangle(side1, side2, side3) constructor.

Usage

c#
using PeyrSharp.Core.Maths.Geometry;
 
 Triangle triangle = new(10, 20, 15);
 
 var side3 = triangle.Side3;
-// side3 = 15
-

Released under the MIT License.

- +// side3 = 15

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/percentages.html b/docs/core/maths/percentages.html index 0fab3ad..031f7ee 100644 --- a/docs/core/maths/percentages.html +++ b/docs/core/maths/percentages.html @@ -5,35 +5,31 @@ Percentages | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Percentages

This page is about the Percentages class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Percentages class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

IncreaseBy(value, increaseRate)

Definition

Returns the value after an increase of x% as a double.

Arguments

TypeNameMeaning
doublevalueThe original value.
doubleincreaseRateThe increase percentage (as x/100d).

Usage

c#
using PeyrSharp.Core.Maths;
+    
Skip to content
On this page

Percentages

This page is about the Percentages class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Percentages class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

IncreaseBy(value, increaseRate)

Definition

Returns the value after an increase of x% as a double.

Arguments

TypeNameMeaning
doublevalueThe original value.
doubleincreaseRateThe increase percentage (as x/100d).

Usage

c#
using PeyrSharp.Core.Maths;
 
 double price = Percentages.IncreaseBy(100, 10/100d); // Increase the price by 10%
-// price = 110
-

DecreaseBy(value, decreaseRate)

Definition

Returns the value after a decrease of x% as a double.

Arguments

TypeNameMeaning
doublevalueThe original value.
doubledecreaseRateThe decrease percentage (as x/100d).

Usage

c#
using PeyrSharp.Core.Maths;
+// price = 110

DecreaseBy(value, decreaseRate)

Definition

Returns the value after a decrease of x% as a double.

Arguments

TypeNameMeaning
doublevalueThe original value.
doubledecreaseRateThe decrease percentage (as x/100d).

Usage

c#
using PeyrSharp.Core.Maths;
 
 double price = Percentages.DecreaseBy(100, 10/100d); // Decrease the price by 10%
-// price = 90
-

GetInvertedEvolutionRate(evolutionRate)

Definition

Gets the coefficient to get back to the original value after a percentage increase/decrease. It returns a double.

Arguments

TypeNameMeaning
doubleevolutionRateThe evolution rate to get the inverse of.

Usage

c#
using PeyrSharp.Core.Maths;
+// price = 90

GetInvertedEvolutionRate(evolutionRate)

Definition

Gets the coefficient to get back to the original value after a percentage increase/decrease. It returns a double.

Arguments

TypeNameMeaning
doubleevolutionRateThe evolution rate to get the inverse of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 double ev = Percentages.GetInvertedEvolutionRate(1.1);
-// ev = -0.09090909090909094
-

ProportionToPercentageString(proportion)

Definition

Formats a proportion to a string.

Arguments

TypeNameMeaning
doubleproportionThe proportion to get the percentage of.

Usage

c#
using PeyrSharp.Core.Maths;
+// ev = -0.09090909090909094

ProportionToPercentageString(proportion)

Definition

Formats a proportion to a string.

Arguments

TypeNameMeaning
doubleproportionThe proportion to get the percentage of.

Usage

c#
using PeyrSharp.Core.Maths;
 
 double proportion = Percentages.ProportionToPercentageString(0.5);
-// proportion = 50%
-

Released under the MIT License.

- +// proportion = 50%

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/proba.html b/docs/core/maths/proba.html index 0eaf6be..72591ca 100644 --- a/docs/core/maths/proba.html +++ b/docs/core/maths/proba.html @@ -5,17 +5,17 @@ Proba | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Proba

This page is about the Proba class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Proba class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

GetRandomValue(probabilities)

Definition

Gets a random value based on the specified probabilities. Returns a randomly selected value.

Type parameters

TypeNameMeaning
T-The type of the values to select from.

Parameters

TypeNameMeaning
Dictionary<T, double>probabilitiesA dictionary containing the probability of getting each value.

Exceptions

  • ArgumentException: Thrown if the sum of probabilities is not equal to 1.
  • Exception: Thrown if an unexpected error occurs while selecting a random value.

Usage

c#
using PeyrSharp.Core.Maths;
+    
Skip to content
On this page

Proba

This page is about the Proba class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Proba class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

GetRandomValue(probabilities)

Definition

Gets a random value based on the specified probabilities. Returns a randomly selected value.

Type parameters

TypeNameMeaning
T-The type of the values to select from.

Parameters

TypeNameMeaning
Dictionary<T, double>probabilitiesA dictionary containing the probability of getting each value.

Exceptions

  • ArgumentException: Thrown if the sum of probabilities is not equal to 1.
  • Exception: Thrown if an unexpected error occurs while selecting a random value.

Usage

c#
using PeyrSharp.Core.Maths;
 
 Dictionary<string, double> probabilities = new Dictionary<string, double>
 {
@@ -23,10 +23,9 @@
     { "Tails", 0.5 }
 };
 
-string result = Proba.GetRandomValue(probabilities);
-

Released under the MIT License.

- +string result = Proba.GetRandomValue(probabilities);

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/stats.html b/docs/core/maths/stats.html index 41313a1..017fb07 100644 --- a/docs/core/maths/stats.html +++ b/docs/core/maths/stats.html @@ -5,34 +5,31 @@ Stats | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Stats

This page is about the Stats class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Stats class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

Mean(values)

Definition

Returns the mean of a dataset as a double.

Arguments

TypeNameMeaning
List<double>valuesThe dataset to calculate.

Exceptions

TypeMeaning
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Core.Maths;
+    
Skip to content
On this page

Stats

This page is about the Stats class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Stats class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

Mean(values)

Definition

Returns the mean of a dataset as a double.

Arguments

TypeNameMeaning
List<double>valuesThe dataset to calculate.

Exceptions

TypeMeaning
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Core.Maths;
 
 List<double> dataset = new List<double> { 1, 2, 3, 4, 5 };
 double mean = Stats.Mean(dataset); // Calculate the mean of the dataset
-// mean = 3
-

Median(values)

Definition

Returns the median of a dataset as a double.

Arguments

TypeNameMeaning
List<double>valuesThe dataset to calculate.

Exceptions

TypeMeaning
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Core.Maths;
+// mean = 3

Median(values)

Definition

Returns the median of a dataset as a double.

Arguments

TypeNameMeaning
List<double>valuesThe dataset to calculate.

Exceptions

TypeMeaning
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Core.Maths;
 
 List<double> dataset = new List<double> { 1, 2, 3, 4, 5 };
 double median = Stats.Median(dataset); // Calculate the median of the dataset
-// median = 3
-

Mode(values)

Definition

Returns the mode of a dataset as a double.

Arguments

TypeNameMeaning
List<double>valuesThe dataset to calculate.

Exceptions

TypeMeaning
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Core.Maths;
+// median = 3

Mode(values)

Definition

Returns the mode of a dataset as a double.

Arguments

TypeNameMeaning
List<double>valuesThe dataset to calculate.

Exceptions

TypeMeaning
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Core.Maths;
 
 List<double> dataset = new List<double> { 1, 2, 3, 3, 3, 4, 5 };
 double mode = Stats.Mode(dataset); // Calculate the mode of the dataset
-// mode = 3
-

Released under the MIT License.

- +// mode = 3

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/maths/trigonometry.html b/docs/core/maths/trigonometry.html index c2abb89..bbb31db 100644 --- a/docs/core/maths/trigonometry.html +++ b/docs/core/maths/trigonometry.html @@ -5,34 +5,31 @@ Trigonometry | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Trigonometry

This page is about the Trigonometry class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Trigonometry class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

GetOpposedSideFrom(triangleSide, angle, value)

Definition

Gets the length of the opposed side of a specific angle, from the length of either the hypotenuse or the adjacent side of the angle.

Arguments

TypeNameMeaning
TriangleSidestriangleSideThe side of the triangle.
doubleangleThe value of the angle.
doublevalueThe length of the chosen side.

WARNING

If triangleSide is equal to TriangleSides.Opposed, an Exception will be thrown.

Usage

c#
using PeyrSharp.Core.Maths;
+    
Skip to content
On this page

Trigonometry

This page is about the Trigonometry class available in PeyrSharp.Core.Maths. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Trigonometry class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

GetOpposedSideFrom(triangleSide, angle, value)

Definition

Gets the length of the opposed side of a specific angle, from the length of either the hypotenuse or the adjacent side of the angle.

Arguments

TypeNameMeaning
TriangleSidestriangleSideThe side of the triangle.
doubleangleThe value of the angle.
doublevalueThe length of the chosen side.

WARNING

If triangleSide is equal to TriangleSides.Opposed, an Exception will be thrown.

Usage

c#
using PeyrSharp.Core.Maths;
 using PeyrSharp.Enums;
 
 double opposed = Trigonometry.GetOpposedSideFrom(TriangleSides.Adjacent, 1.05, 5);
-// opposed = 8.716576549915851
-

GetAdjacentSideFrom(triangleSide, angle, value)

Definition

Gets the length of the adjacent side of a specific angle, from the length of either the hypotenuse or the opposed side of the angle.

Arguments

TypeNameMeaning
TriangleSidestriangleSideThe side of the triangle.
doubleangleThe value of the angle.
doublevalueThe length of the chosen side.

WARNING

If triangleSide is equal to TriangleSides.Adjacent, an Exception will be thrown.

Usage

c#
using PeyrSharp.Core.Maths;
+// opposed = 8.716576549915851

GetAdjacentSideFrom(triangleSide, angle, value)

Definition

Gets the length of the adjacent side of a specific angle, from the length of either the hypotenuse or the opposed side of the angle.

Arguments

TypeNameMeaning
TriangleSidestriangleSideThe side of the triangle.
doubleangleThe value of the angle.
doublevalueThe length of the chosen side.

WARNING

If triangleSide is equal to TriangleSides.Adjacent, an Exception will be thrown.

Usage

c#
using PeyrSharp.Core.Maths;
 using PeyrSharp.Enums;
 
 double adjacent = Trigonometry.GetAdjacentSideFrom(TriangleSides.Opposed, 1.05, 8.71);
-// adjacent = 4.996227561429541
-

GetHypotenuseFrom(triangleSide, angle, value)

Definition

Gets the length of the hypotenuse, from the length of either the adjacent side or the opposed side of a specific angle.

Arguments

TypeNameMeaning
TriangleSidestriangleSideThe side of the triangle.
doubleangleThe value of the angle.
doublevalueThe length of the chosen side.

WARNING

If triangleSide is equal to TriangleSides.Hypotenuse, an Exception will be thrown.

Usage

c#
using PeyrSharp.Core.Maths;
+// adjacent = 4.996227561429541

GetHypotenuseFrom(triangleSide, angle, value)

Definition

Gets the length of the hypotenuse, from the length of either the adjacent side or the opposed side of a specific angle.

Arguments

TypeNameMeaning
TriangleSidestriangleSideThe side of the triangle.
doubleangleThe value of the angle.
doublevalueThe length of the chosen side.

WARNING

If triangleSide is equal to TriangleSides.Hypotenuse, an Exception will be thrown.

Usage

c#
using PeyrSharp.Core.Maths;
 using PeyrSharp.Enums;
 
 double hypotenuse = Trigonometry.GetHypotenuseFrom(TriangleSides.Opposed, 1.05, 8.71);
-// hypotenuse = 10.041234478169912
-

Released under the MIT License.

- +// hypotenuse = 10.041234478169912

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/password.html b/docs/core/password.html index cff27bf..5d7e93d 100644 --- a/docs/core/password.html +++ b/docs/core/password.html @@ -5,40 +5,37 @@ Password | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Password

This page is about the Password class available in PeyrSharp.Core. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Password class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

GenerateAsync(length, chars, separator)

Definition

The GenerateAsync() method generates a password of a specific length, with specific characters asynchronously.

Arguments

TypeNameMeaning
intlengthThe length of the password.
stringcharactersThe characters that can be included in the password. Separated with a unique separator.
stringseparatorThe separator used to separate the specified characters.

Usage

c#
using PeyrSharp.Core;
+    
Skip to content
On this page

Password

This page is about the Password class available in PeyrSharp.Core. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Password class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Methods

GenerateAsync(length, chars, separator)

Definition

The GenerateAsync() method generates a password of a specific length, with specific characters asynchronously.

Arguments

TypeNameMeaning
intlengthThe length of the password.
stringcharactersThe characters that can be included in the password. Separated with a unique separator.
stringseparatorThe separator used to separate the specified characters.

Usage

c#
using PeyrSharp.Core;
 
 private async void Main()
 {
     // Generate a password with 10 characters
     string password = await Password.GenerateAsync(10, "a,b,c,d,e,f,1,2,3,4,5", ",");
-}
-

GenerateAsync(length, passwordPresets)

Definition

The GenerateAsync() method generates a password of a specific length, with a specific PasswordPresets asynchronously.

Arguments

TypeNameMeaning
intlengthThe length of the password.
PasswordPresetspasswordPresetsThe password preset used when generating the password

Usage

c#
using PeyrSharp.Core;
+}

GenerateAsync(length, passwordPresets)

Definition

The GenerateAsync() method generates a password of a specific length, with a specific PasswordPresets asynchronously.

Arguments

TypeNameMeaning
intlengthThe length of the password.
PasswordPresetspasswordPresetsThe password preset used when generating the password

Usage

c#
using PeyrSharp.Core;
 using PeyrSharp.Enums;
 
 private async void Main()
 {
     // Generate a password with 10 characters, using the Complex preset
     string password = await Password.GenerateAsync(10, PasswordPresets.Complex);
-}
-

GenerateAsync(amount, length, chars, separator)

Definition

The GenerateAsync() method generates a specific amount of passwords with specific lengths and characters asynchronously.

Arguments

TypeNameMeaning
intamountThe amount of passwords to generate.
intlengthThe length of the password.
stringcharactersThe characters that can be included in the password. Separated with a unique separator.
stringseparatorThe separator used to separate the specified characters.

Usage

c#
using System.Collections.Generic;
+}

GenerateAsync(amount, length, chars, separator)

Definition

The GenerateAsync() method generates a specific amount of passwords with specific lengths and characters asynchronously.

Arguments

TypeNameMeaning
intamountThe amount of passwords to generate.
intlengthThe length of the password.
stringcharactersThe characters that can be included in the password. Separated with a unique separator.
stringseparatorThe separator used to separate the specified characters.

Usage

c#
using System.Collections.Generic;
 using PeyrSharp.Core;
 
 private async void Main()
 {
     // Generate 10 passwords with 10 characters
     List<string> passwords = await Password.GenerateAsync(10, 10, "a,b,c,d,e,f,1,2,3,4,5", ",");
-}
-

GenerateAsync(amount, length, passwordPresets)

Definition

The GenerateAsync() method generates a specific amount of passwords with specific lengths and PasswordPresets asynchronously.

Arguments

TypeNameMeaning
intamountThe amount of passwords to generate.
intlengthThe length of the password.
PasswordPresetspasswordPresetsThe password preset used when generating the password

Usage

c#
using System.Collections.Generic;
+}

GenerateAsync(amount, length, passwordPresets)

Definition

The GenerateAsync() method generates a specific amount of passwords with specific lengths and PasswordPresets asynchronously.

Arguments

TypeNameMeaning
intamountThe amount of passwords to generate.
intlengthThe length of the password.
PasswordPresetspasswordPresetsThe password preset used when generating the password

Usage

c#
using System.Collections.Generic;
 using PeyrSharp.Core;
 using PeyrSharp.Enums;
 
@@ -46,10 +43,9 @@
 {
     // Generate 10 passwords with 10 characters with the simple preset
     List<string> passwords = await Password.GenerateAsync(10, 10, PasswordPresets.Simple);
-}
-

Released under the MIT License.

- +}

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/core/statusinfo.html b/docs/core/statusinfo.html new file mode 100644 index 0000000..28802c6 --- /dev/null +++ b/docs/core/statusinfo.html @@ -0,0 +1,23 @@ + + + + + + StatusInfo | PeyrSharp + + + + + + + + + + + +
Skip to content
On this page

StatusInfo

This page is about the StatusInfo class available in PeyrSharp.Core. You can find here all of its methods.

Compatibility

The StatusInfo class is part of the PeyrSharp.Core module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Core
Framework.NET 5.NET 6.NET 7
Core

Properties

StatusCode

Definition

c#
public int StatusCode { get; set; }

Gets or sets the status code that indicates the outcome of the request.

StatusDescription

Definition

c#
public string StatusDescription { get; set; }

Gets or sets the status description that provides a human-readable message of the status code.

StatusType

Definition

c#
public StatusCodes StatusType { get; set; }

Gets or sets the status type that categorizes the status code into informational, success, redirection, client error, or server error. The StatusCodes is an enumeration representing the type of HTTP status codes that can be returned.

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/docs/enumerations.html b/docs/enumerations.html index e2a6a94..e30d16f 100644 --- a/docs/enumerations.html +++ b/docs/enumerations.html @@ -5,31 +5,29 @@ Enumerations | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Enumerations

This page is about the enumerations available in PeyrSharp.Enums. They are grouped by category.

Compatibility

Enumerations are part of the PeyrSharp.Enums module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Enums
Framework.NET 5.NET 6.NET 7
Enums

Converters

StorageUnits

Definition

The StorageUnits enumeration represents all possible numeric storage units. It contains the following values:

ValueNameMeaning
0ByteThe byte unit. (b)
1KilobyteThe kilobyte unit. (kb)
2MegabyteThe megabyte unit. (mb)
3GigabyteThe gigabyte unit. (gb)
4TerabyteThe terabyte unit. (tb)
5PetabyteThe petabyte unit. (pb)

Example

c#
public static double ToPetabyte(double value, StorageUnits unit)
+    
Skip to content
On this page

Enumerations

This page is about the enumerations available in PeyrSharp.Enums. They are grouped by category.

Compatibility

Enumerations are part of the PeyrSharp.Enums module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Enums
Framework.NET 5.NET 6.NET 7
Enums

Converters

StorageUnits

Definition

The StorageUnits enumeration represents all possible numeric storage units. It contains the following values:

ValueNameMeaning
0ByteThe byte unit. (b)
1KilobyteThe kilobyte unit. (kb)
2MegabyteThe megabyte unit. (mb)
3GigabyteThe gigabyte unit. (gb)
4TerabyteThe terabyte unit. (tb)
5PetabyteThe petabyte unit. (pb)

Example

c#
public static double ToPetabyte(double value, StorageUnits unit)
 {
     if (unit == StorageUnits.Terabyte)
     {
         return value / 1000d;
     }
-}
-

TimeUnits

Definition

The TimeUnits enumeration represents all possible time units, such as seconds, minutes, etc. A more detailed table on all the values available:

ValueNameMeaning
0MillisecondsRepresents milliseconds.
1SecondsRepresents seconds.
2MinutesRepresents minutes.
3HoursRepresents hours.
4DaysRepresents days.

Example

c#
public static double ToSeconds(double value, TimeUnits unit)
+}

TimeUnits

Definition

The TimeUnits enumeration represents all possible time units, such as seconds, minutes, etc. A more detailed table on all the values available:

ValueNameMeaning
0MillisecondsRepresents milliseconds.
1SecondsRepresents seconds.
2MinutesRepresents minutes.
3HoursRepresents hours.
4DaysRepresents days.

Example

c#
public static double ToSeconds(double value, TimeUnits unit)
 {
     if (unit == TimeUnits.Minutes)
     {
         return value * 60;
     }
-}
-

Environment

LogLevel

Definition

The LogLevel enumeration specifies the severity level of a log message. It contains several values:

ValueNameMeaning
0DebugDebug-level messages provide verbose information for debugging purposes.
1InfoInfo-level messages provide informational messages about the application's state.
2WarningWarning-level messages indicate a potential problem or non-critical issue.
3ErrorError-level messages indicate an error has occurred in the application.
4CriticalCritical-level messages indicate a critical error has occurred that requires immediate attention.
5MiscMisc-level messages are for miscellaneous use cases and are not defined in the logging specification.

Example

c#
using PeyrSharp.Enums;
+}

Environment

LogLevel

Definition

The LogLevel enumeration specifies the severity level of a log message. It contains several values:

ValueNameMeaning
0DebugDebug-level messages provide verbose information for debugging purposes.
1InfoInfo-level messages provide informational messages about the application's state.
2WarningWarning-level messages indicate a potential problem or non-critical issue.
3ErrorError-level messages indicate an error has occurred in the application.
4CriticalCritical-level messages indicate a critical error has occurred that requires immediate attention.
5MiscMisc-level messages are for miscellaneous use cases and are not defined in the logging specification.

Example

c#
using PeyrSharp.Enums;
 using PeyrSharp.Env;
 
 string message = "This is a log message.";
@@ -37,19 +35,14 @@
 DateTime date = DateTime.Now;
 LogLevel logLevel = LogLevel.Warning;
 
-Logger.Log(message, filePath, date, logLevel);
-

More info here about the example

OperatingSystems

Definition

The OperatingSystems enumerations represents all possible operating systems that a .NET program could run on. It contains several values:

ValueNameMeaning
0WindowsThe Microsoft Windows Operating System.
1macOSThe Apple macOS Operating System.
2LinuxA Linux-based Operating System.
3UnknownAn unknown Operating System.

Example

c#
if (Env.CurrentOs == OperatingSystems.Windows)
+Logger.Log(message, filePath, date, logLevel);

More info here about the example

OperatingSystems

Definition

The OperatingSystems enumerations represents all possible operating systems that a .NET program could run on. It contains several values:

ValueNameMeaning
0WindowsThe Microsoft Windows Operating System.
1macOSThe Apple macOS Operating System.
2LinuxA Linux-based Operating System.
3UnknownAn unknown Operating System.

Example

c#
if (Env.CurrentOs == OperatingSystems.Windows)
 {
     //Do something if the OS is Windows
-}
-

SystemThemes

Definition

The SystemThemes enumerations represents all themes available on a Windows device. It contains several values:

ValueNameMeaning
0DarkThe user is using dark theme.
1LightThe user is using light theme.
2UnknownThe current theme is unknown.

Example

c#
if (GetCurrentTheme() == SystemThemes.Dark)
+}

SystemThemes

Definition

The SystemThemes enumerations represents all themes available on a Windows device. It contains several values:

ValueNameMeaning
0DarkThe user is using dark theme.
1LightThe user is using light theme.
2UnknownThe current theme is unknown.

Example

c#
if (GetCurrentTheme() == SystemThemes.Dark)
 {
     Console.WriteLine("You have dark theme enabled!");
-}
-

WindowsVersion

Definition

The WindowsVersion enumerations represents all possible Windows versions supported by .NET, which means all version from Windows 7 to 11. It contains several values:

ValueNameMeaning
0Windows7The Windows 7 (NT 6.1) Operating System.
1Windows8The Windows 8 (NT 6.2) Operating System.
2Windows81The Windows 8.1 (NT 6.3) Operating System.
3Windows10The Windows 10 (NT 10.0) Operating System.
4Windows11The Windows 11 (NT 10.0, Build 22000+) Operating System.

Example

c#
public bool DarkThemeAvailable => Env.CurrentWindowsVersion == WindowsVersion.Windows10 || Env.CurrentWindowsVersion == WindowsVersion.Windows11;
-

Geometry

TriangleSides

Definition

The TriangleSides enumeration represents the different sides of a triangle: hypotenuse, adjacent, and opposite. It contains these values:

ValueNameMeaning
0OpposedThe opposed side of a specific angle of a triangle.
1HypotenuseThe hypotenuse of a triangle.
2AdjacentThe adjacent side of a specific angle of a triangle.

Example

c#
// Get the adjacent side from the opposed side of a specific angle.
-Trigonometry.GetAdjacentSideFrom(TriangleSides.Opposed, 20);
-

Internet

StatusCodes

Definition

The StatusCodes enumeration represents the different kinds of status codes returned by a server after a request is made to it. The following status codes are available in this enumeration:

ValueNameMeaning
0InformationalInformational responses (100-199)
1SuccessSuccessful responses (200-299)
2RedirectionRedirection messages (300-399)
3ClientErrorClient error responses (400-499)
4ServerErrorServer error responses (500-599)

Example

c#
status = GetRequestStatus();
+}

WindowsVersion

Definition

The WindowsVersion enumerations represents all possible Windows versions supported by .NET, which means all version from Windows 7 to 11. It contains several values:

ValueNameMeaning
0Windows7The Windows 7 (NT 6.1) Operating System.
1Windows8The Windows 8 (NT 6.2) Operating System.
2Windows81The Windows 8.1 (NT 6.3) Operating System.
3Windows10The Windows 10 (NT 10.0) Operating System.
4Windows11The Windows 11 (NT 10.0, Build 22000+) Operating System.

Example

c#
public bool DarkThemeAvailable => Env.CurrentWindowsVersion == WindowsVersion.Windows10 || Env.CurrentWindowsVersion == WindowsVersion.Windows11;

Geometry

TriangleSides

Definition

The TriangleSides enumeration represents the different sides of a triangle: hypotenuse, adjacent, and opposite. It contains these values:

ValueNameMeaning
0OpposedThe opposed side of a specific angle of a triangle.
1HypotenuseThe hypotenuse of a triangle.
2AdjacentThe adjacent side of a specific angle of a triangle.

Example

c#
// Get the adjacent side from the opposed side of a specific angle.
+Trigonometry.GetAdjacentSideFrom(TriangleSides.Opposed, 20);

Internet

StatusCodes

Definition

The StatusCodes enumeration represents the different kinds of status codes returned by a server after a request is made to it. The following status codes are available in this enumeration:

ValueNameMeaning
0InformationalInformational responses (100-199)
1SuccessSuccessful responses (200-299)
2RedirectionRedirection messages (300-399)
3ClientErrorClient error responses (400-499)
4ServerErrorServer error responses (500-599)

Example

c#
status = GetRequestStatus();
 
 switch (status)
 {
@@ -68,20 +61,17 @@
     case StatusCodes.ServerError:
         Console.WriteLine("An server error status code has been returned.");
         break;
-}
-

Password

PasswordPresets

Definition

The PasswordPresets enumeration represents all the of the presets available when generating a password using the Password class of PeyrSharp.Core. It has two values:

ValueNameMeaning
0SimpleThe Simple preset generates a password with simple characters.
1ComplexThe Complex preset generates a password with unusual, hard and complex characters.

Example

c#
private async void Main()
+}

Password

PasswordPresets

Definition

The PasswordPresets enumeration represents all the of the presets available when generating a password using the Password class of PeyrSharp.Core. It has two values:

ValueNameMeaning
0SimpleThe Simple preset generates a password with simple characters.
1ComplexThe Complex preset generates a password with unusual, hard and complex characters.

Example

c#
private async void Main()
 {
     string password = Password.GenerateAsync(10, PasswordPresets.Simple); // Generate a simple password
-}
-

PasswordStrength

Definition

The PasswordStrength enumeration represents different strength levels of a password; if it's a strong or weak password. It contains these values:

ValueNameMeaning
0LowThe password has a low strength; you shouldn't use it.
1MediumThe password has a medium strength; don't use it on important websites.
2GoodThe password has a good strength; you can safely use it.
3VeryGoodThe password has an excellent strength, meaning it will be hard for hackers to hack it.

Example

c#
internal async void Main()
+}

PasswordStrength

Definition

The PasswordStrength enumeration represents different strength levels of a password; if it's a strong or weak password. It contains these values:

ValueNameMeaning
0LowThe password has a low strength; you shouldn't use it.
1MediumThe password has a medium strength; don't use it on important websites.
2GoodThe password has a good strength; you can safely use it.
3VeryGoodThe password has an excellent strength, meaning it will be hard for hackers to hack it.

Example

c#
internal async void Main()
 {
     // Check if the generated password is complex
     if (Password.GetStrength(await Password.GenerateAsync(15, PasswordPresets.Complex)) == PasswordStrength.Medium)
     {
         Console.WriteLine("The password isn't complex enough.");
     }
-}
-

UserInterface

ControlAlignment

Definition

The ControlAlignment enumeration is here to help align a control when calling methods from the UiHelpers namespace. It has the following values:

ValueNameMeaning
0HorizontalThe control will be aligned/centered horizontally.
1VerticalThe control will be aligned/centered vertically.
2BothThe control will be aligned/centered horizontally and vertically.

Example

c#
using PeyrSharp.UiHelpers;
+}

UserInterface

ControlAlignment

Definition

The ControlAlignment enumeration is here to help align a control when calling methods from the UiHelpers namespace. It has the following values:

ValueNameMeaning
0HorizontalThe control will be aligned/centered horizontally.
1VerticalThe control will be aligned/centered vertically.
2BothThe control will be aligned/centered horizontally and vertically.

Example

c#
using PeyrSharp.UiHelpers;
 
 namespace App
 {
@@ -92,10 +82,9 @@
             WinFormsHelpers.CenterControl(button1, this, ControlAlignment.Horizontal);
         }
     }
-}
-

Released under the MIT License.

- +}

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/env.html b/docs/env.html index 507fd1c..67d6a41 100644 --- a/docs/env.html +++ b/docs/env.html @@ -5,19 +5,19 @@ Env | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Env

This page is about the PeyrSharp.Env module.

Compatibility

The PeyrSharp.Env module is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env⚠️⚠️
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Classes

Released under the MIT License.

- +
Skip to content
On this page

Env

This page is about the PeyrSharp.Env module.

Compatibility

The PeyrSharp.Env module is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env⚠️⚠️
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Classes

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/env/filesys.html b/docs/env/filesys.html index 529cff3..abfd310 100644 --- a/docs/env/filesys.html +++ b/docs/env/filesys.html @@ -5,41 +5,35 @@ FileSys | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

FileSys

This page is about the FileSys class available in PeyrSharp.Env. You can find here all of its methods and properties.

INFO

This class is static.

Compatibility

The FileSys class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

GetAvailableSpace(drive, unit)

Definition

Gets the amount of available storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
stringdriveThe drive letter or name to get the amount of available space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
+    
Skip to content
On this page

FileSys

This page is about the FileSys class available in PeyrSharp.Env. You can find here all of its methods and properties.

INFO

This class is static.

Compatibility

The FileSys class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

GetAvailableSpace(drive, unit)

Definition

Gets the amount of available storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
stringdriveThe drive letter or name to get the amount of available space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.Env;
 
-double space = FileSys.GetAvailableSpace("C:/", StorageUnits.Gigabyte);
-

GetAvailableSpace(driveInfo, unit)

Definition

Gets the amount of available storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
DriveInfodriveInfoThe DriveInfo object to get the amount of available space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
+double space = FileSys.GetAvailableSpace("C:/", StorageUnits.Gigabyte);

GetAvailableSpace(driveInfo, unit)

Definition

Gets the amount of available storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
DriveInfodriveInfoThe DriveInfo object to get the amount of available space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.Env;
 
-double space = FileSys.GetAvailableSpace(new DriveInfo("C:/"), StorageUnits.Gigabyte);
-

GetOccupiedSpace(drive, unit)

Definition

Gets the amount of occupied storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
stringdriveThe drive letter or name to get the amount of occupied space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
+double space = FileSys.GetAvailableSpace(new DriveInfo("C:/"), StorageUnits.Gigabyte);

GetOccupiedSpace(drive, unit)

Definition

Gets the amount of occupied storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
stringdriveThe drive letter or name to get the amount of occupied space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.Env;
 
-double occupiedSpace = FileSys.GetOccupiedSpace("C:/", StorageUnits.Gigabyte);
-

GetOccupiedSpace(driveInfo, unit)

Definition

Gets the amount of occupied storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
DriveInfodriveInfoThe DriveInfo object to get the amount of occupied space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
+double occupiedSpace = FileSys.GetOccupiedSpace("C:/", StorageUnits.Gigabyte);

GetOccupiedSpace(driveInfo, unit)

Definition

Gets the amount of occupied storage on a specified drive. It returns double.

Arguments

TypeNameMeaning
DriveInfodriveInfoThe DriveInfo object to get the amount of occupied space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.Env;
 
-double occupiedSpace = FileSys.GetOccupiedSpace(new DriveInfo("C:/"), StorageUnits.Gigabyte);
-

GetTotalSpace(drive, unit)

Definition

Gets the total amount of space on a specified drive. It returns double.

Arguments

TypeNameMeaning
stringdriveThe drive letter or name to get the amount of total space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
+double occupiedSpace = FileSys.GetOccupiedSpace(new DriveInfo("C:/"), StorageUnits.Gigabyte);

GetTotalSpace(drive, unit)

Definition

Gets the total amount of space on a specified drive. It returns double.

Arguments

TypeNameMeaning
stringdriveThe drive letter or name to get the amount of total space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.Env;
 
-double occupiedSpace = FileSys.GetTotalSpace("C:/", StorageUnits.Gigabyte);
-

GetTotalSpace(driveInfo, unit)

Definition

Gets the total amount of space on a specified drive. It returns double.

Arguments

TypeNameMeaning
DriveInfodriveInfoThe DriveInfo object to get the amount of total space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
+double occupiedSpace = FileSys.GetTotalSpace("C:/", StorageUnits.Gigabyte);

GetTotalSpace(driveInfo, unit)

Definition

Gets the total amount of space on a specified drive. It returns double.

Arguments

TypeNameMeaning
DriveInfodriveInfoThe DriveInfo object to get the amount of total space.
StorageUnitsunitThe unit of the returned result.

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.Env;
 
-double total = FileSys.GetTotalSpace(new DriveInfo("C:/"), StorageUnits.Gigabyte);
-

CountFileCharactersAsync(fileName)

Definition

Counts the number of characters in specified file asynchronously. It returns an int.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringfileNameThe file path of the file.

Usage

c#
using PeyrSharp.Env;
+double total = FileSys.GetTotalSpace(new DriveInfo("C:/"), StorageUnits.Gigabyte);

CountFileCharactersAsync(fileName)

Definition

Counts the number of characters in specified file asynchronously. It returns an int.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringfileNameThe file path of the file.

Usage

c#
using PeyrSharp.Env;
 
 public static async Task ExampleAsync()
 {
@@ -51,8 +45,7 @@
     int chars = await FileSys.CountFileCharactersAsync("Hello.txt");
 
     // chars = 13
-}
-

CanWriteFile(filePath)

Definition

Checks if your program has the permission to write a file in a specific directory. It returns a bool; true if you can write/edit the specified directory.

Arguments

TypeNameMeaning
stringfilePathThe path to the directory.

Usage

c#
using PeyrSharp.Env;
+}

CanWriteFile(filePath)

Definition

Checks if your program has the permission to write a file in a specific directory. It returns a bool; true if you can write/edit the specified directory.

Arguments

TypeNameMeaning
stringfilePathThe path to the directory.

Usage

c#
using PeyrSharp.Env;
 
 if (FileSys.CanWriteFile(@"C:\Windows"))
 {
@@ -61,14 +54,12 @@
 else
 {
     Console.WriteLine("You do not have permission to edit in this folder.");
-}
-

IsDriveOpticalDrive(driveInfo)

Available in version 1.1 and higher.

Definition

Checks if the specified drive is an optical drive, such as CD-ROM or DVD. It returns a bool; true if the drive is an optical drive.

Arguments

TypeNameMeaning
stringdriveInfoThe drive to check.

Usage

c#
using PeyrSharp.Env;
+}

IsDriveOpticalDrive(driveInfo)

Available in version 1.1 and higher.

Definition

Checks if the specified drive is an optical drive, such as CD-ROM or DVD. It returns a bool; true if the drive is an optical drive.

Arguments

TypeNameMeaning
stringdriveInfoThe drive to check.

Usage

c#
using PeyrSharp.Env;
 
 if (FileSys.IsOpticalDrive(new(@"E:\")))
 {
     Console.WriteLine("Drive E:/ is an optical drive")
-}
-

GetDriveStorageUnit(driveInfo)

Available in version 1.1 and higher.

Definition

Gets the appropriate StorageUnits to use depending of the total size of the drive. It returns a StorageUnits value.

Arguments

TypeNameMeaning
stringdriveInfoThe drive to get the unit of.

Usage

c#
using PeyrSharp.Env;
+}

GetDriveStorageUnit(driveInfo)

Available in version 1.1 and higher.

Definition

Gets the appropriate StorageUnits to use depending of the total size of the drive. It returns a StorageUnits value.

Arguments

TypeNameMeaning
stringdriveInfoThe drive to get the unit of.

Usage

c#
using PeyrSharp.Env;
 
 var unit = FileSys.GetDriveStorageUnit(@"C:\");
 
@@ -80,39 +71,26 @@
     _ => "Unknown size unit"
 }
 
-Console.WriteLine(message);
-

Properties

AppDataPath

Definition

c#
public static string AppDataPath { get; }
-

The AppDataPath property gets the %APPDATA% path. You can only get this property.

Usage

c#
using PeyrSharp.Env;
+Console.WriteLine(message);

Properties

AppDataPath

Definition

c#
public static string AppDataPath { get; }

The AppDataPath property gets the %APPDATA% path. You can only get this property.

Usage

c#
using PeyrSharp.Env;
 
-string appdata = FileSys.AppDataPath;
-

CurrentAppDirectory

Available in version 1.1 and higher.

Definition

c#
public static string CurrentAppDirectory { get; }
-

The CurrentAppDirectory property gets the path where is located the executable file that is currently running. You can only get this property.

Usage

c#
using PeyrSharp.Env;
+string appdata = FileSys.AppDataPath;

CurrentAppDirectory

Available in version 1.1 and higher.

Definition

c#
public static string CurrentAppDirectory { get; }

The CurrentAppDirectory property gets the path where is located the executable file that is currently running. You can only get this property.

Usage

c#
using PeyrSharp.Env;
 
-string dir = FileSys.CurrentAppDirectory;
-

DriveWithHighestFreeSpace

Available in version 1.1 and higher.

Definition

c#
public static DriveInfo DriveWithHighestFreeSpace { get; }
-

The DriveWithHighestFreeSpace property gets the drive with the highest free space available. You can only get this property.

Usage

c#
using System.IO;
+string dir = FileSys.CurrentAppDirectory;

DriveWithHighestFreeSpace

Available in version 1.1 and higher.

Definition

c#
public static DriveInfo DriveWithHighestFreeSpace { get; }

The DriveWithHighestFreeSpace property gets the drive with the highest free space available. You can only get this property.

Usage

c#
using System.IO;
 using PeyrSharp.Env;
 
-DriveInfo highest = FileSys.DriveWithHighestFreeSpace;
-

DriveWithLowestFreeSpace

Available in version 1.1 and higher.

Definition

c#
public static DriveInfo DriveWithLowestFreeSpace { get; }
-

The DriveWithLowestFreeSpace property gets the drive with the lowest free space available. You can only get this property.

Usage

c#
using System.IO;
+DriveInfo highest = FileSys.DriveWithHighestFreeSpace;

DriveWithLowestFreeSpace

Available in version 1.1 and higher.

Definition

c#
public static DriveInfo DriveWithLowestFreeSpace { get; }

The DriveWithLowestFreeSpace property gets the drive with the lowest free space available. You can only get this property.

Usage

c#
using System.IO;
 using PeyrSharp.Env;
 
-DriveInfo lowest = FileSys.DriveWithLowestFreeSpace;
-

SystemDrive

Definition

c#
[SupportedOSPlatform("windows")]
-public static DriveInfo SystemDrive { get; }
-

The SystemDrive property gets the system drive, where Windows is installed. You can only get this property.

DANGER

This property only works on Windows! It will return a default value if you run it on a different platform.

Usage

c#
using PeyrSharp.Env;
+DriveInfo lowest = FileSys.DriveWithLowestFreeSpace;

SystemDrive

Definition

c#
[SupportedOSPlatform("windows")]
+public static DriveInfo SystemDrive { get; }

The SystemDrive property gets the system drive, where Windows is installed. You can only get this property.

DANGER

This property only works on Windows! It will return a default value if you run it on a different platform.

Usage

c#
using PeyrSharp.Env;
 
-DriveInfo sys = FileSys.SystemDrive;
-

CurrentDirectory

Definition

Gets the current directory of the application. Returns a string representing the full path of the current directory.

Usage

c#
using PeyrSharp.Env;
+DriveInfo sys = FileSys.SystemDrive;

CurrentDirectory

Definition

Gets the current directory of the application. Returns a string representing the full path of the current directory.

Usage

c#
using PeyrSharp.Env;
 
-string currentDirectory = FileSys.CurrentDirectory;
-

ComputerName

Definition

Returns the name of the current computer as a string.

Usage

c#
using PeyrSharp.Env;
+string currentDirectory = FileSys.CurrentDirectory;

ComputerName

Definition

Returns the name of the current computer as a string.

Usage

c#
using PeyrSharp.Env;
 
-string computerName = FileSys.ComputerName;
-

Released under the MIT License.

- +string computerName = FileSys.ComputerName;

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/env/logger.html b/docs/env/logger.html index 4acda19..4e74c3e 100644 --- a/docs/env/logger.html +++ b/docs/env/logger.html @@ -5,29 +5,27 @@ Logger | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Logger

This page is about the Logger class available in PeyrSharp.Env. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Logger class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

Log(message, filePath, dateTime)

Definition

The Log() method logs a specific message alongside a timestamp into a file. This method does not return a value (void).

INFO

You can call this method multiple times on the same file and it will append the message to it.

Arguments

TypeNameMeaning
stringmessageThe message or text that needs to be logged.
stringfilePathThe path where the file should be written.
DateTimedateTimeThe timestamp of the log, the time when the log was made.

Usage

c#
using PeyrSharp.Env;
+    
Skip to content
On this page

Logger

This page is about the Logger class available in PeyrSharp.Env. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Logger class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

Log(message, filePath, dateTime)

Definition

The Log() method logs a specific message alongside a timestamp into a file. This method does not return a value (void).

INFO

You can call this method multiple times on the same file and it will append the message to it.

Arguments

TypeNameMeaning
stringmessageThe message or text that needs to be logged.
stringfilePathThe path where the file should be written.
DateTimedateTimeThe timestamp of the log, the time when the log was made.

Usage

c#
using PeyrSharp.Env;
 
 Logger.Log("Hello", @"C:\Logs\log1.txt", DateTime.Now)
 // The line above will generate a file with the following content:
-// [10/31/2022 09:23:18] Hello
-

Log(message, filePath, formatString)

Definition

Logs a formatted message to a file. This method does not return a value.

Arguments

TypeNameMeaning
stringmessageThe log message to be written.
stringfilePathThe path to the log file. Must contain an extension.
object[]formatStringAn object array that contains zero or more objects to format.

Usage

c#
using PeyrSharp.Env;
+// [10/31/2022 09:23:18] Hello

Log(message, filePath, formatString)

Definition

Logs a formatted message to a file. This method does not return a value.

Arguments

TypeNameMeaning
stringmessageThe log message to be written.
stringfilePathThe path to the log file. Must contain an extension.
object[]formatStringAn object array that contains zero or more objects to format.

Usage

c#
using PeyrSharp.Env;
 
 string message = "This is a log message. Date: {0}.";
 string filePath = @"C:\Logs\log.txt";
 DateTime date = DateTime.Now;
 
-Logger.Log(message, filePath, date);
-

Log(message, filePath, dateTime, logLevel)

Definition

Logs a message with the specified severity level, file path, and timestamp. This method does not return a value.

Arguments

TypeNameMeaning
stringmessageThe message to log.
stringfilePathThe path to the file where the message was logged.
DateTimedateTimeThe timestamp for the log message.
LogLevellogLevelThe severity level for the log message.

Usage

c#
using PeyrSharp.Enums;
+Logger.Log(message, filePath, date);

Log(message, filePath, dateTime, logLevel)

Definition

Logs a message with the specified severity level, file path, and timestamp. This method does not return a value.

Arguments

TypeNameMeaning
stringmessageThe message to log.
stringfilePathThe path to the file where the message was logged.
DateTimedateTimeThe timestamp for the log message.
LogLevellogLevelThe severity level for the log message.

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.Env;
 
 string message = "This is a log message.";
@@ -35,10 +33,9 @@
 DateTime date = DateTime.Now;
 LogLevel logLevel = LogLevel.Warning;
 
-Logger.Log(message, filePath, date, logLevel);
-

Released under the MIT License.

- +Logger.Log(message, filePath, date, logLevel);

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/env/system.html b/docs/env/system.html index a78f893..84a8857 100644 --- a/docs/env/system.html +++ b/docs/env/system.html @@ -5,48 +5,38 @@ Sys | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Sys

This page is about the Sys class available in PeyrSharp.Env. You can find here all of its methods and properties.

INFO

This class is static.

Compatibility

The Sys class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env⚠️⚠️
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

ExecuteAsAdmin(process)

Definition

Executes a program in administrator mode.

WARNING

This method only works on Windows.

Arguments

TypeNameMeaning
ProcessprocessThe process to launch as admin.

Usage

c#
using PeyrSharp.Env;
+    
Skip to content
On this page

Sys

This page is about the Sys class available in PeyrSharp.Env. You can find here all of its methods and properties.

INFO

This class is static.

Compatibility

The Sys class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env⚠️⚠️
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

ExecuteAsAdmin(process)

Definition

Executes a program in administrator mode.

WARNING

This method only works on Windows.

Arguments

TypeNameMeaning
ProcessprocessThe process to launch as admin.

Usage

c#
using PeyrSharp.Env;
 
 // Define a process
 Process p = new();
 p.StartInfo.FileName = "notepad.exe";
 
-Sys.ExecuteAsAdmin(p);
-

ExecuteAsAdmin(fileName)

Definition

Executes a program in administrator mode.

WARNING

This method only works on Windows.

Arguments

TypeNameMeaning
stringfileNameThe path to the program to launch in admin mode.

Usage

c#
using PeyrSharp.Env;
+Sys.ExecuteAsAdmin(p);

ExecuteAsAdmin(fileName)

Definition

Executes a program in administrator mode.

WARNING

This method only works on Windows.

Arguments

TypeNameMeaning
stringfileNameThe path to the program to launch in admin mode.

Usage

c#
using PeyrSharp.Env;
 
-Sys.ExecuteAsAdmin("notepad.exe");
-

LaunchUWPApp(packageFamilyName, applicationID)

Definition

This method allows you to launch an UWP app from its PackageFamilyName and its Application Id. You can find this information by running in Windows Powershell (admin) the following command:

powershell
Get-AppxPackage | Select PackageFamilyName, InstallLocation
-

You can find the Application Id in the AppxManifest.xml file in

txt
InstallLocation\AppxManifest.xml
-

WARNING

This method only works on Windows.

Arguments

TypeNameMeaning
stringpackageFamilyNameThe PackageFamilyName property.
stringapplicationIDThe Application Id property in the UWP AppxManifest.xml file.

Usage

c#
using PeyrSharp.Env;
+Sys.ExecuteAsAdmin("notepad.exe");

LaunchUWPApp(packageFamilyName, applicationID)

Definition

This method allows you to launch an UWP app from its PackageFamilyName and its Application Id. You can find this information by running in Windows Powershell (admin) the following command:

powershell
Get-AppxPackage | Select PackageFamilyName, InstallLocation

You can find the Application Id in the AppxManifest.xml file in

txt
InstallLocation\AppxManifest.xml

WARNING

This method only works on Windows.

Arguments

TypeNameMeaning
stringpackageFamilyNameThe PackageFamilyName property.
stringapplicationIDThe Application Id property in the UWP AppxManifest.xml file.

Usage

c#
using PeyrSharp.Env;
 
-Sys.LaunchUWPApp("Microsoft.MinecraftUWP_8wekyb3d8bbwe", "App"); // Launch Minecraft UWP
-

IsProcessRunning(processName)

Definition

Gets if a specified process name is currently running. Returns a bool value indicating whether the process is running (true) or not running (false).

Arguments

TypeNameMeaning
stringprocessNameThe process name to find.

Usage

c#
using PeyrSharp.Env;
+Sys.LaunchUWPApp("Microsoft.MinecraftUWP_8wekyb3d8bbwe", "App"); // Launch Minecraft UWP

IsProcessRunning(processName)

Definition

Gets if a specified process name is currently running. Returns a bool value indicating whether the process is running (true) or not running (false).

Arguments

TypeNameMeaning
stringprocessNameThe process name to find.

Usage

c#
using PeyrSharp.Env;
 
-bool isNotepadRunning = Sys.IsProcessRunning("notepad");
-

TerminateProcess(processId)

Definition

Terminates a process with the specified process ID. Returns True if the process was successfully terminated, or False if no such process was found or if an error occurred while trying to terminate the process.

Arguments

TypeNameMeaning
intprocessIdThe ID of the process to terminate.

Usage

c#
using PeyrSharp.Env;
+bool isNotepadRunning = Sys.IsProcessRunning("notepad");

TerminateProcess(processId)

Definition

Terminates a process with the specified process ID. Returns True if the process was successfully terminated, or False if no such process was found or if an error occurred while trying to terminate the process.

Arguments

TypeNameMeaning
intprocessIdThe ID of the process to terminate.

Usage

c#
using PeyrSharp.Env;
 
 int processId = 12345;
 
-bool result = Sys.TerminateProcess(processId);
-

Properties

CurrentOperatingSystem

Definition

c#
public static OperatingSystems CurrentOperatingSystem { get; }
-

Gets the current Operating system. Returns a OperatingSystems value. You can only get this property.

Usage

c#
using PeyrSharp.Env;
+bool result = Sys.TerminateProcess(processId);

Properties

CurrentOperatingSystem

Definition

c#
public static OperatingSystems CurrentOperatingSystem { get; }

Gets the current Operating system. Returns a OperatingSystems value. You can only get this property.

Usage

c#
using PeyrSharp.Env;
 
 if (Sys.CurrentOperatingSystem == OperatingSystems.Windows)
 {
     Console.WriteLine("You are on Windows");
-}
-

CurrentWindowsVersion

Definition

c#
public static WindowsVersion CurrentWindowsVersion { get; }
-

Gets the current Windows version. Returns a WindowsVersion value. You can only get this property.

WARNING

This property only works on Windows.

DANGER

This property only works if you specify in the Application Manifest, in the compatibility section, that Windows 8, 8.1 and 10/11 are compatible with the software. Otherwise, it will return Windows8.

xml
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
+}

CurrentWindowsVersion

Definition

c#
public static WindowsVersion CurrentWindowsVersion { get; }

Gets the current Windows version. Returns a WindowsVersion value. You can only get this property.

WARNING

This property only works on Windows.

DANGER

This property only works if you specify in the Application Manifest, in the compatibility section, that Windows 8, 8.1 and 10/11 are compatible with the software. Otherwise, it will return Windows8.

xml
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
     <application>
       <!-- Windows Vista -->
       <!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
@@ -63,45 +53,35 @@
       <!-- Windows 10 -->
       <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
     </application>
-</compatibility>
-

Usage

c#
using PeyrSharp.Env;
+</compatibility>

Usage

c#
using PeyrSharp.Env;
 
 if (Sys.CurrentWindowsVersion == WindowsVersion.Windows11)
 {
     Console.WriteLine("You are on Windows 11");
-}
-

IsDarkThemeSupported

Definition

c#
public static bool IsDarkThemeSupported { get; }
-

Gets if the current Windows version supports dark theme. Returns a bool value. You can only get this property.

WARNING

This property only works on Windows.

Usage

c#
using PeyrSharp.Env;
+}

IsDarkThemeSupported

Definition

c#
public static bool IsDarkThemeSupported { get; }

Gets if the current Windows version supports dark theme. Returns a bool value. You can only get this property.

WARNING

This property only works on Windows.

Usage

c#
using PeyrSharp.Env;
 
 if (Sys.IsDarkThemeSupported)
 {
     Console.WriteLine("You are running Windows 10 or higher.");
-}
-

RunningProcesses

Definition

c#
public static Process[] RunningProcesses { get; }
-

Gets the processes that are currently running. Returns a Process[] array. You can only get this property.

Usage

c#
using PeyrSharp.Env;
+}

RunningProcesses

Definition

c#
public static Process[] RunningProcesses { get; }

Gets the processes that are currently running. Returns a Process[] array. You can only get this property.

Usage

c#
using PeyrSharp.Env;
 
 Process[] procs = Sys.RunningProcesses;
 
 for (int i = 0; i < procs.Length; i++)
 {
     Console.WriteLine(procs[i].ProcessName); // Print the name of all running processes
-}
-

RunningProcessesNames

Definition

c#
public static string[] RunningProcessesNames { get; }
-

Gets the names of the processes that are currently running. Returns a string[] array. You can only get this property.

Usage

c#
using PeyrSharp.Env;
+}

RunningProcessesNames

Definition

c#
public static string[] RunningProcessesNames { get; }

Gets the names of the processes that are currently running. Returns a string[] array. You can only get this property.

Usage

c#
using PeyrSharp.Env;
 
 string[] procs = Sys.RunningProcessesNames;
 
 for (int i = 0; i < procs.Length; i++)
 {
     Console.WriteLine(procs[i]); // Print the name of all running processes
-}
-

UnixTime

Definition

c#
public static int Unix { get; }
-

Gets the current UnixTime. Returns an int. You can only get this property.

Usage

c#
using PeyrSharp.Env;
-
-int unixTime = Sys.UnixTime;
-

Released under the MIT License.

- +}

UnixTime

Definition

c#
public static int Unix { get; }

Gets the current UnixTime. Returns an int. You can only get this property.

Usage

c#
using PeyrSharp.Env;
+
+int unixTime = Sys.UnixTime;

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/env/update.html b/docs/env/update.html index 62014f8..d55545a 100644 --- a/docs/env/update.html +++ b/docs/env/update.html @@ -5,37 +5,35 @@ Update | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Update

This page is about the Update class available in PeyrSharp.Env. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Update class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

GetLastVersionAsync(url)

Definition

Downloads the content of remote file as string. The remote file should contain the last version text. Do not provide the URL of an HTML page.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlLink of the file where the latest version is stored.

Usage

c#
using PeyrSharp.Env;
+    
Skip to content
On this page

Update

This page is about the Update class available in PeyrSharp.Env. You can find here all of its methods.

INFO

This class is static.

Compatibility

The Update class is part of the PeyrSharp.Env module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Env
Framework.NET 5.NET 6.NET 7
Env

WARNING

Some methods, classes or features of PeyrSharp.Env might not be available in all platforms.

Methods

GetLastVersionAsync(url)

Definition

Downloads the content of remote file as string. The remote file should contain the last version text. Do not provide the URL of an HTML page.

INFO

This method is asynchronous and awaitable.

Arguments

TypeNameMeaning
stringurlLink of the file where the latest version is stored.

Usage

c#
using PeyrSharp.Env;
 
 private async void Main()
 {
-    string lastVersion = await Update.GetLastVersionAsync("https://raw.githubusercontent.com/Leo-Corporation/LeoCorp-Docs/master/Liens/Update%20System/LABS%20Experimental%20Console/version.txt");
+    string lastVersion = await Update.GetLastVersionAsync("https://raw.githubusercontent.com/DevyusCode/LeoCorp-Docs/master/Liens/Update%20System/LABS%20Experimental%20Console/version.txt");
     // lastVersion would be equal to the content of this text files
-}
-

IsAvailable(currentVersion, remoteVersion)

Definition

Compares two versions. Returns a bool.

INFO

It is recommended to use this method with the GetLastVersionAsync() one.

Arguments

TypeNameMeaning
stringcurrentVersionThe current version of the app.
stringremoveVersionThe latest version, stored remotely.

Usage

c#
using PeyrSharp.Env;
+}

IsAvailable(currentVersion, remoteVersion)

Definition

Compares two versions. Returns a bool.

INFO

It is recommended to use this method with the GetLastVersionAsync() one.

Arguments

TypeNameMeaning
stringcurrentVersionThe current version of the app.
stringremoveVersionThe latest version, stored remotely.

Usage

c#
using PeyrSharp.Env;
 
 private async void Main()
 {
     string current = "1.0";
-    string last = await Update.GetLastVersionAsync("https://raw.githubusercontent.com/Leo-Corporation/LeoCorp-Docs/master/Liens/Update%20System/LABS%20Experimental%20Console/version.txt");
+    string last = await Update.GetLastVersionAsync("https://raw.githubusercontent.com/DevyusCode/LeoCorp-Docs/master/Liens/Update%20System/LABS%20Experimental%20Console/version.txt");
 
     Console.WriteLine(Update.IsAvailable(current, last)
         ? "Updates are available."
         : "You are up-to-date.");
-}
-

Released under the MIT License.

- +}

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/exceptions.html b/docs/exceptions.html index f1b2fe9..af32418 100644 --- a/docs/exceptions.html +++ b/docs/exceptions.html @@ -5,23 +5,21 @@ Exceptions | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Exceptions

This page is about the exceptions available in PeyrSharp.Exceptions. They are grouped by category.

Compatibility

Exceptions are part of the PeyrSharp.Exceptions module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Exceptions
Framework.NET 5.NET 6.NET 7
Exceptions

Converters

RGBInvalidValueException

Definition

The RGBInvalidValueException is an exception used in the Converters class when you provide an invalid value for a RGB color.

Usage

c#
using PeyrSharp.Exceptions;
+    
Skip to content
On this page

Exceptions

This page is about the exceptions available in PeyrSharp.Exceptions. They are grouped by category.

Compatibility

Exceptions are part of the PeyrSharp.Exceptions module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Exceptions
Framework.NET 5.NET 6.NET 7
Exceptions

Converters

RGBInvalidValueException

Definition

The RGBInvalidValueException is an exception used in the Converters class when you provide an invalid value for a RGB color.

Usage

c#
using PeyrSharp.Exceptions;
 
-throw new RGBInvalidValueException("Please provide correct RGB values.");
-

HEXInvalidValueException

Definition

The HEXInvalidValueException is an exception used in the Converters class when you provide an invalid value for a HEX color.

Usage

c#
using PeyrSharp.Exceptions;
+throw new RGBInvalidValueException("Please provide correct RGB values.");

HEXInvalidValueException

Definition

The HEXInvalidValueException is an exception used in the Converters class when you provide an invalid value for a HEX color.

Usage

c#
using PeyrSharp.Exceptions;
 
-throw new HEXInvalidValueException("Please provide a correct HEX value.");
-

Guid

InvalidGuidLengthException

Definition

The InvalidGuidLengthException is an exception used in the Guid class when you provide an invalid value for the length of the Guid. You should provide a length between 1-32.

Usage

c#
using PeyrSharp.Exceptions;
+throw new HEXInvalidValueException("Please provide a correct HEX value.");

Guid

InvalidGuidLengthException

Definition

The InvalidGuidLengthException is an exception used in the Guid class when you provide an invalid value for the length of the Guid. You should provide a length between 1-32.

Usage

c#
using PeyrSharp.Exceptions;
 
 // Guid length
 int length = 45; // Will throw an error
@@ -29,10 +27,9 @@
 if (length <= 0 || length > 32)
 {
     throw new InvalidGuidLengthException("The length of a Guid must be between 1 and 32.");
-}
-

Released under the MIT License.

- +}

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/extensions.html b/docs/extensions.html index 0d7d960..93b02ff 100644 --- a/docs/extensions.html +++ b/docs/extensions.html @@ -5,19 +5,19 @@ Extensions | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Extensions

This page is about the PeyrSharp.Extensions module.

Compatibility

The PeyrSharp.Extensions module is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Classes

Released under the MIT License.

- +
Skip to content
On this page

Extensions

This page is about the PeyrSharp.Extensions module.

Compatibility

The PeyrSharp.Extensions module is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Classes

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/extensions/array.html b/docs/extensions/array.html index 936de1e..46be8a9 100644 --- a/docs/extensions/array.html +++ b/docs/extensions/array.html @@ -5,44 +5,39 @@ ArrayExtensions | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

ArrayExtensions

This page is about the ArrayExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The ArrayExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

Append(item)

Definition

The Append<T>() method adds an item to an existing array of any type. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
TitemThe item to append in the array.

Usage

c#
using PeyrSharp.Extensions;
+    
Skip to content
On this page

ArrayExtensions

This page is about the ArrayExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The ArrayExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

Append(item)

Definition

The Append<T>() method adds an item to an existing array of any type. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
TitemThe item to append in the array.

Usage

c#
using PeyrSharp.Extensions;
 
 int[] numbers = { 1, 2, 3, 4 };
 int[] appendNumbers = numbers.Append(5);
-// appendNumbers: { 1, 2, 3, 4, 5 }
-

Append(items)

Definition

The Append<T>() method adds multiple items to an existing array of any type. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
params T[]itemsThe items to append in the array.

Usage

c#
using PeyrSharp.Extensions;
+// appendNumbers: { 1, 2, 3, 4, 5 }

Append(items)

Definition

The Append<T>() method adds multiple items to an existing array of any type. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
params T[]itemsThe items to append in the array.

Usage

c#
using PeyrSharp.Extensions;
 
 int[] numbers = { 1, 2, 3, 4 };
 int[] appendNumbers = numbers.Append(5, 6);
-// appendNumbers: { 1, 2, 3, 4, 5, 6 }
-

RemoveElement(item)

Definition

The RemoveElement<T>() method removes an item from an array. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
TitemThe item to remove from the array.

Usage

c#
using PeyrSharp.Extensions;
+// appendNumbers: { 1, 2, 3, 4, 5, 6 }

RemoveElement(item)

Definition

The RemoveElement<T>() method removes an item from an array. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
TitemThe item to remove from the array.

Usage

c#
using PeyrSharp.Extensions;
 
 int[] numbers = { 1, 2, 3, 4, 5 };
 int[] remove = numbers.RemoveItem(5);
-// remove: { 1, 2, 3, 4 }
-

RemoveElement(items)

Definition

The RemoveElement<T>() method removes multiple items from an array. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
params T[]itemsThe items to remove from the array.

Usage

c#
using PeyrSharp.Extensions;
+// remove: { 1, 2, 3, 4 }

RemoveElement(items)

Definition

The RemoveElement<T>() method removes multiple items from an array. It returns an array of the chosen type (T[]).

Arguments

TypeNameMeaning
params T[]itemsThe items to remove from the array.

Usage

c#
using PeyrSharp.Extensions;
 
 int[] numbers = { 1, 2, 3, 4, 5 };
 int[] remove = numbers.RemoveItem(5);
-// remove: { 1, 2, 3, 4 }
-

UnSplit(array, separator)

Definition

Concatenates the elements of a string array, using the specified separator between each element. Return a string that consists of the elements of array delimited by the separator string. If array has no elements, the method returns an empty string.

Arguments

TypeNameMeaning
stringarrayThe array of strings to concatenate.
stringseparatorThe string to use as a separator.

Usage

c#
using PeyrSharp.Extensions;
+// remove: { 1, 2, 3, 4 }

UnSplit(array, separator)

Definition

Concatenates the elements of a string array, using the specified separator between each element. Return a string that consists of the elements of array delimited by the separator string. If array has no elements, the method returns an empty string.

Arguments

TypeNameMeaning
stringarrayThe array of strings to concatenate.
stringseparatorThe string to use as a separator.

Usage

c#
using PeyrSharp.Extensions;
 
 string[] array = { "a", "b", "c", "d" };
 string final = array.UnSplit(", "); // Concatenate the elements of the array with a comma and a space as a separator
-// final = "a, b, c, d"
-

Released under the MIT License.

- +// final = "a, b, c, d"

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/extensions/double.html b/docs/extensions/double.html index a88db9e..5047add 100644 --- a/docs/extensions/double.html +++ b/docs/extensions/double.html @@ -5,83 +5,69 @@ DoubleExtensions | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

DoubleExtensions

This page is about the DoubleExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The DoubleExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

Mean(values)

Definition

Calculates the mean (average) of a dataset. Returns the mean of the dataset as double.

Exceptions

TypeCondition
System.ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
+    
Skip to content
On this page

DoubleExtensions

This page is about the DoubleExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The DoubleExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

Mean(values)

Definition

Calculates the mean (average) of a dataset. Returns the mean of the dataset as double.

Exceptions

TypeCondition
System.ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
 
 double[] data = new double[] { 1.0, 2.0, 3.0, 4.0, 5.0 };
-double mean = data.Mean(); // 5
-

Median(values)

Definition

Calculates the median of a dataset. Returns the median of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
+double mean = data.Mean(); // 5

Median(values)

Definition

Calculates the median of a dataset. Returns the median of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
 
 double[] data = new double[] { 1.2, 3.4, 2.5, 6.8, 5.7 };
 double median = data.Median();
 
-Console.WriteLine($"The median of the dataset is {median}"); // 3.4
-

Mode(values)

Definition

Calculates the mode of a dataset. Returns the mode of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
+Console.WriteLine($"The median of the dataset is {median}"); // 3.4

Mode(values)

Definition

Calculates the mode of a dataset. Returns the mode of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
 
 double[] data = new double[] { 1.2, 3.4, 2.5, 6.8, 5.7 };
 double mode = data.Mode();
 
-Console.WriteLine($"The mode of the dataset is {mode}"); // 1.2
-

ToInt()

Definition

Converts a double value to an int. To achieve it, it uses the Math.Round() method.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Extensions;
+Console.WriteLine($"The mode of the dataset is {mode}"); // 1.2

ToInt()

Definition

Converts a double value to an int. To achieve it, it uses the Math.Round() method.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Extensions;
 
 int n = 45.6.ToInt();
-// n = 46
-

ToSeconds(timeUnits)

Definition

Converts a specified time unit value to seconds. For instance, you can convert days, hours or minutes to seconds. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
+// n = 46

ToSeconds(timeUnits)

Definition

Converts a specified time unit value to seconds. For instance, you can convert days, hours or minutes to seconds. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.Extensions;
 
 double seconds = 5.ToSeconds(TimeUnits.Minutes);
-// seconds = 300
-

ToMinutes(timeUnits)

Definition

Converts a specified time unit value to minutes. For instance, you can convert days, hours or seconds to minutes. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
+// seconds = 300

ToMinutes(timeUnits)

Definition

Converts a specified time unit value to minutes. For instance, you can convert days, hours or seconds to minutes. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.Extensions;
 
 double min = 120.ToMinutes(TimeUnits.Seconds);
-// min = 2
-

ToHours(timeUnits)

Definition

Converts a specified time unit value to hours. For instance, you can convert days, minutes or seconds to hours. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
+// min = 2

ToHours(timeUnits)

Definition

Converts a specified time unit value to hours. For instance, you can convert days, minutes or seconds to hours. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.Extensions;
 
 double hours = 1.ToHours(TimeUnits.Days);
-// hours = 24
-

ToDays(timeUnits)

Definition

Converts a specified time unit value to days. For instance, you can convert hours, minutes or seconds to days. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
+// hours = 24

ToDays(timeUnits)

Definition

Converts a specified time unit value to days. For instance, you can convert hours, minutes or seconds to days. It returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitstimeUnitsThe unit of the time. (ex: minutes, hours...)

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.Extensions;
 
 double days = 72.ToDays(TimeUnits.Hours);
-// days = 3
-

ToByte(storageUnit)

Definition

Converts a size (kb, mb, ...) to byte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+// days = 3

ToByte(storageUnit)

Definition

Converts a size (kb, mb, ...) to byte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
TimeUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
 
 double byte = Storage.1(StorageUnits.Kilobyte);
-// byte = 1000
-

ToKilobyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to kilobyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: byte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+// byte = 1000

ToKilobyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to kilobyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: byte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
 
 double kilobyte = 2000.ToKilobyte(StorageUnits.Byte);
-// kilobyte = 2
-

ToMegabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to megabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+// kilobyte = 2

ToMegabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to megabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
 
 double megabyte = 1500.ToMegabyte(StorageUnits.Kilobyte);
-// megabyte = 1.5
-

ToGigabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to gigabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, megabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+// megabyte = 1.5

ToGigabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to gigabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, megabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
 
 double gigabyte = 1000.ToGigabyte(StorageUnits.Megabyte);
-// gigabyte = 1
-

ToTerabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to terabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+// gigabyte = 1

ToTerabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to terabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
 
 double terabyte = 1.ToTerabyte(StorageUnits.Petabyte);
-// terabyte = 1000
-

ToPetabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to petabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
+// terabyte = 1000

ToPetabyte(storageUnit)

Definition

Converts a size (kb, mb, ...) to petabyte. Returns a double value.

INFO

This method can also be used in PeyrSharp.Core.Converters.

Arguments

TypeNameMeaning
StorageUnitsstorageUnitThe unit of the value. (ex: kilobyte, gigabyte...)

Usage

c#
using PeyrSharp.Core.Converters;
 
 double petabyte = 1000.ToPetabyte(StorageUnits.Terabyte);
-// petabyte = 1
-

Released under the MIT License.

- +// petabyte = 1

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/extensions/int.html b/docs/extensions/int.html index 87e17d6..587566d 100644 --- a/docs/extensions/int.html +++ b/docs/extensions/int.html @@ -5,44 +5,38 @@ IntExtensions | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

IntExtensions

This page is about the IntExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The IntExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

GetDivisors()

Definition

Gets all divisors of a specific number. Returns an array of int[].

Arguments

This method does not have any arguments.

Usage

c#
using PeyrSharp.Extensions;
+    
Skip to content
On this page

IntExtensions

This page is about the IntExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The IntExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

GetDivisors()

Definition

Gets all divisors of a specific number. Returns an array of int[].

Arguments

This method does not have any arguments.

Usage

c#
using PeyrSharp.Extensions;
 
-int[] divs = 16.GetDivisors(); // { 1, 2, 4, 8, 16 }
-

IsEven()

Definition

Checks if the number is even. Returns a bool.

Arguments

This method does not have any arguments.

Usage

c#
using PeyrSharp.Extensions;
+int[] divs = 16.GetDivisors(); // { 1, 2, 4, 8, 16 }

IsEven()

Definition

Checks if the number is even. Returns a bool.

Arguments

This method does not have any arguments.

Usage

c#
using PeyrSharp.Extensions;
 
-int[] divs = 16.IsEven(); // true
-

Mean(values)

Definition

Calculates the mean (average) of a dataset. Returns the mean of the dataset as double.

Exceptions

TypeCondition
System.ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
+int[] divs = 16.IsEven(); // true

Mean(values)

Definition

Calculates the mean (average) of a dataset. Returns the mean of the dataset as double.

Exceptions

TypeCondition
System.ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
 
 int[] data = new int[] { 1, 2, 3, 4, 5 };
-double mean = data.Mean(); // 5
-

Median(values)

Definition

Calculates the median of a dataset. Returns the median of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
+double mean = data.Mean(); // 5

Median(values)

Definition

Calculates the median of a dataset. Returns the median of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
 
 int[] data = new int[] { 1, 2, 3, 5 };
 double median = data.Median();
 
-Console.WriteLine($"The median of the dataset is {median}"); // 2
-

Mode(values)

Definition

Calculates the mode of a dataset. Returns the mode of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
+Console.WriteLine($"The median of the dataset is {median}"); // 2

Mode(values)

Definition

Calculates the mode of a dataset. Returns the mode of the dataset as double.

Exceptions

TypeCondition
ArgumentExceptionThrown if the dataset is empty.

Usage

c#
using PeyrSharp.Extensions;
 
 int[] data = new int[] { 1, 2, 3, 5 };
 double mode = data.Mode();
 
-Console.WriteLine($"The mode of the dataset is {mode}"); // 1
-

ToDouble()

Definition

Converts an int to double.

Arguments

This method does not have any arguments.

Usage

c#
using PeyrSharp.Extensions;
+Console.WriteLine($"The mode of the dataset is {mode}"); // 1

ToDouble()

Definition

Converts an int to double.

Arguments

This method does not have any arguments.

Usage

c#
using PeyrSharp.Extensions;
 
-double d = 16.ToDouble(); // 16.0d
-

Released under the MIT License.

- +double d = 16.ToDouble(); // 16.0d

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/extensions/string.html b/docs/extensions/string.html index ee92d0c..5b9bab5 100644 --- a/docs/extensions/string.html +++ b/docs/extensions/string.html @@ -5,69 +5,58 @@ StringExtensions | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

StringExtensions

This page is about the StringExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The StringExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

CountWords()

Definition

Counts the number of words in a string. Returns int.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Extensions;
+    
Skip to content
On this page

StringExtensions

This page is about the StringExtensions class available in PeyrSharp.Extensions. You can find here all of its extension methods.

INFO

This class is static.

Compatibility

The StringExtensions class is part of the PeyrSharp.Extensions module, and is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
Extensions
Framework.NET 5.NET 6.NET 7
Extensions

Methods

CountWords()

Definition

Counts the number of words in a string. Returns int.

Arguments

This method has no arguments.

Usage

c#
using PeyrSharp.Extensions;
 
 int numberOfWords = "Hello, this is a test sentence!".CountWords();
-// numberOfWords = 6
-

CountWords(wordSeparator)

Definition

Counts the number of words in a string, with specified word separators. By default, the method uses those (if you don't pass any argument to it): , ,, ;, ., :, !, ?. Returns int.

Arguments

TypeNameMeaning
string[]wordSeparatorThe separator of the words.

Usage

c#
using PeyrSharp.Extensions;
+// numberOfWords = 6

CountWords(wordSeparator)

Definition

Counts the number of words in a string, with specified word separators. By default, the method uses those (if you don't pass any argument to it): , ,, ;, ., :, !, ?. Returns int.

Arguments

TypeNameMeaning
string[]wordSeparatorThe separator of the words.

Usage

c#
using PeyrSharp.Extensions;
 
 string[] wordSeparator = { " ", ",", ":", "!", "?", ";", "." };
 int numberOfWords = "Hello, this is a test sentence!".CountWords(wordSeparator);
-// numberOfWords = 6
-

EndsWithSamePunctuation(stringToCheck)

Definition

Checks if a string is ending with the same punctuation than an other one. Returns a bool; true if it is the case.

Arguments

TypeNameMeaning
stringstringToCheckThe string to compare.

Usage

c#
using PeyrSharp.Extensions;
+// numberOfWords = 6

EndsWithSamePunctuation(stringToCheck)

Definition

Checks if a string is ending with the same punctuation than an other one. Returns a bool; true if it is the case.

Arguments

TypeNameMeaning
stringstringToCheckThe string to compare.

Usage

c#
using PeyrSharp.Extensions;
 
 string a = "This is a test sentence.";
 string b = "This is an another test sentence.";
 
-a.EndsWithSamePunctuation(b); // true
-

EndsWithSamePunctuation(stringToCheck, punctuationToCheck)

Definition

Checks if a string is ending with the same specified punctuation than an other one. Returns a bool; true if it is the case.

Arguments

TypeNameMeaning
stringstringToCheckThe string to compare.
stringpunctuationToCheckThe punctuation sign to check for.

Usage

c#
using PeyrSharp.Extensions;
+a.EndsWithSamePunctuation(b); // true

EndsWithSamePunctuation(stringToCheck, punctuationToCheck)

Definition

Checks if a string is ending with the same specified punctuation than an other one. Returns a bool; true if it is the case.

Arguments

TypeNameMeaning
stringstringToCheckThe string to compare.
stringpunctuationToCheckThe punctuation sign to check for.

Usage

c#
using PeyrSharp.Extensions;
 
 string a = "This is a test sentence.";
 string b = "This is an another test sentence.";
 
-a.EndsWithSamePunctuation(b, "."); // true
-

EncryptAes(key)

Definitions

Encrypts a string using AES encryption. Returns the encrypted content as a string as well.

Arguments

TypeNameMeaning
stringkeyThe encryption key. This is the same key that will be used to decrypt the text.

Usage

c#
using PeyrSharp.Core;
+a.EndsWithSamePunctuation(b, "."); // true

EncryptAes(key)

Definitions

Encrypts a string using AES encryption. Returns the encrypted content as a string as well.

Arguments

TypeNameMeaning
stringkeyThe encryption key. This is the same key that will be used to decrypt the text.

Usage

c#
using PeyrSharp.Core;
 
 string encrypted = "Hello!".EncryptAes("password");
-// encrypted = 6NvvTBntd2PdFxXzVbccLw==
-

DecryptAes(key)

Definitions

Decrypts a string using AES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
stringkeyThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
+// encrypted = 6NvvTBntd2PdFxXzVbccLw==

DecryptAes(key)

Definitions

Decrypts a string using AES encryption. Returns the decrypted content as a string as well.

Arguments

TypeNameMeaning
stringkeyThe encryption key that was used during the encryption process.

Usage

c#
using PeyrSharp.Core;
 
 string text = "6NvvTBntd2PdFxXzVbccLw==".DecryptAes("password");
-// text = Hello!
-

HasRepeatedCharacters()

Definition

Checks if a letter or character is being repeated in a string. Returns bool.

INFO

Only returns true if a character is repeated more than three times. For instance, "11" will return false, whereas "aaaa" will return true.

Arguments

This methods has no arguments.

Usage

c#
using PeyrSharp.Extensions;
+// text = Hello!

HasRepeatedCharacters()

Definition

Checks if a letter or character is being repeated in a string. Returns bool.

INFO

Only returns true if a character is repeated more than three times. For instance, "11" will return false, whereas "aaaa" will return true.

Arguments

This methods has no arguments.

Usage

c#
using PeyrSharp.Extensions;
 
-"111".HasRepeatedCharacters(); // true
-

SplitLines()

Definition

Splits a string lines to an array. Returns string[].

INFO

The method uses the string.Split() method under the hood, which means that it is providing it the following separators: \n, \r, \r\n.

Arguments

This methods has no arguments.

Usage

c#
using PeyrSharp.Extensions;
+"111".HasRepeatedCharacters(); // true

SplitLines()

Definition

Splits a string lines to an array. Returns string[].

INFO

The method uses the string.Split() method under the hood, which means that it is providing it the following separators: \n, \r, \r\n.

Arguments

This methods has no arguments.

Usage

c#
using PeyrSharp.Extensions;
 
 string[] lines = "Hello\nWorld".SplitLines();
-// lines = { "Hello", "World" }
-

ToUpperAt(str, r)

Definition

Returns a new string in which the characters in a specified range of the current string are converted to uppercase. Returns a string that is equivalent to the current string, but with the characters in the specified range converted to uppercase.

Arguments

TypeNameMeaning
stringstrThe string to modify.
RangerThe range of characters to convert to uppercase.

Usage

c#
using PeyrSharp.Extensions;
+// lines = { "Hello", "World" }

ToUpperAt(str, r)

Definition

Returns a new string in which the characters in a specified range of the current string are converted to uppercase. Returns a string that is equivalent to the current string, but with the characters in the specified range converted to uppercase.

Arguments

TypeNameMeaning
stringstrThe string to modify.
RangerThe range of characters to convert to uppercase.

Usage

c#
using PeyrSharp.Extensions;
 
 string str = "aBcDeFgHiJ";
 string upper = str.ToUpperAt(2..6); // Convert the characters at indexes 2 to 6 (inclusive) to uppercase
-// upper = "aBCDEFGhij"
-

ToUpperAt(s)

Definition

Uppercases the first letter of a string. Returns a string with the first letter uppercased.

Arguments

TypeNameMeaning
stringsThe string to capitalize.

Usage

c#
using PeyrSharp.Extensions;
+// upper = "aBCDEFGhij"

ToUpperAt(s)

Definition

Uppercases the first letter of a string. Returns a string with the first letter uppercased.

Arguments

TypeNameMeaning
stringsThe string to capitalize.

Usage

c#
using PeyrSharp.Extensions;
 
 string str = "test";
 string upper = str.ToUpperAt(); // Uppercase the first letter of the string
-// upper = "Test"
-

Reverse(input)

Definition

Reverses a string.

Arguments

TypeNameDescription
stringinputThe string to reverse.

Returns

A string representing the reversed input.

Usage

c#
using PeyrSharp.Extensions;
+// upper = "Test"

Reverse(input)

Definition

Reverses a string.

Arguments

TypeNameDescription
stringinputThe string to reverse.

Returns

A string representing the reversed input.

Usage

c#
using PeyrSharp.Extensions;
 
 string reversed = "Hello, world!".Reverse();
-// Output: "!dlrow ,olleH"
-

Released under the MIT License.

- +// Output: "!dlrow ,olleH"

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/get-started.html b/docs/get-started.html index b8fe6c9..9e72a9d 100644 --- a/docs/get-started.html +++ b/docs/get-started.html @@ -5,28 +5,24 @@ Get Started | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Get Started

Packages and modules

Before installing PeyrSharp, you may want to consider what features you will actually need to use in your project. Indeed, PeyrSharp is divided in multiple modules and packages.

If you think you need all the features of PeyrSharp, you can directly install the PeyrSharp NuGet package. However, you can also install the packages that you only need in your project. Here's a list of all the packages and their features:

PeyrSharp, the main package, that contains all of the followings:

PeyrSharp.Core, the basic methods and features of C#
  • Maths
  • Password
  • Guid
  • Converters
  • Internet
  • Crypt
PeyrSharp.Env, methods related to the file system and to the current execution environment.
  • FileSys
  • Logger
  • Update
  • System
PeyrSharp.Enums, all enumerations used by PeyrSharp
  • LogLevel
  • WindowsVersion
  • TimeUnits
  • SystemThemes
  • OperatingSystems
  • StorageUnits
  • ControlAlignment
  • PasswordPresets
  • PasswordStrength
PeyrSharp.Exceptions, all exceptions used by PeyrSharp
  • RGBInvalidValueException
  • HEXInvalidValueException
  • InvalidGuidLengthException
PeyrSharp.Extensions, extension methods, that extends basic types, such as string, int, double or arrays (T[]).
  • String
  • Int
  • Double
  • Array (T[])
PeyrSharp.UiHelpers, methods related to Windows Forms or to the Windows Presentation Framework (WPF).
  • WinForms
  • Screen
  • WPF

Compatibility

Platforms

Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platforms.

Package/PlatformWindowsmacOSLinux + others
Core
Env⚠️⚠️
Enums
Exceptions
Extensions
UiHelpers

Caption:

  • ✅ Full Support
  • ⚠️ Partial Support
  • ❌ Unsupported platform

Frameworks

PeyrSharp is available in the following frameworks

  • .NET 5
  • .NET 6
  • .NET 7 (soon)

INFO

.NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported.

Installation methods

PeyrShall is available on NuGet, you can install it by running the following command:

.NET CLI

You can add PeyrSharp to your project the .NET CLI.

powershell
dotnet add package PeyrSharp --version 1.0.0.2211
-

Package Manager

sh
NuGet\Install-Package PeyrSharp -Version 1.0.0.2211
-

Package Reference

You can specify in your project file that it is dependent on PeyrSharp.

xml
<PackageReference Include="PeyrSharp" Version="1.0.0.2211" />
-

Start coding

To call methods and classes included in PeyrSharp, you will need to add the corresponding using directives in your code file.

c#
using PeyrSharp.Core;
+    
Skip to content
On this page

Get Started

Packages and modules

Before installing PeyrSharp, you may want to consider what features you will actually need to use in your project. Indeed, PeyrSharp is divided in multiple modules and packages.

If you think you need all the features of PeyrSharp, you can directly install the PeyrSharp NuGet package. However, you can also install the packages that you only need in your project. Here's a list of all the packages and their features:

PeyrSharp, the main package, that contains all of the followings:

PeyrSharp.Core, the basic methods and features of C#
  • Maths
  • Password
  • Guid
  • Converters
  • Internet
  • Crypt
PeyrSharp.Env, methods related to the file system and to the current execution environment.
  • FileSys
  • Logger
  • Update
  • System
PeyrSharp.Enums, all enumerations used by PeyrSharp
  • LogLevel
  • WindowsVersion
  • TimeUnits
  • SystemThemes
  • OperatingSystems
  • StorageUnits
  • ControlAlignment
  • PasswordPresets
  • PasswordStrength
PeyrSharp.Exceptions, all exceptions used by PeyrSharp
  • RGBInvalidValueException
  • HEXInvalidValueException
  • InvalidGuidLengthException
PeyrSharp.Extensions, extension methods, that extends basic types, such as string, int, double or arrays (T[]).
  • String
  • Int
  • Double
  • Array (T[])
PeyrSharp.UiHelpers, methods related to Windows Forms or to the Windows Presentation Framework (WPF).
  • WinForms
  • Screen
  • WPF

Compatibility

Platforms

Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platforms.

Package/PlatformWindowsmacOSLinux + others
Core
Env⚠️⚠️
Enums
Exceptions
Extensions
UiHelpers

Caption:

  • ✅ Full Support
  • ⚠️ Partial Support
  • ❌ Unsupported platform

Frameworks

PeyrSharp is available in the following frameworks

  • .NET 5
  • .NET 6
  • .NET 7

INFO

.NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported.

Installation methods

PeyrShall is available on NuGet, you can install it by running the following command:

.NET CLI

You can add PeyrSharp to your project the .NET CLI.

powershell
dotnet add package PeyrSharp --version 1.0.0.2211

Package Manager

sh
NuGet\Install-Package PeyrSharp -Version 1.0.0.2211

Package Reference

You can specify in your project file that it is dependent on PeyrSharp.

xml
<PackageReference Include="PeyrSharp" Version="1.0.0.2211" />

Start coding

To call methods and classes included in PeyrSharp, you will need to add the corresponding using directives in your code file.

c#
using PeyrSharp.Core;
 using PeyrSharp.Env;
 using PeyrSharp.Enums;
 using PeyrSharp.Exceptions;
 using PeyrSharp.Extensions;
-using PeyrSharp.UiHelpers; // Windows only
-

For more information, you can check the reference

Released under the MIT License.

- +using PeyrSharp.UiHelpers; // Windows only

For more information, you can check the reference

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/hashmap.json b/docs/hashmap.json index 08540e6..5f5c781 100644 --- a/docs/hashmap.json +++ b/docs/hashmap.json @@ -1 +1 @@ -{"core_converters_energies.md":"30b4c932","core_maths_percentages.md":"1feda028","index.md":"25b4b320","core.md":"04b61d38","core_converters_distances.md":"f8ae93d3","core_converters_colors_rgb.md":"ae0ad331","core_converters_masses.md":"e2f9874b","core_converters_colors_hsv.md":"70b2079b","core_converters_temperatures.md":"4ef5c821","core_converters_volumes.md":"5be7a6e3","core_maths_stats.md":"e317b135","core_maths_geometry_diamond.md":"b6c2fd0a","core_guid.md":"a2935b56","core_maths.md":"386c26b1","core_password.md":"a6d4fc6d","core_maths_geometry_cone.md":"753c86c5","core_converters_storage.md":"7f68946a","core_maths_geometry_circle.md":"e8a89d45","core_internet.md":"45eeb599","core_maths_geometry.md":"878759b2","core_maths_trigonometry.md":"6cc4354b","core_maths_geometry_sphere.md":"2244644b","core_maths_geometry_triangle.md":"b66783c6","core_converters.md":"e3a58f3d","core_converters_time.md":"37562baf","ui-helpers_screen.md":"b13fbb11","core_maths_geometry_hexagon.md":"198cc7a3","reference.md":"169cc3bf","ui-helpers_winforms.md":"cb60597a","core_maths_proba.md":"8b031e1a","core_maths_geometry_pyramid.md":"024dce70","ui-helpers_wpf.md":"6d4e4bdd","core_converters_colors_hex.md":"8310aa19","core_crypt.md":"6d77ba69","core_converters_angle.md":"628bef10","env_update.md":"23d652b4","env_system.md":"5701262b","core_maths_geometry_rectangle.md":"6550635b","extensions_int.md":"e3682c4d","core_maths_algebra.md":"4877489b","env_logger.md":"9aea516b","core_guid-options.md":"5637bd7b","intro.md":"ecc1f751","extensions_array.md":"76dbee0c","ui-helpers.md":"1cb72d0a","extensions.md":"617fb60c","core_maths_geometry_cube.md":"16564995","env.md":"94b1d70a","enumerations.md":"3eb0b411","extensions_double.md":"b0e69aa8","get-started.md":"d3385ee5","core_maths_geometry_cylinder.md":"e4bd7953","env_filesys.md":"396c4c37","extensions_string.md":"0660789f","core_converters_speeds.md":"e518b142","exceptions.md":"bd52d342"} +{"core_converters_time.md":"bf03ff9f","core_maths.md":"ab094e3c","core_converters_masses.md":"520fd18e","core_maths_geometry.md":"fd7d026b","core_converters_colors_hsv.md":"49f77895","core_converters_temperatures.md":"76ccc9e2","core_converters_energies.md":"904aa9f1","core_converters_angle.md":"545270b4","core.md":"915e00ad","core_maths_geometry_hexagon.md":"81b08bb6","core_converters_storage.md":"c1af5481","core_maths_percentages.md":"dacb4442","core_maths_geometry_circle.md":"b835d535","core_crypt.md":"329fa283","core_converters_volumes.md":"d173d1a6","core_statusinfo.md":"58c01cc9","core_converters_colors_rgb.md":"93a1229c","core_maths_geometry_cylinder.md":"c964c334","core_converters_distances.md":"6c80ef2a","env.md":"e3c69ff8","core_internet.md":"4a7bf36a","core_converters_colors_hex.md":"b44f5622","core_password.md":"a0242727","core_guid-options.md":"e7441a21","core_maths_geometry_sphere.md":"08137c99","core_guid.md":"eb407f4b","core_maths_proba.md":"267e908a","core_maths_geometry_diamond.md":"d8217217","env_update.md":"46901f56","core_maths_trigonometry.md":"408dad08","core_maths_algebra.md":"0dd45bbb","core_maths_stats.md":"78852ea4","reference.md":"a5f4f274","ui-helpers.md":"d9ef85cc","index.md":"3e538f10","extensions_string.md":"18eff540","extensions.md":"5525e03e","core_maths_geometry_cone.md":"37f79f61","intro.md":"ea6d8c4a","core_converters.md":"545d75a5","ui-helpers_screen.md":"a42d9257","env_logger.md":"a36497ef","extensions_array.md":"82fdc73c","ui-helpers_wpf.md":"27842261","exceptions.md":"c550e4ad","get-started.md":"ac86dbb2","core_converters_speeds.md":"1bd65dbb","env_system.md":"fd2ed290","enumerations.md":"228604bc","env_filesys.md":"f048a5fa","core_maths_geometry_pyramid.md":"9bd91f3d","core_maths_geometry_triangle.md":"3ece8f9a","ui-helpers_winforms.md":"067d41d0","core_maths_geometry_cube.md":"ef853c71","core_maths_geometry_rectangle.md":"8898003f","extensions_int.md":"0637f1d4","extensions_double.md":"7091e6c6"} diff --git a/docs/index.html b/docs/index.html index ee6f2dd..f4321b0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,19 +5,19 @@ PeyrSharp | A C# library designed to make developers' job easier. - - + + - - - + + + -
Skip to content

PeyrSharp

Made for you.

A C# library designed to make developers' job easier.

PeyrSharp

Easy-to-use

Using PeyrSharp in a project is very easy and intuitive.

🚀

.NET Powered

PeyrSharp is built using C# and .NET. It's available for projects targeting .NET 5 and higher.

🖥️

Cross-Platform

PeyrSharp is compatible with every operating systems that .NET supports.

Released under the MIT License.

- +
Skip to content

PeyrSharp

Made for you.

A C# library designed to make developers' job easier.

PeyrSharp

Easy-to-use

Using PeyrSharp in a project is very easy and intuitive.

🚀

.NET Powered

PeyrSharp is built using C# and .NET. It's available for projects targeting .NET 5 and higher.

🖥️

Cross-Platform

PeyrSharp is compatible with every operating systems that .NET supports.

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/intro.html b/docs/intro.html index 442dee8..34e5a9c 100644 --- a/docs/intro.html +++ b/docs/intro.html @@ -5,19 +5,19 @@ Introduction | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Introduction

The roots

In March 2020, we published LeoCorpLibrary, which was also a C# library that contains useful methods. When we started the development of it, we didn't know where the project will go yet. Over the releases, we've added more and more methods and new features. However, the meaning and the purpose of LeoCorpLibrary was becoming less clear for everyone; it was becoming a mess. This is why we decided to rather not release v5, but instead, we decided to make a brand new .NET Library, PeyrSharp.

Our next product

PeyrSharp is a C# written library designed to make developers' life easier. We've all written code that we wish we hadn't. PeyrSharp is here to respond to this need; by implementing useful methods in various domains: Mathematics, Web/HTTP requests, unit converters, extensions, environment-related operations, and more!

Modules

PeyrSharp is divided in multiple packages:

PeyrSharp, the main package, that contains all of the followings:

PeyrSharp.Core, the basic methods and features of C#
  • Maths
  • Password
  • Guid
  • Converters
  • Internet
  • Crypt
PeyrSharp.Env, methods related to the file system and to the current execution environment.
  • FileSys
  • Logger
  • Update
  • System
PeyrSharp.Enums, all enumerations used by PeyrSharp
  • WindowsVersion
  • TimeUnits
  • SystemThemes
  • OperatingSystems
  • StorageUnits
  • ControlAlignment
  • PasswordPresets
  • PasswordStrength
PeyrSharp.Exceptions, all exceptions used by PeyrSharp
  • RGBInvalidValueException
  • HEXInvalidValueException
  • InvalidGuidLengthException
PeyrSharp.Extensions, extension methods, that extends basic types, such as string, int, double or arrays (T[]).
  • String
  • Int
  • Double
  • Array (T[])
PeyrSharp.UiHelpers, methods related to Windows Forms or to the Windows Presentation Framework (WPF).
  • WinForms
  • Screen
  • WPF

Compatibility

Platforms

Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platform.

Package/PlatformWindowsmacOSLinux + others
Core
Env⚠️⚠️
Enums
Exceptions
Extensions
UiHelpers

Caption:

  • ✅ Full Support
  • ⚠️ Partial Support
  • ❌ Unsupported platform

Frameworks

PeyrSharp is available in the following frameworks

  • .NET 5
  • .NET 6
  • .NET 7 (soon)

NOTE

.NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported.

Released under the MIT License.

- +
Skip to content
On this page

Introduction

The roots

In March 2020, we published LeoCorpLibrary, which was also a C# library that contains useful methods. When we started the development of it, we didn't know where the project will go yet. Over the releases, we've added more and more methods and new features. However, the meaning and the purpose of LeoCorpLibrary was becoming less clear for everyone; it was becoming a mess. This is why we decided to rather not release v5, but instead, we decided to make a brand new .NET Library, PeyrSharp.

Our next product

PeyrSharp is a C# written library designed to make developers' life easier. We've all written code that we wish we hadn't. PeyrSharp is here to respond to this need; by implementing useful methods in various domains: Mathematics, Web/HTTP requests, unit converters, extensions, environment-related operations, and more!

Modules

PeyrSharp is divided in multiple packages:

PeyrSharp, the main package, that contains all of the followings:

PeyrSharp.Core, the basic methods and features of C#
  • Maths
  • Password
  • Guid
  • Converters
  • Internet
  • Crypt
PeyrSharp.Env, methods related to the file system and to the current execution environment.
  • FileSys
  • Logger
  • Update
  • System
PeyrSharp.Enums, all enumerations used by PeyrSharp
  • WindowsVersion
  • TimeUnits
  • SystemThemes
  • OperatingSystems
  • StorageUnits
  • ControlAlignment
  • PasswordPresets
  • PasswordStrength
PeyrSharp.Exceptions, all exceptions used by PeyrSharp
  • RGBInvalidValueException
  • HEXInvalidValueException
  • InvalidGuidLengthException
PeyrSharp.Extensions, extension methods, that extends basic types, such as string, int, double or arrays (T[]).
  • String
  • Int
  • Double
  • Array (T[])
PeyrSharp.UiHelpers, methods related to Windows Forms or to the Windows Presentation Framework (WPF).
  • WinForms
  • Screen
  • WPF

Compatibility

Platforms

Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platform.

Package/PlatformWindowsmacOSLinux + others
Core
Env⚠️⚠️
Enums
Exceptions
Extensions
UiHelpers

Caption:

  • ✅ Full Support
  • ⚠️ Partial Support
  • ❌ Unsupported platform

Frameworks

PeyrSharp is available in the following frameworks

  • .NET 5
  • .NET 6
  • .NET 7

NOTE

.NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported.

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/reference.html b/docs/reference.html index 9c33683..a24ae53 100644 --- a/docs/reference.html +++ b/docs/reference.html @@ -5,19 +5,19 @@ Reference | PeyrSharp - - + + - - - + + + - - + + \ No newline at end of file diff --git a/docs/ui-helpers.html b/docs/ui-helpers.html index 6b5f401..aa2afcb 100644 --- a/docs/ui-helpers.html +++ b/docs/ui-helpers.html @@ -5,19 +5,19 @@ UiHelpers | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

UiHelpers

This page is about the exceptions available in PeyrSharp.UiHelpers. They are grouped by category.

Compatibility

UiHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Classes

Released under the MIT License.

- +
Skip to content
On this page

UiHelpers

This page is about the exceptions available in PeyrSharp.UiHelpers. They are grouped by category.

Compatibility

UiHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Classes

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/ui-helpers/screen.html b/docs/ui-helpers/screen.html index f7dec6e..4b2d80e 100644 --- a/docs/ui-helpers/screen.html +++ b/docs/ui-helpers/screen.html @@ -5,17 +5,17 @@ Screen | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

Screen

This page is about the ScreenHelpers class available in PeyrSharp.UiHelpers. This page is about all of its methods.

Compatibility

ScreenHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Methods

GetDpi(form)

Definition

Gets the DPI of the screen where the Windows Form is located. It returns a double value.

Arguments

TypeNameMeaning
FormformThe form to get the DPI of.

Usage

c#
using PeyrSharp.UiHelpers;
+    
Skip to content
On this page

Screen

This page is about the ScreenHelpers class available in PeyrSharp.UiHelpers. This page is about all of its methods.

Compatibility

ScreenHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Methods

GetDpi(form)

Definition

Gets the DPI of the screen where the Windows Form is located. It returns a double value.

Arguments

TypeNameMeaning
FormformThe form to get the DPI of.

Usage

c#
using PeyrSharp.UiHelpers;
 using System;
 using System.Windows.Forms;
 
@@ -25,8 +25,7 @@
     {
         MessageBox.Show(ScreenHelpers.GetDpi(this));
     }
-}
-

GetDpi(window)

Definition

Gets the DPI of the screen where the Window is located. It returns a double value.

Arguments

TypeNameMeaning
WindowwindowThe Window to get the DPI of.

Usage

c#
using PeyrSharp.UiHelpers;
+}

GetDpi(window)

Definition

Gets the DPI of the screen where the Window is located. It returns a double value.

Arguments

TypeNameMeaning
WindowwindowThe Window to get the DPI of.

Usage

c#
using PeyrSharp.UiHelpers;
 using System;
 using System.Windows;
 
@@ -36,8 +35,7 @@
     {
         MessageBox.Show(ScreenHelpers.GetDpi(this));
     }
-}
-

GetScreenScaling(form)

Definition

Gets the scaling of the screen where the Windows Form is located. It returns a double value.

Possible values:

  • 100
  • 125
  • 150
  • 175
  • 200

Arguments

TypeNameMeaning
FormformThe form to get the scale of.

Usage

c#
using PeyrSharp.UiHelpers;
+}

GetScreenScaling(form)

Definition

Gets the scaling of the screen where the Windows Form is located. It returns a double value.

Possible values:

  • 100
  • 125
  • 150
  • 175
  • 200

Arguments

TypeNameMeaning
FormformThe form to get the scale of.

Usage

c#
using PeyrSharp.UiHelpers;
 using System;
 using System.Windows.Forms;
 
@@ -47,8 +45,7 @@
     {
         MessageBox.Show(ScreenHelpers.GetScreenScaling(this));
     }
-}
-

GetScreenScaling(window)

Definition

Gets the scaling of the screen where the Window is located. It returns a double value.

Possible values:

  • 100
  • 125
  • 150
  • 175
  • 200

Arguments

TypeNameMeaning
WindowwindowThe window to get the scale of.

Usage

c#
using PeyrSharp.UiHelpers;
+}

GetScreenScaling(window)

Definition

Gets the scaling of the screen where the Window is located. It returns a double value.

Possible values:

  • 100
  • 125
  • 150
  • 175
  • 200

Arguments

TypeNameMeaning
WindowwindowThe window to get the scale of.

Usage

c#
using PeyrSharp.UiHelpers;
 using System;
 using System.Windows;
 
@@ -58,10 +55,9 @@
     {
         MessageBox.Show(ScreenHelpers.GetScreenScaling(this));
     }
-}
-

Released under the MIT License.

- +}

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/ui-helpers/winforms.html b/docs/ui-helpers/winforms.html index 067c261..db1c8b3 100644 --- a/docs/ui-helpers/winforms.html +++ b/docs/ui-helpers/winforms.html @@ -5,17 +5,17 @@ WinForms | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

WinForms

This page is about the WinFormsHelpers class available in PeyrSharp.UiHelpers. This page is about all of its methods.

Compatibility

WinFormsHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Methods

CenterControl(control, form)

Definition

Centers horizontally and vertically a Control on a Form.

Arguments

TypeNameMeaning
ControlcontrolThe control to center.
FormformThe form where the control needs to be centered.

Usage

c#
using PeyrSharp.UiHelpers;
+    
Skip to content
On this page

WinForms

This page is about the WinFormsHelpers class available in PeyrSharp.UiHelpers. This page is about all of its methods.

Compatibility

WinFormsHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Methods

CenterControl(control, form)

Definition

Centers horizontally and vertically a Control on a Form.

Arguments

TypeNameMeaning
ControlcontrolThe control to center.
FormformThe form where the control needs to be centered.

Usage

c#
using PeyrSharp.UiHelpers;
 using System;
 using System.Windows.Forms;
 
@@ -26,8 +26,7 @@
         Button button = (Button)sender;
         WinFormsHelpers.CenterControl(button, this);
     }
-}
-

CenterControl(control, form, controlAlignment)

Definition

Centers a Control on a Form, with a specific ControlAlignment.

Arguments

TypeNameMeaning
ControlcontrolThe control to center.
FormformThe form where the control needs to be centered.
ControlAlignmentcontrolAlignmentThe alignment of the control.

Usage

c#
using PeyrSharp.Enums;
+}

CenterControl(control, form, controlAlignment)

Definition

Centers a Control on a Form, with a specific ControlAlignment.

Arguments

TypeNameMeaning
ControlcontrolThe control to center.
FormformThe form where the control needs to be centered.
ControlAlignmentcontrolAlignmentThe alignment of the control.

Usage

c#
using PeyrSharp.Enums;
 using PeyrSharp.UiHelpers;
 using System;
 using System.Windows.Forms;
@@ -41,8 +40,7 @@
         // Center the button vertically
         WinFormsHelpers.CenterControl(button, this, ControlAlignment.Vertical);
     }
-}
-

CenterForm(form)

Definition

Centers horizontally and vertically a Form on the screen.

Arguments

TypeNameMeaning
FormformThe form to center.

Usage

c#
using PeyrSharp.UiHelpers;
+}

CenterForm(form)

Definition

Centers horizontally and vertically a Form on the screen.

Arguments

TypeNameMeaning
FormformThe form to center.

Usage

c#
using PeyrSharp.UiHelpers;
 using System;
 using System.Windows.Forms;
 
@@ -53,10 +51,9 @@
         // Put the current form in the middle of the screen
         WinFormsHelpers.CenterForm(this); 
     }
-}
-

Released under the MIT License.

- +}

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/ui-helpers/wpf.html b/docs/ui-helpers/wpf.html index 4198329..cf8cd91 100644 --- a/docs/ui-helpers/wpf.html +++ b/docs/ui-helpers/wpf.html @@ -5,23 +5,22 @@ WPF | PeyrSharp - - + + - - - + + + -
Skip to content
On this page

WPF

This page is about the WpfHelpers class available in PeyrSharp.UiHelpers. This page is about all of its methods.

Compatibility

WinFormsHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Methods

CenterWindow(window)

Definition

Centers a Window on the primary screen.

Arguments

TypeNameMeaning
WindowwindowThe Window to center.

Usage

c#
using PeyrSharp.UiHelpers;
+    
Skip to content
On this page

WPF

This page is about the WpfHelpers class available in PeyrSharp.UiHelpers. This page is about all of its methods.

Compatibility

WinFormsHelpers are part of the PeyrSharp.UiHelpers module, which is compatible with all of these frameworks and platforms:

Package/PlatformWindowsmacOSLinux + others
UiHelpers
Framework.NET 5.NET 6.NET 7
UiHelpers

Methods

CenterWindow(window)

Definition

Centers a Window on the primary screen.

Arguments

TypeNameMeaning
WindowwindowThe Window to center.

Usage

c#
using PeyrSharp.UiHelpers;
 
 Window window = new Window();
-WpfHelpers.CenterWindow(window); // Center the window on the primary screen
-

Released under the MIT License.

- +WpfHelpers.CenterWindow(window); // Center the window on the primary screen

Released under the MIT License.

+ \ No newline at end of file